private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //StotageUtils.GenerateTestDataAndSave();

            var oneTown = BusRoutesStorageFactory.GetStorageFactory().GetStotage().LoadOneTown();

            RoutesOfTownProcess routesOfTownProcessModel = new RoutesOfTownProcess(oneTown);

            ViewModelRouteEventCreator creator = new ViewModelRouteEventCreator();


            RoutesOfTownProcessVM = new ProcessViewModel(routesOfTownProcessModel, creator, new RouteEventModelAdapterCreator());

            this.DataContext = this;
        }
Exemplo n.º 2
0
 public void Update()
 {
     BusRoutesStorageFactory.GetStorageFactory().GetStotage().Update(this);
 }
Exemplo n.º 3
0
 public void Save()
 {
     BusRoutesStorageFactory.GetStorageFactory().GetStotage().Save(this);
 }