Beispiel #1
0
        public static void RunParsed(Options options)
        {
            ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

            Globals.options = options;

            // Load things before MainWindow
            AccountManager.ImportExport.LoadAccountInfo();
            ClientManager.ClientInfo.LoadClientInfo();
            //PluginManager.DoInits();

            foreach (var account in options.Launch)
            {
                AccountManager.Account(account).IsSelected();
            }
            foreach (var arg in options.Args)
            {
                AccountArgumentManager.StopGap.IsSelected("-" + arg, true);
            }
            //LaunchManager.Launch();

            if (!options.Silent)
            {
                var app = new App();
                app.InitializeComponent();
                app.Run();
            }
        }