Exemple #1
0
        private void btn_add_sales_Click(object sender, EventArgs e)
        {
            FormAddUsers add = new FormAddUsers(0, "ADD", Properties.Settings.Default._userRolename);

            add.RefreshDgv += new FormAddUsers.DoEvent(Load_DataUser);
            add.ShowDialog();
        }
Exemple #2
0
 private void editcustomer_Click(object sender, EventArgs e)
 {
     if (id > 0)
     {
         FormAddUsers add = new FormAddUsers(id, "Edit", Properties.Settings.Default._userRolename);
         add.RefreshDgv += new FormAddUsers.DoEvent(Load_DataUser);
         add.ShowDialog();
     }
     else
     {
         MessageBox.Show("Harap Pilih Data Yang Akan Di Edit", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }