//----------------------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(); }
/*public string CurrentTourDateLog * { * get * { * CurrentTour. * } * }*/ public MainWindowViewModel() { addTourViewModel = new AddTourViewModel(); addLogViewModel = new AddLogViewModel(); editLogViewModel = new EditLogsViewModel(); importViewModel = new ImportViewModel(); itemFactory = TourItemFactory.GetInstance(); ReadListBox(); }
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(); }
public TourFolderVM() { try { this.tourItemFactory = TourItemFactory.GetInstance(); log.Info("Started ItemFactory..."); } catch (Exception e) { log.Error(e); } InitListbox(); }
public AddLogViewModel() { this.itemFactory = TourItemFactory.GetInstance(); }
public AddTourViewModel() { this.tourItemFactory = TourItemFactory.GetInstance(); }
public ImportViewModel() { itemFactory = TourItemFactory.GetInstance(); }
public EditLogsViewModel() { this.itemFactory = TourItemFactory.GetInstance(); this.updateLogViewModel = new UpdateLogViewModel(); }
public TourFolderVM() { _tourItemFactory = TourItemFactory.GetInstance(); InitListBox(); }
public UpdateTourViewModel() { this.itemFactory = TourItemFactory.GetInstance(); }