private void OnAddWorkoutCategoryClick() { var form = new EditWorkoutCategoryForm(); var presenter = new EditWorkoutCategoryFormPresenter(form, Data); form.Show(); }
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(); }