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(); }
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(); }