public void DockForm(DockableForm ChildForm_O) { if (ChildForm_O.Equals(mCheckingForm_O)) { this.splitContainer1.Panel1Collapsed = false; this.splitContainer1.Panel1.Controls.Add(mCheckingForm_O); } else if (ChildForm_O.Equals(mJobForm_O)) { this.splitContainer1.Panel2Collapsed = false; this.splitContainer1.Panel2.Controls.Add(mJobForm_O); } }
public bool UndockForm(DockableForm ChildForm_O) { bool Undocked_b = false; if (mCheckingForm_O.IsDocked() && mJobForm_O.IsDocked()) { if (ChildForm_O.Equals(mCheckingForm_O)) { this.splitContainer1.Panel1.Controls.Remove(mCheckingForm_O); this.splitContainer1.Panel1Collapsed = true; Undocked_b = true; } else if (ChildForm_O.Equals(mJobForm_O)) { this.splitContainer1.Panel2.Controls.Remove(mJobForm_O); this.splitContainer1.Panel2Collapsed = true; Undocked_b = true; } } return(Undocked_b); }