public MainWindow() { Application.Current.ShutdownMode = ShutdownMode.OnExplicitShutdown; InitializeComponent(); mFrameDone = true; mRunning = true; mUpdateDone = false; mAutoStartGame = true; mAutoClose = false; mOKDialog = new OKDialog(); mYesNoDialog = new YesNoDialog(); mBusyInfo = new BusyInfo(); mEditorCore = new EditorCore(); init(); }