示例#1
0
 //----------------------Ende Valdierung------------//
 public AddTourViewModel()
 {
     itemFactory       = TourItemFactory.GetInstance();
     list_of_tourtypes = new ObservableCollection <TourType>();
     list_of_tourtypes.Add(new TourType()
     {
         Name = "Fastest"
     });
     list_of_tourtypes.Add(new TourType()
     {
         Name = "Shortest"
     });
     list_of_tourtypes.Add(new TourType()
     {
         Name = "Pedestrian"
     });
     list_of_tourtypes.Add(new TourType()
     {
         Name = "Bicycle"
     });
     list_of_tourtypes.Add(new TourType()
     {
         Name = "Multimodal"
     });
 }
 public MainViewModel()
 {
     this.tourItemFactory = TourItemFactory.GetInstance();
     Items = new ObservableCollection <TourItem>();
     Logs  = new ObservableCollection <DataGridItem>();
     FillListBox();
 }
示例#3
0
        /*public string CurrentTourDateLog
         * {
         *  get
         *  {
         *      CurrentTour.
         *  }
         * }*/


        public MainWindowViewModel()
        {
            addTourViewModel = new AddTourViewModel();
            addLogViewModel  = new AddLogViewModel();
            editLogViewModel = new EditLogsViewModel();

            importViewModel = new ImportViewModel();
            itemFactory     = TourItemFactory.GetInstance();

            ReadListBox();
        }
示例#4
0
 public EditTourViewModel(Tour current_t)
 {
     CurrentTour = current_t;
     TourName    = current_t.Name;
     From        = current_t.From;
     To          = current_t.To;
     RouteType   = current_t.Route_Type;
     Description = current_t.Description;
     this.updateTourViewModel = new UpdateTourViewModel();
     this.itemFactory         = TourItemFactory.GetInstance();
 }
示例#5
0
 public TourFolderVM()
 {
     try
     {
         this.tourItemFactory = TourItemFactory.GetInstance();
         log.Info("Started ItemFactory...");
     }
     catch (Exception e)
     {
         log.Error(e);
     }
     InitListbox();
 }
示例#6
0
 public AddLogViewModel()
 {
     this.itemFactory = TourItemFactory.GetInstance();
 }
示例#7
0
 public AddTourViewModel()
 {
     this.tourItemFactory = TourItemFactory.GetInstance();
 }
示例#8
0
 public ImportViewModel()
 {
     itemFactory = TourItemFactory.GetInstance();
 }
示例#9
0
 public EditLogsViewModel()
 {
     this.itemFactory        = TourItemFactory.GetInstance();
     this.updateLogViewModel = new UpdateLogViewModel();
 }
示例#10
0
 public TourFolderVM()
 {
     _tourItemFactory = TourItemFactory.GetInstance();
     InitListBox();
 }
示例#11
0
 public UpdateTourViewModel()
 {
     this.itemFactory = TourItemFactory.GetInstance();
 }