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); }
public SelectScheduleTeacher(SelectItemActivity view) : base(view) { }
public SelectFavoritesGroup(SelectItemActivity view) : base(view) { }
public SelectScheduleStudent(SelectItemActivity view) : base(view) { }
private void StartActivitySchedule(SelectItemType selectItemType) { SelectItemActivity.StartSelectItemActivity(View, selectItemType); }