public static frmSuppliers GetInstance()
 {
     if (SupplierForm == null)
     {
         SupplierForm = new frmSuppliers();
     }
     return(SupplierForm);
 }
 private void frmSuppliers_FormClosed(object sender, FormClosedEventArgs e)
 {
     SupplierForm = null;
 }
Exemplo n.º 3
0
        private void btnSupplier_Click(object sender, EventArgs e)
        {
            frmSuppliers supplierFrom = frmSuppliers.GetInstance();

            supplierFrom.Show();
        }