protected internal static CheckOutListForm Instance() { if (_instance == null) { _instance = new CheckOutListForm(); } return(_instance); }
private void btnCheckOutList_Click(object sender, EventArgs e) { if (!panel3.Controls.Contains(CheckOutListForm.Instance())) { panel3.Controls.Add(CheckOutListForm._instance); CheckOutListForm._instance.Dock = DockStyle.Fill; CheckOutListForm._instance.BringToFront(); CheckOutListForm._instance.Visible = true; } CheckOutListForm._instance.BringToFront(); CheckOutListForm._instance.Visible = true; }