Exemplo 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);
            }
        }
Exemplo 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;
     }
 }