Esempio n. 1
0
        private void HtmlPage_ErrorFixed(IValidateble source, Error error)
        {
            var node = tvItems.SelectedNode;
            var s    = _pageEditor.HtmlPage;

            Debug.Assert(s != null);
            if (s.IsValid)
            {
                node.SelectedImageKey = node.ImageKey = FFTreeView.GetImageKey((IManifestNode)node.Tag);
            }
        }
Esempio n. 2
0
 private void tvItems_ManifestNodeAdding(FFTreeView.NodeAddingArgs e)
 {
     IManifestNode node = e.Node;
     if (node is OrganizationsType || node is OrganizationType)
     {
         e.Action = FFTreeView.NodeAddingArgs.ActionKind.Ignore;
     }
     else if (!(node is IItemContainer || node is ManifestType))
     {
         e.Action = FFTreeView.NodeAddingArgs.ActionKind.Cancel;
     }
 }