コード例 #1
0
ファイル: StockTool.cs プロジェクト: m-berkani/ClearCanvas
        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();
			}
        }
コード例 #2
0
ファイル: StockTool.cs プロジェクト: ronmark1/ClearCanvas-1
        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();
            }
        }