public CourseHomeViewModel() { _servicesProxy = new ServicesProxy(); _serviceTypeProxy = new ServiceTypeProxy(); _sportTypeProxy = new SportTypeProxy(); EditCourseCommand = new RelayCommand(EditCourse); OnPageLoadCommand = new RelayCommand(OnPageLoad); }
/// <summary> /// Constructor initializes Commands /// </summary> public SportTypeFormViewModel() { TitleText = "Stwórz Sport"; SaveSportTypeCommand = new RelayCommand(SaveSportType, SaveCanExecute); OnPageLoadCommand = new RelayCommand(OnPageLoad); _cts = new CancellationTokenSource(); _sportTypeProxy = new SportTypeProxy(); }
public SingleServiceHomeViewModel() { _servicesProxy = new ServicesProxy(); _serviceTypeProxy = new ServiceTypeProxy(); _sportTypeProxy = new SportTypeProxy(); OnPageLoadCommand = new RelayCommand(OnPageLoad); Initialize(); }
/// <summary> /// Constructor initializes commands /// </summary> public SportTypeHomeViewModel() { _sportTypeProxy = new SportTypeProxy(); OnPageLoadCommand = new RelayCommand(OnPageLoad); RemoveSportTypeCommand = new RelayCommand(RemoveSportType); EditSportTypeCommand = new RelayCommand(EditSportType); _cts = new CancellationTokenSource(); }
public AddServiceTypeViewModel() { _sportTypeProxy = new SportTypeProxy(); _serviceTypeProxy = new ServiceTypeProxy(); OnPageLoadCommand = new RelayCommand(OnPageLoad); AddCourseTypeCommand = new RelayCommand(AddCourseType, AddCourseTypeCanExcecute); Initialize(); }
/// <summary> /// Constructor initializes Commands /// </summary> public EmployeeFormViewModel() { TitleText = "Stwórz Pracownika"; SaveEmployeeCommand = new RelayCommand(SaveEmployee, SaveCanExcecute); OnPageLoadCommand = new RelayCommand(OnPageLoad); _cts = new CancellationTokenSource(); _employeeProxy = new EmployeeProxy(); _sportTypeProxy = new SportTypeProxy(); _positionProxy = new PositionProxy(); }