Conveyor7.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Drawing;
  5. using System.Data;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace WCS_Client.From.From_Montior
  11. {
  12. public partial class Conveyor7 : UserControl
  13. {
  14. public Conveyor7()
  15. {
  16. InitializeComponent();
  17. }
  18. private void button1_MouseMove(object sender, MouseEventArgs e)
  19. {
  20. button1.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(144)))), ((int)(((byte)(154)))));
  21. }
  22. private void button1_MouseLeave(object sender, EventArgs e)
  23. {
  24. button1.BackColor = Color.Transparent;
  25. }
  26. private void button1_Click(object sender, EventArgs e)
  27. {
  28. int index = Name.LastIndexOf('_');
  29. if (index > 0)
  30. {
  31. string equname = Name.Substring(index + 1);
  32. Form_EquInfo equinfo = new Form_EquInfo(equname);
  33. equinfo.Show();
  34. }
  35. }
  36. }
  37. }