public ObjectHandler(Canvas canvas, CityDesignerWindow window) { Canvas = canvas; Window = window; //subscribe CityLoadedEvent CityLoader.SubscribeLoadedCity(LoadedCityToCanvas); }
public MainScreen() { consoleWindow = new ConsoleWindow(); modelDesigner = new ModelDesigner.ModelDesigner(); cityDesigner = new CityDesigner.CityDesignerWindow(); #if DEBUG algorithmDebuggerWindow = AlgorithmDebuggerWindow.Instance; algorithmDebuggerWindow.Show(); #endif CommandLoop.Start(); Initialized += (sender, args) => Initialize(); InitializeComponent(); }