private static XElement WriteLink(Link link) { var element = new XElement(LinkName); element.SetAttribute(NameAttr, link.Name); element.SetAttribute(PathAttr, link.Path); element.SetAttribute(UserAttr, link.User); element.SetAttribute(PWdAttr, link.Password); return element; }
private void OnAddLinkItem(ICategory toCategory) { var linkItem = new Link(); var dialogManager = _container.Resolve<IDialogManager<Link>>(); if (dialogManager.ShowAddDialog(linkItem) == true) { toCategory.AddChild(linkItem); } }