/// <summary> /// Entry point for the app. /// </summary> public App() { #if DEBUG ConsoleManager.Create(); #else ConsoleManager.Attach(); #endif Console.Out.WriteLine(); Info(AppTitle); try { // Open main window var mainWindow = new MainWindow(); mainWindow.Show(); } catch (Exception e) { Error("Exception caught from App"); DialogFatalError(e); } }
public static void Attach(CommandArgs args) { var alias = args.Read <string>(); ConsoleManager.Attach(alias); }