コード例 #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"
     });
 }
コード例 #2
0
 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
ファイル: TourFolderVM.cs プロジェクト: Grengster/TourPlaner
 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();
 }