private void new_client_branch_btn_Click(object sender, EventArgs e) { this.Hide(); using (add_new_supply_company_branch myform = new add_new_supply_company_branch(msupply, mEmployee, mAccount, mPermission)) { myform.ShowDialog(); } this.Close(); }
private void add_new_supplier_branch_btn_Click(object sender, EventArgs e) { if (suppliers_grid_view.SelectedRows.Count == 1) { add_new_supply_company_branch frm = new add_new_supply_company_branch(SUPPLIERS[suppliers_grid_view.SelectedRows[0].Index], mEmployee, mAccount, mPermission); frm.ShowDialog(); } else { MessageBox.Show("الرجاء تحديد إسم المورد أولا", "خطأ", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading); } }
private void buttonAddBranch_Click(object sender, EventArgs e) { add_new_supply_company_branch myform = new add_new_supply_company_branch(comp, mEmployee, mAccount, mPermission); myform.ShowDialog(); }