Пример #1
0
        private void next_button_Click(object sender, EventArgs e)
        {
            this.Hide();
            PlasticPage pp = new PlasticPage();

            pp.ShowDialog();
        }
Пример #2
0
        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();
        }