protected override void OnStartup(StartupEventArgs e) { try { if (Environment.GetCommandLineArgs().ShiftLeft(1).First() == "mapEditorOnly") { var mainView = new MapEditorWindow(); mainView.Show(); } else { InitApplication(); } } catch (Exception ex) { LoggingManager.LogMySynchSystemError(ex); InitApplication(); } }
private void LaunchMapEditor() { if(_mapEditorView==null) { _mapEditorView = new MapEditorWindow(true); _mapEditorView.Closing += ViewsClosing; } _mapEditorView.Show(); }