private void picNext_Click(object sender, EventArgs e) { story++; picNext.Image = Image.FromFile(Application.StartupPath + "\\Button\\tombolDown-06.png"); if (story >= 3) { SoundStory.Stop(); Form_Where_Are_The_Tools form = new Form_Where_Are_The_Tools(sound); this.Hide(); form.ShowDialog(); this.Close(); } else if (story == 2) { this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine2\\2-2.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_Where_Are_The_Tools form = new Form_Where_Are_The_Tools(sound); this.Hide(); form.ShowDialog(); this.Close(); } else if (story == 1) { this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine3\\1-4a.jpg"); } else if (story == 2) { this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine3\\1-4b.jpg"); } else if (story == 3) { this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine3\\1-4c.jpg"); } else if (story == 4) { this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine3\\1-4d.jpg"); } else if (story == 5) { this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine3\\1-4e.jpg"); } else if (story == 6) { this.BackgroundImage = Image.FromFile(Application.StartupPath + "\\StoryLine3\\1-4f_MAP.jpg"); } }