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(); } }
private void picNext2_Click(object sender, EventArgs e) { picBack.Visible = false; picNext2.Visible = false; lblFind.Text = ""; picNext2.Image = Image.FromFile(Application.StartupPath + "\\Button\\tombolDown-06.png"); if (Find < 6) { int hasil = RollChar(); while (hasil == Tools[0] || hasil == Tools[1] || hasil == Tools[2] || hasil == Tools[3] || hasil == Tools[4] || hasil == Tools[5]) { hasil = RollChar(); } Tools[Find] = hasil; lblFind.Text = "Temukan : " + FormatBenda(Tools[Find]); } else { SoundGame1.Stop(); picNext2.Image = Image.FromFile(Application.StartupPath + "\\Button\\tombolDown-06.png"); Story_Line_3 form = new Story_Line_3(1, sound); this.Hide(); form.ShowDialog(); this.Close(); } }