Example #1
0
 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();
     }
 }
Example #2
0
 private void LaunchMapEditor()
 {
     if(_mapEditorView==null)
     {
         _mapEditorView = new MapEditorWindow(true);
         _mapEditorView.Closing += ViewsClosing;
     }
     _mapEditorView.Show();
 }