public void SoundChecker()
        {
            Options options = new Options();

            if (options.checkBox2.Checked == false)
            {
                SoundPlayer backgroundSound = new SoundPlayer(Program.ResourcesFolder + "background.wav");
                backgroundSound.PlayLooping();
            }
        }
Ejemplo n.º 2
0
        private void MainPage_Load(object sender, EventArgs e)
        {
            // Music For First Load in
            Options options = new Options();
            SoundPlayer backgroundSound = new SoundPlayer(Program.ResourcesFolder + "background.wav");

            if (!Properties.Settings.Default.MusicDisable)
            {
                backgroundSound.PlayLooping();
            }
            else
            {
                backgroundSound.Stop();
            }

            //Saves main page location
            if (Properties.Settings.Default.FormPosition.X != 0 && Properties.Settings.Default.FormPosition.Y != 0)
            {
                StartPosition = (FormStartPosition)Properties.Settings.Default["FormPosition"];
            }
            timer1.Start();
            timer1.Enabled = true;
        }
Ejemplo n.º 3
0
 // Options
 private void button5_Click(object sender, EventArgs e)
 {
     Options options = new Options();
     options.Show();
 }