Пример #1
0
 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;
 }
Пример #2
0
 private void OnAddLinkItem(ICategory toCategory)
 {
     var linkItem = new Link();
     var dialogManager = _container.Resolve<IDialogManager<Link>>();
     if (dialogManager.ShowAddDialog(linkItem) == true)
     {
         toCategory.AddChild(linkItem);
     }
 }