Beispiel #1
0
        private void ButtonListOfflineMods_Click(object sender, EventArgs e)
        {
            FormListSelect fls = new FormListSelect("The following mods are offline available:", "Offline mods", beatMods.OfflineMods.ToArray());

            fls.ReadOnly = true;
            fls.ShowDialog();
        }
Beispiel #2
0
        private void buttonChangeBeatSaberType_Click(object sender, EventArgs e)
        {
            FormListSelect fls = new FormListSelect("Please select where you got Beat Saber from:", "Change type...", "Steam", "Oculus Store");

            if (fls.ShowDialog() == DialogResult.OK)
            {
                if ((string)fls.Result == "Steam")
                {
                    beatSaber.BeatSaberType = BeatSaberInstalledType.Steam;
                    SaveConfig();
                }
                else if ((string)fls.Result == "Oculus Store")
                {
                    beatSaber.BeatSaberType = BeatSaberInstalledType.Oculus;
                    SaveConfig();
                }
                else
                {
                    beatSaber.BeatSaberType = BeatSaberInstalledType.Universal;
                    SaveConfig();
                }

                labelBeatSaberType.Text = "Beat Saber type: " + beatSaber.BeatSaberType;
            }
        }