Example #1
0
 private void buttonRunTutorial_Click(object sender, EventArgs e)
 {
     try
     {
         _tutorial.Run();
     }
     catch (Exception exception)
     {
         ErrorForm.Show(this, null, exception.Message, exception);
     }
 }
Example #2
0
 private void buttonRunTutorial_Click(object sender, EventArgs e)
 {
     try
     {
         buttonRunTutorial.Enabled = false;
         if (listViewTutorials.SelectedItems.Count > 0)
         {
             ITutorial selectedTutorial = listViewTutorials.SelectedItems[0].Tag as ITutorial;
             selectedTutorial.Run();
         }
     }
     catch (Exception exception)
     {
         FormError.Show(this, null, exception.Message, exception);
     }
     finally
     {
         buttonRunTutorial.Enabled = true;
     }
 }