1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- 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();
- //}
- }
- readonly Dictionary<Button, string> dic = new Dictionary<Button, string>();
- private void button1_MouseMove(object sender, MouseEventArgs e)
- {
- button1.BackColor = Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(144)))), ((int)(((byte)(154)))));
- if (Name.Contains("_")) { return; }
- dic.Clear();
- string equname = Name.Substring(3);
- dic.Add(button1, equname);
- MoveOverInfoTip.SettingMutiTipInfo(dic);
- }
- }
- }
|