示例#1
0
 void AddSt()
 {
     try
     {
         FrmStandard frmSt = new FrmStandard();
         frmSt.ShowDialog();
         LoadListToGrid();
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
 }
示例#2
0
 void UpdateSt()
 {
     try
     {
         if (grdVwStandarts.SelectedRows.Count < 1)
         {
             MessageBox.Show("Please Select a row.");
             return;
         }
         string strId = string.Format("{0}", grdVwStandarts.SelectedRows[0].Cells[0].Value);
         int    id;
         if (int.TryParse(strId, out id))
         {
             FrmStandard frmSt = new FrmStandard(id);
             frmSt.ShowDialog();
         }
         LoadListToGrid();
     }
     catch (Exception ex)
     {
         Logger.LogException(ex);
     }
 }