Inheritance: System.Windows.Forms.Form
Ejemplo n.º 1
0
 internal void SetPopDock()
 {
     if (_isDocked)
     {
         var dlg = new PerformanceDialog {
             Name = Title, Text = Title
         };
         dlg.Controls.Add(this);
         dlg.Show();
         Monitor.Instance.RemoveCurrentTab();
         cmdPopDock.Text = "Dock";
         dlg.BringToFront();
     }
     else
     {
         var parent = this.Parent as PerformanceDialog;
         Monitor.Instance.AddPerformance(this);
         parent.Close();
         cmdPopDock.Text = "Popup";
     }
     _isDocked = !_isDocked;
 }
Ejemplo n.º 2
0
 internal void SetPopDock()
 {
     if (_isDocked)
     {
         var dlg = new PerformanceDialog { Name = Title, Text = Title };
         dlg.Controls.Add(this);
         dlg.Show();
         Monitor.Instance.RemoveCurrentTab();
         cmdPopDock.Text = "Dock";
         dlg.BringToFront();
     }
     else
     {
         var parent = this.Parent as PerformanceDialog;
         Monitor.Instance.AddPerformance(this);
         parent.Close();
         cmdPopDock.Text = "Popup";
     }
     _isDocked = !_isDocked;
 }