| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 | 
							- using IMCS.DefaultList;
 
- using System;
 
- using System.Collections.Generic;
 
- using System.ComponentModel;
 
- using System.Data;
 
- using System.Drawing;
 
- using System.Linq;
 
- using System.Text;
 
- using System.Threading.Tasks;
 
- using System.Windows.Forms;
 
- namespace IMCS.Componen
 
- {
 
-     public partial class Uctl_OContro2 : UserControl
 
-     {
 
-         public DeviceStateDefaultList deviceStateDefaultList { get; set; } = new DeviceStateDefaultList();
 
-         Uctl_OComponen1 uctl_OComponen1 = new Uctl_OComponen1();
 
-         
 
-         public Uctl_OContro2()
 
-         {
 
-             InitializeComponent();
 
-             this.Load += (s, e) =>
 
-             {
 
-                 //this.lb_Name.BackColor = System.Drawing.Color.Green;
 
-                 lb_Name.TextAlign = ContentAlignment.MiddleLeft;
 
-              
 
-                 deviceStateDefaultList.PropertyChanged += DeviceStateDefaultList_PropertyChanged;
 
-                 //dComponen.Dock = DockStyle.Bottom;
 
-                 //dComponen.Show();
 
-                 //dComponen.Visible = false;
 
-                 //this.Controls.Add(dComponen);
 
-                 //uctrl_first.Location = new Point(101, 120);
 
-                 //this.Controls.Add(uctrl_first);
 
-                 //uctrl_two.Location = new Point(3, 264);
 
-                 //this.Controls.Add(uctrl_two);
 
-                 //uctrl_third.Location = new Point(212, 264);
 
-                 //this.Controls.Add(uctrl_third);
 
-                 this.MouseDown += (t, k) => {
 
-                     if (k.Button.Equals(MouseButtons.Right))
 
-                     {
 
-                         Point pt=new Point();
 
-                         pt.Offset(k.Location.X, k.Location.Y);
 
-                         this.popupMenu1.ShowPopup(Control.MousePosition);
 
-                     }
 
-                 };
 
-             };
 
-         
 
-         }
 
-         private void DeviceStateDefaultList_PropertyChanged(object sender, PropertyChangedEventArgs e)
 
-         {
 
-             DeviceStateDefaultList dl = sender as DeviceStateDefaultList;
 
-             switch (e.PropertyName)
 
-             {
 
-                 case "Device_OnLine":
 
-                   
 
-                     break;
 
-                 case "Device_ConnectionMes":
 
-                   
 
-                     break;
 
-                 case "Device_Name":
 
-                     this.lb_Name.BeginInvoke(new Action(() =>
 
-                     {
 
-                         this.lb_Name.Text = dl.Device_Name;
 
-                     }));
 
-                     break;
 
-                 case "Device_Pan":
 
-                     if (dl.Device_Pan.Equals(EnumPlateNum.Plate_One))
 
-                     {
 
-                         this.pan_right.BackColor = System.Drawing.Color.FromArgb(223, 223, 223);
 
-                         this.pan_right_bottom.Visible = false;
 
-                         this.pan_right_cen.Visible = false;
 
-                         this.pan_right_top.Visible = false;
 
-                     }
 
-                     else if (dl.Device_Pan.Equals(EnumPlateNum.Plate_Zero))
 
-                     {
 
-                         this.pan_left.Visible = false;
 
-                         this.pan_right.Visible = false;
 
-                         this.pan_Ful.BackColor = System.Drawing.Color.FromArgb(223, 223, 223);
 
-                     }
 
-                     else if (dl.Device_Pan.Equals(EnumPlateNum.Plate_Two))
 
-                     {
 
-                         
 
-                     }
 
-                    
 
-                     break;
 
-                 case "Device_Runing":
 
-                   
 
-                     break;
 
-             }
 
-         }
 
-     }
 
- }
 
 
  |