Beispiel #1
0
        private void picBack_Click(object sender, EventArgs e)
        {
            story--;
            picBack.Image = Image.FromFile(Application.StartupPath + "\\Button\\tombolDown-07.png");

            if (story <= 1)
            {
                SoundStory.Stop();
                Form_Peta form = new Form_Peta(2, sound);
                this.Hide();
                form.ShowDialog();
                this.Close();
            }
            else if (story == 2)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine4\\2-2.jpg");
            }
            else if (story == 3)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine4\\2-3.jpg");
            }
            else if (story == 4)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine4\\2-4.jpg");
            }
        }
        private void picNext_Click(object sender, EventArgs e)
        {
            story++;
            picNext.Image = Image.FromFile(Application.StartupPath + "\\Button\\tombolDown-06.png");

            if (story >= 7)
            {
                SoundStory.Stop();
                Form_Peta form = new Form_Peta(3, sound);
                this.Hide();
                form.ShowDialog();
                this.Close();
            }
            else if (story == 2)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine5\\2-7b.jpg");
            }
            else if (story == 3)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine5\\2-7c.jpg");
            }
            else if (story == 4)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine5\\2-7d.jpg");
            }
            else if (story == 5)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine5\\2-7e.jpg");
            }
            else if (story == 6)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine5\\2-8_MAP.jpg");
            }
        }
        private void picBack_Click(object sender, EventArgs e)
        {
            story--;
            picBack.Image = Image.FromFile(Application.StartupPath + "\\Button\\tombolDown-07.png");

            if (story <= 0)
            {
                SoundStory.Stop();
                Form_Peta form = new Form_Peta(3, sound);
                this.Hide();
                form.ShowDialog();
                this.Close();
            }
            else if (story == 1)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine6\\3-1.jpg");
            }
            else if (story == 2)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine6\\3-2a.jpg");
            }
            else if (story == 3)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine6\\3-2b.jpg");
            }
            else if (story == 4)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine6\\3-2c.jpg");
            }
            else if (story == 5)
            {
                if (sound == 1)
                {
                    SoundStory2.Stop();
                    SoundStory.Play();
                }
                else if (sound == 0)
                {
                    SoundStory2.Stop();
                    SoundStory.Stop();
                }
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine6\\3-3.jpg");
            }
            else if (story == 6)
            {
                this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine6\\3-4.jpg");
            }
        }