public override void Initialize(string file) { opcServer = new OPCServer(Name); Config.Configuration config = new Config.Configuration(file); opcServer.Connect(config.ProgID, config.ServerName);// opcServer.Connect(config.ConnectionString); OPCGroup group = opcServer.AddGroup(config.GroupName, config.UpdateRate); foreach (Config.ItemInfo item in config.Items) { group.AddItem(item.ItemName, item.OpcItemName, item.ClientHandler, item.IsActive); } opcServer.Groups.DefaultGroup.OnDataChanged += new OPCGroup.DataChangedEventHandler(DefaultGroup_OnDataChanged); }