Пример #1
0
 public IConfigurationObject this[IHaveName display]
 {
     get
     {
         if (display == null)
         {
             throw new ArgumentNullException("The specific display is null");
         }
         return(this[display.Name]);
     }
     set
     {
         if (display == null)
         {
             throw new ArgumentNullException("The specific display is null");
         }
         this[display.Name] = value;
     }
 }
Пример #2
0
 public static TreeNode CreateTreeNode(this IHaveName nodeObject, int imageIndex)
 {
     return(CreateTreeNode(nodeObject.Name, nodeObject, imageIndex));
 }