void UpdateInterface()
        {
            var en         = (CurrentGame != null);
            var item       = CurrentGame ?? new x360ce.Engine.Data.UserGame();
            var dInputMask = (DInputMask)item.DInputMask;
            var xInputMask = (XInputMask)item.XInputMask;
            var hookMask   = (HookMask)item.HookMask;

            SetMask(en, hookMask, dInputMask, xInputMask, item.FullPath, item.ProcessorArchitecture);
            HookModeFakeVidNumericUpDown_ValueChanged2(null, null);
            HookModeFakeVidNumericUpDown.Value = item.FakeVID;
            HookModeFakePidNumericUpDown.Value = item.FakePID;
            HookModeFakePidNumericUpDown_ValueChanged2(null, null);
            TimeoutNumericUpDown.Value = item.Timeout;
            if (en)
            {
                var status = GetGameStatus(CurrentGame, false);
                ApplySettingsToFolderInstantly    = (status == GameRefreshStatus.OK);
                SynchronizeSettingsButton.Visible = (status != GameRefreshStatus.OK);
                _DefaultSettings             = SettingManager.Programs.Items.FirstOrDefault(x => x.FileName == CurrentGame.FileName);
                ResetToDefaultButton.Enabled = _DefaultSettings != null;
                if (ApplySettingsToFolderInstantly)
                {
                }
            }
        }
        void UpdateInterface()
        {
            var en        = (CurrentGame != null);
            var item      = CurrentGame ?? new x360ce.Engine.Data.Game();
            var inputMask = (XInputMask)item.XInputMask;
            var hookMask  = (HookMask)item.HookMask;

            SetMask(en, hookMask, inputMask, item.FullPath, item.ProcessorArchitecture);
            if (en)
            {
                var status = GetGameStatus(CurrentGame, false);
                ApplySettingsToFolderInstantly    = (status == GameRefreshStatus.OK);
                SynchronizeSettingsButton.Visible = (status != GameRefreshStatus.OK);
                _DefaultSettings             = SettingsFile.Current.Programs.FirstOrDefault(x => x.FileName == CurrentGame.FileName);
                ResetToDefaultButton.Enabled = _DefaultSettings != null;
                if (ApplySettingsToFolderInstantly)
                {
                }
            }
        }