public void hidePanel() { Qpanel.Hide(); Tpanel.Hide(); Cpanel.Hide(); Dpanel.Hide(); Wpanel.Hide(); }
private void serialPort_DataReceived(object sender, SerialDataReceivedEventArgs e) { resive = serialPort.ReadLine(); try { X = GetInt(0); Y = GetInt(1); Invoke(new Action(() => { label6.Text = $"Receive X = {X};Y = {Y}"; label7.Text = resive; Dpanel.Refresh(); })); serialPort.Write(resive); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void depositButton_Click(object sender, EventArgs e) { hideButton(); Dpanel.Show(); }