private void MainWindow_OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { var m = DataContext as RailwayEssentialModel; if (m != null) { _dataContext = m; m.MainView = this; } }
public static AutoplayRouteThread Start(RailwayEssentialModel model, Autoplay autoplayer, Analyze.Route route) { var c = new AutoplayRouteThread { Model = model, Autoplayer = autoplayer, Route = route }; c.Initialize(); return(c); }
public Analyze(RailwayEssentialModel model) { _model = model; }
public Map(RailwayEssentialModel model) { _model = model; Items = new List <MapItem>(); }