Exemple #1
0
        public static SelectItem CreateSelectItem(SelectItemActivity activity, SelectItemType selectItemType)
        {
            SelectItem selectItem;

            switch (selectItemType)
            {
            case SelectItemType.SelectScheduleStudent:
                selectItem = new SelectScheduleStudent(activity);
                break;

            case SelectItemType.SelectScheduleTeacher:
                selectItem = new SelectScheduleTeacher(activity);
                break;

            case SelectItemType.SelectFavorites:
                selectItem = new SelectFavoritesGroup(activity);
                break;

            default:
                throw new ArgumentOutOfRangeException(
                          "Не удалось выбрать тип расписания. SchedulesType = " + selectItemType);
            }
            return(selectItem);
        }
Exemple #2
0
 public SelectScheduleTeacher(SelectItemActivity view) : base(view)
 {
 }
Exemple #3
0
 public SelectFavoritesGroup(SelectItemActivity view) : base(view)
 {
 }
Exemple #4
0
 public SelectScheduleStudent(SelectItemActivity view) : base(view)
 {
 }
Exemple #5
0
 private void StartActivitySchedule(SelectItemType selectItemType)
 {
     SelectItemActivity.StartSelectItemActivity(View, selectItemType);
 }