public CourseHomeViewModel()
 {
     _servicesProxy    = new ServicesProxy();
     _serviceTypeProxy = new ServiceTypeProxy();
     _sportTypeProxy   = new SportTypeProxy();
     EditCourseCommand = new RelayCommand(EditCourse);
     OnPageLoadCommand = new RelayCommand(OnPageLoad);
 }
Exemple #2
0
 public SingleServiceHomeViewModel()
 {
     _servicesProxy    = new ServicesProxy();
     _serviceTypeProxy = new ServiceTypeProxy();
     _sportTypeProxy   = new SportTypeProxy();
     OnPageLoadCommand = new RelayCommand(OnPageLoad);
     Initialize();
 }
Exemple #3
0
 public AddServiceTypeViewModel()
 {
     _sportTypeProxy      = new SportTypeProxy();
     _serviceTypeProxy    = new ServiceTypeProxy();
     OnPageLoadCommand    = new RelayCommand(OnPageLoad);
     AddCourseTypeCommand = new RelayCommand(AddCourseType, AddCourseTypeCanExcecute);
     Initialize();
 }
Exemple #4
0
 public EnrolmentSingleServiceViewModel()
 {
     _customerProxy    = new CustomerProxy();
     _serviceProxy     = new ServicesProxy();
     _serviceTypeProxy = new ServiceTypeProxy();
     _employeeProxy    = new EmployeeProxy();
     OnPageLoadCommand = new RelayCommand(OnPageLoad);
     EnrolCommand      = new RelayCommand(Enrol, EnrolCanExcecute);
     Initialize();
 }
 public EnrolmentCourseViewModel()
 {
     _serviceTypeProxy = new ServiceTypeProxy();
     _servicesProxy    = new ServicesProxy();
     _customerProxy    = new CustomerProxy();
     OnPageLoadCommand = new RelayCommand(OnPageLoad);
     EnrolCommand      = new RelayCommand(Enrol, EnrolCanExcecute);
     NextCommand       = new RelayCommand(Next, NextCanExcecute);
     PrevCommand       = new RelayCommand(Prev, PrevCanExcecute);
     Initialize();
 }
Exemple #6
0
 public AddCourseViewModel()
 {
     _employeeProxy        = new EmployeeProxy();
     _serviceTypeProxy     = new ServiceTypeProxy();
     _servicesProxy        = new ServicesProxy();
     Course                = new Course();
     SaveChangesCommand    = new RelayCommand(SaveChanges);
     AddCourseCommand      = new RelayCommand(AddCourse, AddCourseCanExcecute);
     OnPageLoadCommand     = new RelayCommand(OnPageLoad);
     AddDateCommand        = new RelayCommand(AddDate, AddDateCanExcecute);
     RemoveCustomerCommand = new RelayCommand(RemoveCustomer);
     RemoveDateCommand     = new RelayCommand(RemoveDate);
     RemoveCourseCommand   = new RelayCommand(RemoveCourse);
 }