private void BtnChangeBg_Click(object sender, EventArgs e) { Audio.PlaySoundFile("sndclick"); FrmBackgroundChoices bg = new FrmBackgroundChoices(); bg.ShowDialog(); if (!Settings.Instance.WantRandomBackgrounds) { BackgroundImage.Dispose(); BackgroundImage = Background.ReturnBackground(Settings.Instance.Background); } ActiveControl = null; }
private void BtnChangeBg_Click(object sender, EventArgs e) { Audio.PlaySoundFile("sndclick"); FrmBackgroundChoices bg = new FrmBackgroundChoices(); bg.ShowDialog(); if (!Properties.Settings.Default.WantsRandomBg) { BackgroundImage.Dispose(); BackgroundImage = Background.ReturnBackground(Properties.Settings.Default.Background); } ActiveControl = null; }