public MainWindow()
        {
            inst_ = this;
            errHandler = new ErrorHandler();
            this.ContentLoader = new ContentLoader();

            // Release builds will attempt to swallow errors as much as possible with the opportunity to report the error
            // Debug builds will not
            #if !debug
                AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
            #endif

            TextBlock tb = new TextBlock();
            tb.Opacity = 0.025;
            tb.Text = "asDevelop v" + Assembly.GetAssembly(typeof(MainWindow)).GetName().Version.Major + "." + Assembly.GetAssembly(typeof(MainWindow)).GetName().Version.Minor;
            tb.FontSize = 48;
            tb.FontWeight = FontWeights.Bold;
            tb.HorizontalAlignment = System.Windows.HorizontalAlignment.Left;
            tb.VerticalAlignment = System.Windows.VerticalAlignment.Top;
            BackgroundContent = tb;

            Net.DebugClient client = new Net.DebugClient(new Debugger.Debug.SessionData(""));
            pluginManager = new PluginManager("plugins");
            InitializeComponent();
            AppearanceManager.Current.ThemeSource = AppearanceManager.DarkThemeSource;
            AppearanceManager.Current.AccentColor = Colors.DarkOliveGreen;
            ContentSource = new Uri("Screens/LaunchScreen.xaml", UriKind.Relative);

            LinkNavigator.Commands.Add(new Uri("cmd://showPlugins", UriKind.Absolute), new RelayCommand(o => showPlugins()));
            errTimer = new Timer();
            errTimer.Enabled = true;
            errTimer.AutoReset = true;
            errTimer.Interval = 200;
            errTimer.Elapsed += errTimer_Elapsed;
            errTimer.Start();
        }
 public ErrorHandler()
 {
     inst_ = this;
 }