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;
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 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 WoopsaAdsServer(string netId)
 {
     _netId = netId;
     _tcAds = new TcAdsClient();
     try
     {
         _tcAds.Connect(netId, _PORT);
     }
     catch (Exception)
     {
         isAdsConnected = false;
     }
     _woopsaAdsPropertyGet = this.ReadAdsValue;
     _woopsaAdsPropertySet = this.WriteAdsValue;
 }
Beispiel #5
0
 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"));
 }
Beispiel #7
0
 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;
 }