gemini icon indicating copy to clipboard operation
gemini copied to clipboard

How i can add a Tool with more instances?

Open gerry100 opened this issue 7 years ago • 2 comments

How i can add a Tool with more instances?

Thanks

gerry100 avatar Jun 09 '17 13:06 gerry100

gerry100, Please write in detail what you want to do?

luferau avatar Jun 09 '17 16:06 luferau

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)); }

        }

gerry100 avatar Jun 27 '17 20:06 gerry100