예제 #1
0
 protected override void tsb_Edit_Click(object sender, EventArgs e)
 {
     if (typeorgsDataGridView.RowCount > 0)
     {
         try
         {
             frm_EditTypeOrgs frm_edittypeorgs = new frm_EditTypeOrgs((int)typeorgsDataGridView.SelectedRows[0].Cells[0].Value,
                 "EDIT");
             if (frm_edittypeorgs.ShowDialog() == DialogResult.OK)
                 this.SetProperties();
         }
         catch { }
     }
 }
예제 #2
0
 protected override void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
 {
     frm_EditTypeOrgs frm_edittypeorgs = new frm_EditTypeOrgs(0, "INS");
     frm_edittypeorgs.ShowDialog();
     this.SetProperties();
 }