public WoopsaAdsProperty(WoopsaObject container, string name, WoopsaValueType type, WoopsaPropertyGet get, WoopsaPropertySet set, TcAdsSymbolInfo adsInfo) : base(container, name, type, get, set) { string[] path = adsInfo.Name.Split('.'); RootName = path[0]; AdsInfo = adsInfo; }
public WoopsaProperty(WoopsaObject container, string name, WoopsaValueType type, WoopsaPropertyGet get, WoopsaPropertySet set) : base(container, name) { Type = type; _get = get; IsReadOnly = set == null; if (!IsReadOnly) { _set = set; } if (container != null) { container.Add(this); } }
public WoopsaAdsServer(string netId) { _netId = netId; _tcAds = new TcAdsClient(); try { _tcAds.Connect(netId, _PORT); } catch (Exception) { isAdsConnected = false; } _woopsaAdsPropertyGet = this.ReadAdsValue; _woopsaAdsPropertySet = this.WriteAdsValue; }
public WoopsaClientProperty(WoopsaBaseClientObject container, string name, WoopsaValueType type, WoopsaPropertyGet get, WoopsaPropertySet set) : base(container, name, type, get, set) { if (container == null) { throw new ArgumentNullException("container", string.Format("The argument '{0}' of the WoopsaClientProperty constructor cannot be null!", "container")); } }
public WoopsaClientProperty(WoopsaBaseClientObject container, string name, WoopsaValueType type, WoopsaPropertyGet get, WoopsaPropertySet set) : base(container, name, type, get, set) { if (container == null) throw new ArgumentNullException("container", string.Format("The argument '{0}' of the WoopsaClientProperty constructor cannot be null!", "container")); }