コード例 #1
0
        private void buttonNew_Click_1(object sender, EventArgs e)
        {
            this.Hide();
            addSupplierCompanyContacts frm = new addSupplierCompanyContacts(Mcompany, mEmployees, mAccounts, mPermissions);

            frm.ShowDialog();
        }
コード例 #2
0
 private void add_new_supplier_contact_Click(object sender, EventArgs e)
 {
     if (suppliers_grid_view.SelectedRows.Count == 1)
     {
         addSupplierCompanyContacts frm = new addSupplierCompanyContacts(SUPPLIERS[suppliers_grid_view.SelectedRows[0].Index], mEmployee, mAccount, mPermission);
         frm.ShowDialog();
     }
     else
     {
         MessageBox.Show("الرجاء تحديد إسم المورد أولا", "خطأ", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading);
     }
 }
コード例 #3
0
        private void buttonAddEmployee_Click(object sender, EventArgs e)
        {
            addSupplierCompanyContacts frm = new addSupplierCompanyContacts(comp, mEmployee, mAccount, mPermission);

            frm.ShowDialog();
        }