public SimulationMenuItemOperation(IApplicationContext appContext)
 {
     this.m_AppContext = appContext;
     this.m_CurveFrm = new SimulationCurveFrm();
     this.m_CurveFrm.DockPanel = ServiceHelper.Lookup<IMainFormService>(this.m_AppContext).GetPointAnalysisDockPanel();
     this.m_CurveFrm.DockState = DockState.DockBottom;
     DockContentHandler dockHandler = this.m_CurveFrm.DockHandler;
     dockHandler.NotifyWindowStateChanged = (NotifyWindowStateChangeDelegate)Delegate.Combine(dockHandler.NotifyWindowStateChanged, new NotifyWindowStateChangeDelegate(this.OnCurveFromClosed));
     this.m_ToolMenuItem = new ToolStripMenuItemBase();
     this.m_ToolMenuItem.Name = "m_SimulationCurveMenuItem";
     this.m_ToolMenuItem.Text = SimulationResource.SIMULATION_CURVE_WINDOW;
     this.m_ToolMenuItem.Click += new EventHandler(this.m_ToolMenuItem_Click);
 }
Example #2
0
 private void InitMenuItemOperations()
 {
     this.m_CurveFrm = new SimulationCurveFrm();
     this.m_MenuItemOperations = new List<IMenuItemOperation>();
     SimMenuItemOperation item = new SimMenuItemOperation(this.m_CurveFrm);
     this.m_MenuItemOperations.Add(item);
     this.m_CurveFrm.DockPanel = ServiceHelper.Lookup<IMainFormService>(this.m_AppContext).GetPointAnalysisDockPanel();
     this.m_CurveFrm.DockState = DockState.DockBottom;
     this.m_CurveFrm.DockHandler.NotifyWindowStateChanged = new NotifyWindowStateChangeDelegate(item.CurveFromClosed);
 }