Пример #1
0
 /// <summary>
 ///      The method returns a NewChildNode that, when double clicked, triggers add filter.
 /// </summary>
 /// <returns>
 ///      A NewChildNode, a child node, that supports add server node.
 /// </returns>
 public override Node GetNewChildNode()
 {
     if (newChildNode == null)
     {
         newChildNode            = new NewChildNode();
         newChildNode.Label      = WMISys.GetString("WMISE_ClassesNode_AddClassLbl");
         newChildNode.WhenToSave = WhenToSaveCondition.Always;
         newChildNode.SetIconImage((Image) new Bitmap(GetType(), "ObjectViewerNew.bmp"));
         newChildNode.DoubleClickHandler = new EventHandler(OnSelectWMIClass);
     }
     return(newChildNode);
 }
Пример #2
0
        /// <summary>
        ///      The method returns a NewChildNode that, when double clicked, triggers add filter.
        /// </summary>
        /// <returns>
        ///      A NewChildNode, a child node, that supports add filter node.
        /// </returns>
        public override Node GetNewChildNode()
        {
            if (newChildNode == null)
            {
                newChildNode            = new NewChildNode();
                newChildNode.Label      = WMISys.GetString("WMISE_AddEventFilterLabel");
                newChildNode.WhenToSave = WhenToSaveCondition.Always;
                newChildNode.SetIconImage((Image) new Bitmap(GetType(), "EventsNew.bmp"));

                newChildNode.DoubleClickHandler = new EventHandler(OnAddEventFilter);
            }
            return(newChildNode);
        }