Example #1
0
 private void Complete_Exercise(object sender, EventArgs e)
 {
     if (SelectedExercise.Notes != Notes_input.Text)
     {
         SelectedExercise.Notes     = Notes_input.Text;
         SelectedExercise.Completed = true;
         DB_Class.InsertOrUpdateNote(SelectedExercise.Notes, SelectedExercise.Note_ID, SelectedExercise.ID);
         RefreshListView();
     }
 }
Example #2
0
        private void ED_EditNote(object sender, EventArgs e)
        {
            DB_Handler DB_Class     = new DB_Handler();
            var        note         = ((Editor)sender).Text;
            var        exerciseView = exList.First(ex => ex.IsFocused);

            if (exerciseView.Notes != note)
            {
                exerciseView.Notes = note;
                DB_Class.InsertOrUpdateNote(exerciseView.Notes, exerciseView.Note_ID, exerciseView.ID);
            }
        }