Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        public static ITourPlannerFactory GetInstance()
        {
            if (instance == null)
            {
                instance = new TourPlannerFactoryImpl();
            }

            return(instance);
        }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
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;
 }
Exemplo n.º 5
0
 public SearchUcViewModel(MainViewModel mainViewModel)
 {
     this._tourPlannerFactory = TourPlannerFactory.GetInstance();
     InitListbox();
     this._mainViewModel = mainViewModel;
 }
Exemplo n.º 6
0
 public TourInfoUcViewModel(MainViewModel mainViewModel)
 {
     this._tourPlannerFactory = BusinessLayer.TourPlannerFactory.GetInstance();
     this._mainViewModel      = mainViewModel;
     InitListbox();
 }
 public TourListUserControlViewModel(MainViewModel mainViewModel)
 {
     this._mainViewModel      = mainViewModel;
     this._tourPlannerFactory = TourPlannerFactory.GetInstance();
 }
Exemplo n.º 8
0
 public TourAddViewModel(Window window, MainViewModel mainViewModel)
 {
     this._mainViewModel      = mainViewModel;
     this._window             = window;
     this._tourPlannerFactory = TourPlannerFactory.GetInstance();
 }