/// <summary> /// /// </summary> /// <param name="xD202Device"></param> private void ShowXD202Device(XD202Device xD202Device) { UCXD202Device uc = GetUCXD202Device(); OnlyVisible(uc); uc.XD202Device = xD202Device; }
/// <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); }
public static XD202Device Create(DeviceDefine dd, string name, int address) { XD202Device d = new XD202Device(dd, name, address); return d; }
static public XD202Device Create(DeviceDefine dd, string name, int address) { XD202Device d = new XD202Device(dd, name, address); return(d); }