예제 #1
0
파일: frmMain.cs 프로젝트: leadscloud/lx
        /// <summary>
        ///
        /// </summary>
        /// <param name="xD202Device"></param>
        private void ShowXD202Device(XD202Device xD202Device)
        {
            UCXD202Device uc = GetUCXD202Device();

            OnlyVisible(uc);
            uc.XD202Device = xD202Device;
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="task"></param>
        /// <param name="pr"></param>
        public void ProcessExecutedTask(Task task, ParseResult pr)
        {
            int instantFlux  = Convert.ToInt32(pr.NameObjects.GetObject("IF"));
            int remainAmount = Convert.ToInt32(pr.NameObjects.GetObject("RemainAmount"));
            int beforeWL     = Convert.ToInt32(pr.NameObjects.GetObject("WL1"));
            int behindWL     = Convert.ToInt32(pr.NameObjects.GetObject("WL2"));
            int height       = Convert.ToInt32(pr.NameObjects.GetObject("Height"));

            XD202Data   data = new XD202Data(instantFlux, remainAmount, height, beforeWL, behindWL);
            XD202Device d    = task.Device as XD202Device;

            d.XD202Data = data;


            // TODO:
            //
            DB.MeasureSluiceData.Insert(d, data);
        }
예제 #3
0
파일: frmMain.cs 프로젝트: hkiaipc/lx
 /// <summary>
 /// 
 /// </summary>
 /// <param name="xD202Device"></param>
 private void ShowXD202Device(XD202Device xD202Device)
 {
     UCXD202Device uc = GetUCXD202Device();
     OnlyVisible(uc);
     uc.XD202Device = xD202Device;
 }
예제 #4
0
파일: DeviceFactory.cs 프로젝트: hkiaipc/lx
 public static XD202Device Create(DeviceDefine dd, string name, int address)
 {
     XD202Device d = new XD202Device(dd, name, address);
     return d;
 }
예제 #5
0
        static public XD202Device Create(DeviceDefine dd, string name, int address)
        {
            XD202Device d = new XD202Device(dd, name, address);

            return(d);
        }