Esempio n. 1
0
 private void btnAddNew_Click(object sender, EventArgs e)
 {
     frmAEUser frm = new frmAEUser();
     if (frm.ShowDialog() == DialogResult.OK)
     {
         LoadList();
     }
 }
Esempio n. 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (grdList.SelectedRows.Count > 0)
     {
         int ind = grdList.SelectedRows[0].Index;
         if (ind >= 0)
         {
             frmAEUser frm = new frmAEUser((DataRowView)grdList.Rows[ind].DataBoundItem);
             if (frm.ShowDialog() == DialogResult.OK)
             {
                 LoadList();
             }
         }
     }
     else
     {
         MessageBox.Show("Please Select Record to Edit", "Select Record", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }