Open gerry100 opened 7 years ago
gerry100, Please write in detail what you want to do?
I found this way for my solution. Thanks
Example: bool found; foreach (var item in _ICNCModule.ICNC.AktiveCNCChannelList) { found = false; foreach (var itemTool in _shell.Tools) { if (itemTool is CNCChannelViewModel) { CNCChannelViewModel itemToolCNCChannelView; itemToolCNCChannelView = (CNCChannelViewModel)itemTool; if (itemToolCNCChannelView.ICNCChannel.ID == item.ID) { found = true; } } } if (found == false) { _shell.ShowTool(new CNCChannelViewModel(_shell, _IOutput, _ErrorList, _ICNCModule, item.ID)); }
}
How i can add a Tool with more instances?
Thanks