Ejemplo n.º 1
0
        private void btnAddG(object sender, EventArgs e)
        {
            AddUserGroup g = new AddUserGroup();

            g.SetRight.Text = "Add New";
            g.ShowDialog();

            RefreshDgvGroup();
        }
Ejemplo n.º 2
0
 private void btnUpdG(object sender, EventArgs e)
 {
     if (dgvGroup.Rows.Count > 0)
     {
         AddUserGroup m = new AddUserGroup();
         m.txtGr.Text = dgvGroup.CurrentRow.Cells[1].Value.ToString();
         m.ShowDialog();
     }
     else
     {
         MessageBox.Show("There is nothing to Update !!!", "Opration Failed", MessageBoxButtons.OK, icon: MessageBoxIcon.Error);
     }
     RefreshDgvGroup();
 }