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