private void buttonAddItems_Click(object sender, EventArgs e)
        {
            if (suppliers_grid_view.SelectedRows.Count > 0)
            {
                AddNewItemForSupplierFrm myform = new AddNewItemForSupplierFrm(SUPPLIERS[suppliers_grid_view.SelectedRows[0].Index], mEmployee, mAccount, mPermission);

                myform.ShowDialog();
            }
        }
 private void add_new_supplier_item_Click(object sender, EventArgs e)
 {
     if (suppliers_grid_view.SelectedRows.Count == 1)
     {
         AddNewItemForSupplierFrm frm = new AddNewItemForSupplierFrm(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 button2_Click(object sender, EventArgs e)
        {
            AddNewItemForSupplierFrm frm = new AddNewItemForSupplierFrm(MComp, mEmployees, mAccount, mPermission);

            frm.ShowDialog();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            AddNewItemForSupplierFrm myform = new AddNewItemForSupplierFrm(comp, mEmployee, mAccount, mPermission);

            myform.ShowDialog();
        }