private void new_client_branch_btn_Click(object sender, EventArgs e)
        {
            this.Hide();
            addclientbranches myform = new addclientbranches(mclient, mEmployee, mAccount, mPermission);

            myform.ShowDialog();

            this.Close();
        }
Пример #2
0
        private void add_client_branches_Click(object sender, EventArgs e)
        {
            if (clients.Count > 0)
            {
                if (clients_grid_view.SelectedRows.Count > 0)
                {
                    addclientbranches myform = new addclientbranches(clients[clients_grid_view.SelectedRows[0].Index], mEmployee, mAccount, mPermission);

                    myform.ShowDialog();
                }
                else
                {
                    MessageBox.Show("لا بد من تحديد العميل المراد إضافة الفروع له ", "تحذير", MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.RtlReading);
                }
            }
        }