Esempio n. 1
0
 public void Connect(string serverID)
 {
     this.itemMgtInterface = typeof(IOPCItemMgt).GUID;
     Type typeFromProgID = Type.GetTypeFromProgID(serverID);
     this.pIOPCServer = (IOPCServer) Activator.CreateInstance(typeFromProgID);
     this.groups = new OPCGroupCollection();
 }
Esempio n. 2
0
 internal OPCGroup(OPCServer server, string groupName, int updateRate)
 {
     this.parent = server;
     this.GroupName = groupName;
     this.updateRate = updateRate;
     this.items = new OPCItemCollection();
 }
Esempio n. 3
0
 public void Connect(string ProgID,string ServerName)
 {
     this.itemMgtInterface = typeof(IOPCItemMgt).GUID;
     Type typeFromProgID;
     if (ProgID == null)
         typeFromProgID = Type.GetTypeFromProgID(ServerName);
     else
         typeFromProgID = Type.GetTypeFromProgID(ProgID, ServerName);
     this.pIOPCServer = (IOPCServer)Activator.CreateInstance(typeFromProgID);
     this.groups = new OPCGroupCollection();
 }