Example #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;
     }
     this.HighLight = false;
     Map3DCommandManager.Pop();
 }
Example #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 UCCameraTour();
         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);
     }
 }