示例#1
0
        private void OptionsWindow_EnabledChanged(object sender, EventArgs e)
        {
            if (!lanMode)
            {
                SetSwitchButtonsClickable(!optionsWindow.Enabled);
            }

            SetOptionsButtonClickable(!optionsWindow.Enabled);

            if (optionsWindow != null)
            {
                optionsWindow.ToggleMainMenuOnlyOptions(primarySwitches.Count == 1 && !lanMode);
            }
        }