public TourLogAddViewModel(Tour currentTour, Window window, MainViewModel mainViewModel)
 {
     this._currentTour        = currentTour;
     this.TourId              = this._currentTour.Id;
     this._mainViewModel      = mainViewModel;
     this._window             = window;
     this._tourPlannerFactory = TourPlannerFactory.GetInstance();
 }
        public TourEditViewModel(TourEditWindow tourEditWindow, MainViewModel mainViewModel, Tour currentTour)
        {
            this._mainViewModel  = mainViewModel;
            this._tourEditWindow = tourEditWindow;
            this._currentTour    = currentTour;
            this.Name            = this._currentTour.Name;
            this.Description     = this._currentTour.Description;
            this.Start           = this._currentTour.Start;
            this.End             = this._currentTour.End;
            this.Distance        = this._currentTour.Distance;

            this._tourPlannerFactory = TourPlannerFactory.GetInstance();
        }
Example #3
0
 public TourLogEditViewModel(TourLog currentTourLog, Window window, MainViewModel mainViewModel)
 {
     this._mainViewModel      = mainViewModel;
     this._window             = window;
     this._tourPlannerFactory = TourPlannerFactory.GetInstance();
     this._currentTourLog     = currentTourLog;
     this.TourId      = this._currentTourLog.TourId;
     this.Name        = this._currentTourLog.Name;
     this.Description = this._currentTourLog.Description;
     this.Report      = this._currentTourLog.Report;
     this.Vehicle     = this._currentTourLog.Vehicle;
     this.DateTime    = this._currentTourLog.DateTime;
     this.Distance    = this._currentTourLog.Distance;
     this.TotalTime   = this._currentTourLog.TotalTime;
     this.Rating      = this._currentTourLog.Rating;
 }
Example #4
0
 public SearchUcViewModel(MainViewModel mainViewModel)
 {
     this._tourPlannerFactory = TourPlannerFactory.GetInstance();
     InitListbox();
     this._mainViewModel = mainViewModel;
 }
 public TourListUserControlViewModel(MainViewModel mainViewModel)
 {
     this._mainViewModel      = mainViewModel;
     this._tourPlannerFactory = TourPlannerFactory.GetInstance();
 }
Example #6
0
 public TourAddViewModel(Window window, MainViewModel mainViewModel)
 {
     this._mainViewModel      = mainViewModel;
     this._window             = window;
     this._tourPlannerFactory = TourPlannerFactory.GetInstance();
 }