12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- using WCS_Client.Frm;
- namespace WCS_Client.From.From_Montior
- {
- public partial class Conveyor4_L_R : UserControl
- {
- public Conveyor4_L_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();
- }
- }
- }
- }
|