Example #1
0
        private void Return_Click(object sender, EventArgs e)
        {
            if (MianForm.Enon.enon)
            {
                Play("//return.wav");
            }
            else
            {
                Play("//RETURN (2).wav");
            }
            MianForm mianForm = new MianForm();

            mianForm.Show();
            this.Hide();
        }
Example #2
0
        private void Return_Click(object sender, EventArgs e)
        {
            if (MianForm.Enon.enon)
            {
                Play("//return.wav");
            }
            else
            {
                Play("//RETURN (2).wav");
            }

            if (mySerialPort.IsOpen)
            {
                mySerialPort.Close();
            }
            MianForm mianForm = new MianForm();

            mianForm.Show();
            Close();
        }