/// <summary> /// /// </summary> /// <returns></returns> public IEnumerable <string> Config() { OpcBrowserViewModel opv = new OpcBrowserViewModel(); if (Service != null) { string ss = Service.GetConfigServerUrl(); if (!string.IsNullOrEmpty(ss)) { opv.ServerAddress = ss; } string user = Service.GetConfigUserName(); if (!string.IsNullOrEmpty(ss)) { opv.UserName = user; } string pass = Service.GetConfigPassword(); if (!string.IsNullOrEmpty(pass)) { opv.Password = pass; } } if (opv.ShowDialog().Value) { return(opv.GetSelectTags()); } return(null); }
/// <summary> /// /// </summary> /// <param name="model"></param> public VariableItem(ReferenceDescription model, OpcBrowserViewModel parent, NodeItem owner) { mModel = model; mParent = parent; Init(); }