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 Conveyor3_B : UserControl { public Conveyor3_B() { InitializeComponent(); } 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(); //} } } }