private void picBack_Click(object sender, EventArgs e)
 {
     if (rumah == 1)
     {
         SoundMap.Stop();
         Story_Line_1 form = new Story_Line_1(7, sound);
         this.Hide();
         form.ShowDialog();
         this.Close();
     }
     else if (rumah == 2)
     {
         SoundMap.Stop();
         Story_Line_3 form = new Story_Line_3(7, sound);
         this.Hide();
         form.ShowDialog();
         this.Close();
     }
     else
     {
         SoundMap.Stop();
         Story_Line_5 form = new Story_Line_5(6, sound);
         this.Hide();
         form.ShowDialog();
         this.Close();
     }
 }
Пример #2
0
        private void picMulai_Click(object sender, EventArgs e)
        {
            SoundStory.Stop();
            Story_Line_1 form = new Story_Line_1(1, sound);

            this.Hide();
            form.ShowDialog();
            this.Close();
        }
        private void picNewGame_Click(object sender, EventArgs e)
        {
            SoundMain.Stop();
            picNewGame.Image = Image.FromFile(Application.StartupPath + "\\Button\\tombolMulaiBermainDown.png");
            Story_Line_1 form = new Story_Line_1(1, sound);

            this.Hide();
            form.ShowDialog();
            this.Close();
        }