Example #1
0
 /// <summary>
 /// Opens a trial form to add a new block of trial to the List.
 /// </summary>
 /// <param name="sender">Not used</param>
 /// <param name="e">Not used</param>
 private void AddButton_Click(object sender, EventArgs e)
 {
     //Open TrialForm
     try
     {
         TrialForm trialForm = new TrialForm(this);
         trialForm.Show();
         trialForm.Focus();
     }
     catch (Exception ex) {; }
 }
Example #2
0
 /// <summary>
 /// Opens a new trial form.
 /// </summary>
 /// <param name="sender">Not used</param>
 /// <param name="e">Not used</param>
 private void trialListView_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         int       itemNumber = trialListView.Items.IndexOf(trialListView.SelectedItems[0]);
         TrialForm trialForm  = new TrialForm(this, itemNumber);
         trialForm.Show();
         trialForm.Focus();
     }
     catch (ArgumentOutOfRangeException ae) {; }
     catch (Exception ex) {; }
 }