private void barBtnSupplier_ItemClick(object sender, ItemClickEventArgs e) { i = frmSupplier.m; if (i < 1) { frmSupplier frm = new frmSupplier(); frm.MdiParent = this; frm.Show(); i++; } }
private void barBtnSupplier_ItemClick(object sender, ItemClickEventArgs e) { if (m == 2) { i = 0; m = 1; } else { i = frmSupplier.m; } if (i < 1 || i == 3) { frmSupplier frm = new frmSupplier(); frm.MdiParent = this; frm.Show(); i++; } }