public static PLC数据集 获取PLC数据集() { PLC数据集 _PLC = new PLC数据集(); _PLC.加载PLC数据项(); return(_PLC); }
public MainFrame() { InitializeComponent(); 电参数地址集合 _电参数地址集合 = new 电参数地址集合(); AnyWay类构造.获取AnyWay数据集(); PLC = PLC类构造.获取PLC数据集(); 装载计算列.To装载计算列(); 装载值列.To装载值列(); PLC.加载触屏数据(); 加载触屏数据(); 数据服务类.获取数据服务对象(); foreach (var item in barManager1.Items) { if(item.GetType().ToString().Equals("DevExpress.XtraBars.BarButtonItem")) ((DevExpress.XtraBars.BarButtonItem)item).ItemClick += new DevExpress.XtraBars.ItemClickEventHandler(MainFrame_ItemClick); } this.axShockwaveFlash1.Movie = AppDomain.CurrentDomain.BaseDirectory + "\\附件\\running.swf"; //指定FLASH路径 数显仪表集合1.BorderStyle = BorderStyle.None; //仪表控件会自动显示成3D边框,原因未知,此处强隐。 thead_触屏 = new System.Threading.Thread(this.触屏_Run); thead_触屏.IsBackground = true; thead_触屏.Start(); }
public static PLC数据集 获取PLC数据集() { PLC数据集 _PLC = new PLC数据集(); _PLC.加载PLC数据项(); return _PLC; }