public override UI GetObject(UI_Info info) { return(controller.CreateUI(info)); }
public virtual void execute(UI_Info info) { throw new UnityException("Not defined"); }
public UI CreateUI(CommandType type, UI_Info info) { return(m_client.GetObject(type, info)); }
public override void SetParaMeter(List <UI_Analog> AnalogSignalValueList, List <UI_Digital> DigitalSignalValueList, UI_Info Info) { basic.PortId = Info.PortId; basic.DeviceId = Info.DeviceId; basic.PortName = Info.PortName; basic.DeviceName = Info.DeviceName; CommStateInfo UPSCommState; bool ComminicationState = false; if (UPS_Three_Info == null) { UPS_Three_Info = Info; } if (Info.CommuState == DivCommStateEnum.Success) { ComminicationState = true; UPSCommState = CommStateInfo.Normal; if (AnalogSignalValueList != null && DigitalSignalValueList != null) { UI_Analog[] AnalogArray = AnalogSignalValueList.ToArray(); UI_Digital[] DigitalArray = DigitalSignalValueList.ToArray(); //三相UPS状态信息框更新 StatePageInt(UPSCommState); AnalogArray = AnalogSignalValueList.ToArray(); DigitalArray = DigitalSignalValueList.ToArray(); //设置数字量同时返回UPS与SNMP卡通讯状态 UPSCommState = SetDigitalData(DigitalArray); if (UPSCommState == CommStateInfo.Normal) { //设置模拟量 SetAnalogData(AnalogArray); } else if (UPSCommState == CommStateInfo.FailToUPS) { ArrayInt(UPSCommState); } } } else if (Info.CommuState == DivCommStateEnum.Failed) { ComminicationState = false; UPSCommState = CommStateInfo.FailToSnmp; ArrayInt(UPSCommState); } //UPS直接控制页面各控件使能与否 upsControlPage1.LoadShowInfo(ComminicationState); //更新控制页面除外的其他页面 RefreshPagesShow(); }
public UI GetObject(CommandType type, UI_Info info) { return(commands[(int)type].GetObject(info)); }
public void execute(CommandType type, UI_Info info) { int commandType = (int)type; commands [commandType].execute(info); }
public UI CreateUI(UI_Info info) { return(m_client.GetObject(CommandType.UI_Create, info)); }