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; }
public void Update() { BusRoutesStorageFactory.GetStorageFactory().GetStotage().Update(this); }
public void Save() { BusRoutesStorageFactory.GetStorageFactory().GetStotage().Save(this); }