using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WCS_Client.From.From_Montior { public partial class Conveyor7 : UserControl { public Conveyor7() { InitializeComponent(); } private void button1_MouseMove(object sender, MouseEventArgs e) { button1.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(144)))), ((int)(((byte)(154))))); } private void button1_MouseLeave(object sender, EventArgs e) { button1.BackColor = Color.Transparent; } private void button1_Click(object sender, EventArgs e) { int index = Name.LastIndexOf('_'); if (index > 0) { string equname = Name.Substring(index + 1); Form_EquInfo equinfo = new Form_EquInfo(equname); equinfo.Show(); } } } }