Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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;
        }