public MainWindow() { InitializeComponent(); _Model = new MapEditorModel(); this.Title = _Model.TitleWithSize; this.Closed += new EventHandler(MainWindow_Closed); }
private void MainWindow_Loaded(object sender, RoutedEventArgs e) { Loaded -= MainWindow_Loaded; var view = new MapEditorView(); var model = new MapEditorModel(); var controller = new MapEditorController(model, view); Host.Content = view; controller.Start(); }