예제 #1
0
 public static frmCustomers GetInstance()
 {
     if (CustomerForm == null)
     {
         CustomerForm = new frmCustomers();
     }
     return(CustomerForm);
 }
예제 #2
0
 private void frmCustomers_FormClosed(object sender, FormClosedEventArgs e)
 {
     CustomerForm = null;
 }
예제 #3
0
        private void btnCustomers_Click(object sender, EventArgs e)
        {
            frmCustomers customersForm = frmCustomers.GetInstance();

            customersForm.Show();
        }