Conveyor4_L_R.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Drawing;
  3. using System.Windows.Forms;
  4. using WCS_Client.Frm;
  5. namespace WCS_Client.From.From_Montior
  6. {
  7. public partial class Conveyor4_L_R : UserControl
  8. {
  9. public Conveyor4_L_R()
  10. {
  11. InitializeComponent();
  12. }
  13. private void button1_MouseMove(object sender, MouseEventArgs e)
  14. {
  15. button1.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(144)))), ((int)(((byte)(154)))));
  16. }
  17. private void button1_MouseLeave(object sender, EventArgs e)
  18. {
  19. button1.BackColor = Color.Transparent;
  20. }
  21. private void button1_Click(object sender, EventArgs e)
  22. {
  23. if (Name.Contains("_"))
  24. {
  25. MessageBox.Show("该设备无数据。");
  26. return;
  27. }
  28. if (Name.Length > 3)
  29. {
  30. string equname = Name.Substring(3);
  31. FrmEquMsg_dtl Frm = new FrmEquMsg_dtl(equname);
  32. Frm.Show();
  33. }
  34. }
  35. }
  36. }