Пример #1
0
        public void ShowExcerciseSingle(IExcercise excercise)
        {
            ViewParameter par = new ViewParameter(ViewParameter.Action.ExcerciseShow, this, application);

            par.AddParameter(excercise);
            par.AddParameter(application.GetCategories());
            NavigateTo(Views.ExcerciseSingle, par);
        }
Пример #2
0
        public void ShowTrainingSingle(ITraining training)
        {
            ViewParameter par = new ViewParameter(ViewParameter.Action.TrainingShow, this, application);

            par.AddParameter(training);
            par.AddParameter(application.GetExcercises());
            NavigateTo(Views.TrainingSingle, par);
        }
Пример #3
0
        public void ShowTrainingPage(ICollection trainingCollection)
        {
            ViewParameter par = new ViewParameter(ViewParameter.Action.TrainingShow, this, application);

            par.AddParameter(trainingCollection);
            NavigateTo(Views.Training, par);
        }
Пример #4
0
        public void ShowExcercisePage(ICollection exerciseCollection)
        {
            ViewParameter par = new ViewParameter(ViewParameter.Action.ExcerciseShow, this, application);

            par.AddParameter(exerciseCollection);
            NavigateTo(Views.Excercise, par);
        }
Пример #5
0
        public void ShowCategoryPage(ICollection categoryCollection)
        {
            ViewParameter par = new ViewParameter(ViewParameter.Action.CategoryShow, this, application);

            par.AddParameter(categoryCollection);
            NavigateTo(Views.Category, par);
        }
Пример #6
0
        public void ShowCategorySingle(ICategory category)
        {
            ViewParameter par = new ViewParameter(ViewParameter.Action.CategoryShow, this, application);

            par.AddParameter(category);
            NavigateTo(Views.CategorySingle, par);
        }
Пример #7
0
        public void ShowCreateTraining()
        {
            ViewParameter parameter = new ViewParameter(ViewParameter.Action.TrainingCreate, this, application);

            parameter.AddParameter(application.GetExcercises());
            NavigateTo(Views.TrainingSingle, parameter);
        }
Пример #8
0
        public void ShowCreateExcercise()
        {
            ViewParameter parameter = new ViewParameter(ViewParameter.Action.ExcerciseCreate, this, application);

            parameter.AddParameter(application.GetCategories());
            NavigateTo(Views.ExcerciseSingle, parameter);
        }
Пример #9
0
        public void ShowCreateCategory()
        {
            ViewParameter parameter = new ViewParameter(ViewParameter.Action.CategoryCreate, this, application);

            parameter.AddParameter(application);
            NavigateTo(Views.CategorySingle, parameter);
        }