Ejemplo n.º 1
0
        private void toolStripButton_Add_Click(object sender, EventArgs e)
        {
            frmGroupInfo frm = new frmGroupInfo();

            if (frm.ShowDialog() == DialogResult.OK)
            {
                BindData();
            }
        }
Ejemplo n.º 2
0
 private void toolStripButton_Edit_Click(object sender, EventArgs e)
 {
     if (this.dgvMain.CurrentRow == null)
     {
         return;
     }
     if (this.dgvMain.CurrentRow.Index >= 0)
     {
         DataRow      druser = (this.dgvMain.CurrentRow.DataBoundItem as DataRowView).Row;
         frmGroupInfo frm    = new frmGroupInfo(druser);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             BindData();
         }
     }
 }