Esempio n. 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     try
     {
         ExpertBoard     expertBoard = new ExpertBoard(patient.Id);
         ExpertBoardForm form        = new ExpertBoardForm(expertBoard, patient);
         if (form.ShowDialog() == DialogResult.OK)
         {
             DataRow newRow = dataTable.NewRow();
             dataTable.Rows.Add(newRow);
             UpdateRow(newRow, expertBoard);
         }
     }
     catch (Exception ex)
     {
         Log.Exception(ex);
     }
 }
Esempio n. 2
0
 private void Open()
 {
     try
     {
         ExpertBoard expertBoard = GetExpertBoard();
         if (expertBoard != null)
         {
             ExpertBoardForm form = new ExpertBoardForm(expertBoard, patient);
             if (form.ShowDialog() == DialogResult.OK)
             {
                 UpdateRow(SelectedRow, expertBoard);
             }
         }
     }
     catch (Exception ex)
     {
         Log.Exception(ex);
     }
 }