示例#1
0
 protected internal static CheckOutListForm Instance()
 {
     if (_instance == null)
     {
         _instance = new CheckOutListForm();
     }
     return(_instance);
 }
示例#2
0
文件: HomeForm.cs 项目: kduy410/QLKS
 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;
 }