Beispiel #1
0
 protected override void tsb_Edit_Click(object sender, EventArgs e)
 {
     if (docsViewDataGridView.RowCount > 0)
     {
         try
         {
             frm_EditDocument frm_editdocument = new frm_EditDocument((int)docsViewDataGridView.SelectedRows[0].Cells[0].Value,
                 "EDIT");
             if (frm_editdocument.ShowDialog() == DialogResult.OK)
                 SetProperties();
         }
         catch { }
     }
 }
Beispiel #2
0
 protected override void bindingNavigatorAddNewItem_Click(object sender, EventArgs e)
 {
     frm_EditDocument frm_newdocument = new frm_EditDocument(0, "INS");
     frm_newdocument.ShowDialog();
     SetProperties();
 }