Beispiel #1
0
 private void exerciseDataGridView_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (exerciseDataGridView.SelectedRows.Count != 0)
     {
         if (exerciseDataGridView.SelectedRows[0].Index != -1)
         {
             string exerciseName = ExerciseRegister.RegisteredExercises[exerciseDataGridView.SelectedRows[0].Index].ExerciseName;
             if (m_trainingDayRegister.getHowManyTimesTrained(exerciseName) != 0)
             {
                 GraphViewerForm graphViewerForm = new GraphViewerForm(exerciseName, this);
                 graphViewerForm.Show();
             }
             else
             {
                 MessageBox.Show("You need to train in order to see your results", "Info");
             }
         }
     }
 }
 public ExerciseGraph(GraphViewerForm graphViewerForm)
 {
     m_graphViewerForm = graphViewerForm;
 }