Example #1
0
        public ObjectHandler(Canvas canvas, CityDesignerWindow window)
        {
            Canvas = canvas;
            Window = window;

            //subscribe CityLoadedEvent
            CityLoader.SubscribeLoadedCity(LoadedCityToCanvas);
        }
Example #2
0
        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();
        }