Exemple #1
0
 public override void RestoreEnv()
 {
     if (this._uc != null)
     {
         this._uc.RestoreEnv();
         this._uc.Dispose();
         this._uc = null;
     }
     if (this._uPanel != null)
     {
         this._uPanel.GetControlContainer().Controls.Clear();
         this._uPanel.Close();
         this._uPanel = null;
     }
     Map3DCommandManager.Pop();
 }
Exemple #2
0
 public override void Run(object sender, System.EventArgs e)
 {
     try
     {
         Map3DCommandManager.Push(this);
         this._uPanel               = new UIDockPanel("泄漏扩散模拟", "泄漏扩散模拟", this.Location, this._width, this._height);
         this._dockPanel            = FloatPanelManager.Instance.Add(ref this._uPanel, DockingStyle.Right);
         this._dockPanel.Visibility = DockVisibility.Visible;
         this._dockPanel.FloatSize  = new System.Drawing.Size(this._width, this._height);
         this._dockPanel.Width      = this._width;
         this._dockPanel.Height     = this._height;
         this._uc      = new UCSpreadAnalyse();
         this._uc.Dock = System.Windows.Forms.DockStyle.Fill;
         this._uPanel.RegisterEvent(new PanelClose(this.Close));
         this._dockPanel.Controls.Add(this._uc);
     }
     catch (Exception ex)
     {
         LoggingService.Error(ex.Message + "\r\n" + ex.StackTrace);
     }
 }