Ejemplo n.º 1
0
        private static void Main()
        {
            var game = new Game();

            Settings.Default.SettingsLoaded += game.LoadSettings;

            WindowUtil.RefreshExplorer();

            game.Run(20);
        }
Ejemplo n.º 2
0
        protected override void OnClosing(CancelEventArgs e)
        {
            Registry.SetValue(
                "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
                "ListviewAlphaSelect", 1);

            WindowUtil.ReloadWallpaper();
            WindowUtil.RefreshExplorer();

            base.OnClosing(e);
        }
Ejemplo n.º 3
0
        private void Chb_CheckedChanged(object sender, EventArgs e)
        {
            SaveSettings();

            if (sender == chbSelectionRect)
            {
                Task.Run(() =>
                {
                    Registry.SetValue(
                        "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
                        "ListviewAlphaSelect", Settings.Default.SelectionRect ? 0 : 1);

                    WindowUtil.RefreshExplorer();
                });
            }
        }
Ejemplo n.º 4
0
        public void LoadSettings(object sender, EventArgs args)
        {
            if (Settings.Default.ProcessExceptions is StringCollection s)
            {
                _processExceptions = s;
            }

            TargetRenderFrequency = Settings.Default.FramerateLimit;

            if (!Settings.Default.SelectionRect)
            {
                Task.Run(() =>
                {
                    Registry.SetValue(
                        "HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced",
                        "ListviewAlphaSelect", 0);

                    WindowUtil.RefreshExplorer();
                });
            }
        }