Пример #1
0
        ///// <summary>
        /////
        ///// </summary>
        ///// <param name="xD2300Device"></param>
        //private void ShowXD2300Device(XD2300Device xD2300Device)
        //{
        //    xD2300Device .DitchData
        //}


        /// <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
        static public XD202Device Create(DeviceDefine dd, string name, int address)
        {
            XD202Device d = new XD202Device(dd, name, address);

            return(d);
        }
Пример #4
0
 ///// <summary>
 ///// 
 ///// </summary>
 ///// <param name="xD2300Device"></param>
 //private void ShowXD2300Device(XD2300Device xD2300Device)
 //{
 //    xD2300Device .DitchData
 //}
 /// <summary>
 /// 
 /// </summary>
 /// <param name="xD202Device"></param>
 private void ShowXD202Device(XD202Device xD202Device)
 {
     UCXD202Device uc = GetUCXD202Device();
     OnlyVisible(uc);
     uc.XD202Device = xD202Device;
 }