예제 #1
0
 private void OnAddWorkoutCategoryClick()
 {
     var form = new EditWorkoutCategoryForm();
       var presenter = new EditWorkoutCategoryFormPresenter(form, Data);
       form.Show();
 }
예제 #2
0
 private void OnEditWorkoutCategoryClick(string categoryName)
 {
     var form = new EditWorkoutCategoryForm(Data.WorkoutCategoryFromName(categoryName));
       var presenter = new EditWorkoutCategoryFormPresenter(form, Data);
       form.Show();
 }
 private void EditCategory(string categoryName)
 {
     var form = categoryName == null ? new EditWorkoutCategoryForm() : new EditWorkoutCategoryForm(_data.WorkoutCategoryFromName(categoryName));
       var presenter = new EditWorkoutCategoryFormPresenter(form, _data);
       form.Show();
 }