using System;
using System.Collections;
using Ironring.MMC.Core;
using Ironring.MMC.PropertyPages;
using Ironring.MMC.Nodes;
namespace MMCTest2{
/// <summary>
/// Summary description for MyHTMLNode.
/// </summary>
public class MyHTMLNode : HTMLNode
{
public MyHTMLNode(SnapinBase snapin, string displayName, string url, string icon) : base(snapin, displayName,url,icon,icon)
{
//
// TODO: Add constructor logic here
//
}
public override string ResultViewSmallImage
{
get
{
return "MMCTest2.images.snapin.Ico";
}
}
public override string ResultViewLargeImage
{
get
{
return "MMCTest2.images.snapin.Ico";
}
}
public override ArrayList PropertyPages
{
get
{
ArrayList pages = new ArrayList();
pages.Add(new PropertyPage("PropertyPage", typeof(MyPropertyPage), this));
return pages;
}
}
public override ArrayList Menus
{
get
{
ArrayList menus = new ArrayList();
menus.Add(new MenuItem("Test Menu 1", "Test Menu 1", new MenuCommandHandler(VoidHandler)));
menus.Add(new MenuItem(MF.SEPARATOR));
menus.Add(new MenuItem("Test Menu 2", "Test Menu 2", new MenuCommandHandler(VoidHandler)));
return menus;
}
}
public void VoidHandler(object o,BaseNode a ){}
}
}
|