Srm3.cs 969 B

123456789101112131415161718192021222324252627282930313233343536
  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 Srm3 : UserControl
  13. {
  14. public Srm3()
  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. string strname = Name.Substring(0, 5);
  29. Form_EquInfo equinfo = new Form_EquInfo(strname);
  30. equinfo.Show();
  31. }
  32. }
  33. }