Beispiel #1
0
 public void InitStage1(IApplicationContext appContext)
 {
     m_AppContext = appContext;
     m_PointAnalysisToolFrm = new PointAnalysisToolFrm(appContext);
     //Todo:窗体关闭的消息传递给主窗体
     m_PointAnalysisToolFrm.CloseButton = true;
     m_PointAnalysisToolButton = new PointAnalysisToolButton(m_PointAnalysisToolFrm,m_AppContext);
     m_FloatingtoolStripList = new List<FloatingToolStrip>();
     m_FloatingtoolStripList.Add(m_PointAnalysisToolButton.PointFloatingToolStrip);
 }
 public PointAnalysisToolButton(PointAnalysisToolFrm p_PointAnalysisToolForm, IApplicationContext appContext)
 {
     InitializeComponent();
     m_AppContext = appContext;
     m_Operator = new PointAnalyseOperator(m_AppContext);
     m_PointAnalysisToolFrm = p_PointAnalysisToolForm;
     m_PointAnalysisMenuItem = new ToolStripMenuItemBase();
     m_PointAnalysisMenuItem.Name = "Point Analysis";
     m_PointAnalysisMenuItem.Text = "Point Analysis";
     m_PointAnalysisMenuItem.Click += new EventHandler(PointAnalyseMenuItem_Click);
 }