public StockTool() { // check if the main is *the* view implemented by this plugin //IWorkstationView view = WorkstationModel.View; IDesktopView view = DesktopApplication.View; //if(view is WorkstationView) if(view is DesktopView) { //_mainView = (WorkstationView)view; _mainView = (DesktopView)view; } else { // this tool is not supported for other main views // TODO add a message throw new NotSupportedException(); } }
public StockTool() { // check if the main is *the* view implemented by this plugin //IWorkstationView view = WorkstationModel.View; IDesktopView view = DesktopApplication.View; //if(view is WorkstationView) if (view is DesktopView) { //_mainView = (WorkstationView)view; _mainView = (DesktopView)view; } else { // this tool is not supported for other main views // TODO add a message throw new NotSupportedException(); } }