public CreateWorkoutForm(ITrainingRequester caller) { InitializeComponent(); callingForm = caller; WireUpList(); }
public TrainingStudyForm(ITrainingRequester caller, int categoryId, TrainingModel.Type Type) { InitializeComponent(); callingForm = caller; model.CategoryId = categoryId; model.TrainingType = Type; if (Type == TrainingModel.Type.Studying) { SetupStudyForm(); BooksByCategory = GlobalConfig.Connection.LoadBooksByCategory(categoryId, false); CoursesByCategory = GlobalConfig.Connection.LoadCoursesByCategory(categoryId); } else if (Type == TrainingModel.Type.Practicing) { SetupPracticeForm(); //TODO - TasksByCategory = GlobalConfig.Connection.LoadTasksByCategory(categoryId); } }