Exemple #1
0
 /// <summary>
 /// Returns true if given node's type matches the type of items this control holds
 /// </summary>
 public override bool CanContainItem(ResXDataNode node)
 {
     if (node == null)
     {
         throw new ArgumentNullException("node");
     }
     return(!node.HasLinkedFileContent());
 }
        /// <summary>
        /// Returns true if given node's type matches the type of items this control holds
        /// </summary>
        public override bool CanContainItem(ResXDataNode node)
        {
            if (node == null)
            {
                throw new ArgumentNullException("node");
            }
            object val = node.GetValue((ITypeResolutionService)null);

            return(node.HasLinkedFileContent() || val == null || val.GetType() == typeof(byte[])); // everything is allowed
        }