public void Init(OPCUAInitializer init) { tagConfigurator = init.TagConfigurator; endpointURL = init.EndpointURL; autoAccept = init.AutoAccept; publishingInterval = init.PublishingInterval; clientRunTime = init.StopTimeout <= 0 ? Timeout.Infinite : init.StopTimeout * 1000; serverExportMethod = init.ServerExportMethod; rootTagFolder = init.RootTagsFolder; ListOfTags = new ListOfTags(); uid = new UserIdentity(init.UserName, init.Password); }
public void GetTabNames() { listOfTags.Clear(); string xfile = fileloc + "\\" + selectedfile + ".xml"; XmlDocument xdoc = new XmlDocument(); xdoc.Load(xfile); XmlNodeList nodes = xdoc.GetElementsByTagName("TabName"); foreach (XmlNode node in nodes) { ListOfTags.Add(node.Attributes["Name"].Value); } }