Ejemplo n.º 1
0
        public void OnSelected()
        {
            SteamToolsOptionsDialog dlg = new SteamToolsOptionsDialog();

            dlg.PollingSteamRate = SteamToolsOptions.PollingSteamRate;
            dlg.ShowInstalled    = SteamToolsOptions.ShowInstalled;
            dlg.HideUninstalled  = SteamToolsOptions.HideUninstalled;

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                SteamToolsOptions.PollingSteamRate = dlg.PollingSteamRate;
                SteamToolsOptions.ShowInstalled    = dlg.ShowInstalled;
                SteamToolsOptions.HideUninstalled  = dlg.HideUninstalled;

                SteamToolsOptions.SaveConfig();
            }
        }
Ejemplo n.º 2
0
        internal static void Init()
        {
            SteamToolsOptions.LoadConfig();
            try
            {
                LaunchBoxPremiumLicenceFound = File.Exists(@"License.xml");
            }
            catch { }
            lock (contextLock)
            {
                if (context == null)
                {
                    context = SteamContext.GetInstance();

                    SteamSentinalToken  = new CancellationTokenSource();
                    SteamSentinalThread = new Thread(new ThreadStart(CheckSteam));
                    SteamSentinalThread.Start();

                    SteamUpdateSentinalToken  = new CancellationTokenSource();
                    SteamUpdateSentinalThread = new Thread(new ThreadStart(CheckSteamGames));
                    SteamUpdateSentinalThread.Start();
                }
            }
        }