public static SaleTypeSetupAdd Instance() { if (sForm == null) { sForm = new SaleTypeSetupAdd(); } return(sForm); }
private void btnAdd_Click(object sender, EventArgs e) { // new SaleTypeSetupAdd(this, 0).ShowDialog(); Form sForm = SaleTypeSetupAdd.Instance(); // sForm.MdiParent = this; sForm.Show(); sForm.Activate(); }