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; using WCS_Client.Frm; namespace WCS_Client.From.From_Montior { public partial class Conveyor_R : UserControl { public Conveyor_R() { 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) { if (Name.Contains("_")) { MessageBox.Show("该设备无数据。"); return; } if (Name.Length > 3) { string equname = Name.Substring(3); FrmEquMsg_dtl Frm = new FrmEquMsg_dtl(equname); Frm.Show(); } //int index = Name.LastIndexOf('_'); //if (index > 0) //{ // string equname = Name.Substring(index + 1); // Form_EquInfo equinfo = new Form_EquInfo(equname); // equinfo.Show(); //} } } }