コード例 #1
0
ファイル: MainForm.cs プロジェクト: CuneytKukrer/TestProject
 internal void ShowExplorer()
 {
     base.SuspendLayout();
     this.verticalSplit.SuspendLayout();
     this.mainMenu.Parent = this.verticalSplit.Panel1;
     this.tcQueries.Parent = this.verticalSplit.Panel2;
     this.verticalSplit.Show();
     if ((this.lblMessage != null) && (this.lblMessage.Parent != null))
     {
         this.lblMessage.Parent = this.verticalSplit.Panel2;
         this.lblMessage.BringToFront();
         this.UpdateMessagePosition();
     }
     this._dockHandle.Dispose();
     this._dockHandle = null;
     this.miHideExplorers.Visible = true;
     this.verticalSplit.ResumeLayout();
     base.ResumeLayout();
 }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: CuneytKukrer/TestProject
 internal void HideExplorer()
 {
     base.SuspendLayout();
     this.verticalSplit.SuspendLayout();
     this.tcQueries.Parent = this;
     this.mainMenu.Parent = this;
     this.verticalSplit.Hide();
     if ((this.lblMessage != null) && (this.lblMessage.Parent != null))
     {
         this.lblMessage.Parent = this;
         this.lblMessage.BringToFront();
         this.UpdateMessagePosition();
     }
     DockHandle handle = new DockHandle {
         Dock = DockStyle.Left
     };
     this._dockHandle = handle;
     base.Controls.Add(this._dockHandle);
     this._dockHandle.SendToBack();
     this.mainMenu.SendToBack();
     this.miHideExplorers.Visible = false;
     this.verticalSplit.ResumeLayout();
     base.ResumeLayout();
 }