示例#1
0
 private void mnuIns_Click(object sender, EventArgs e)
 {
     try
     {
         var frm = new frmNoteMain();
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData();
         }
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }
示例#2
0
 private void mnuEdit_Click(object sender, EventArgs e)
 {
     try
     {
         if (DGrid.RowCount <= 0)
         {
             return;
         }
         if (DGrid.CurrentRow == null)
         {
             return;
         }
         var guid = (Guid)DGrid[dgGuid.Index, DGrid.CurrentRow.Index].Value;
         var frm  = new frmNoteMain(guid);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             LoadData(txtSearch.Text);
         }
     }
     catch (Exception ex)
     {
         WebErrorLog.ErrorInstence.StartErrorLog(ex);
     }
 }