private void next_button_Click(object sender, EventArgs e) { this.Hide(); PlasticPage pp = new PlasticPage(); pp.ShowDialog(); }
private async void button1_Click(object sender, EventArgs e) { SoundPlayer player = new SoundPlayer(); player.SoundLocation = AppDomain.CurrentDomain.BaseDirectory + "..\\..\\recs\\correct.wav"; player.Play(); checkMark.Visible = true; cross_mark1.Visible = false; cross_mark2.Visible = false; button_hartie.Enabled = false; button2.Enabled = false; await Task.Delay(1000); this.Hide(); PlasticPage pp = new PlasticPage(); pp.ShowDialog(); }