using System;
using System.Collections;
using Ironring.MMC.Nodes;
using Ironring.MMC.Core;
using Ironring.MMC.PropertyPages;
namespace MMCTest2{
public class MyFormNode : FormNode
{
public MyFormNode(Type controlType, SnapinBase snapin, String displayName, String closedIco, String openIco) : base(snapin, displayName, controlType, closedIco, openIco)
{
}
public override string ResultViewSmallImage
{
get
{
return "MMCTest2.images.snapin.Ico";
}
}
public override string ResultViewLargeImage
{
get
{
return "MMCTest2.images.snapin.Ico";
}
}
public override ArrayList Menus
{
get
{
ArrayList menus = new ArrayList();
menus.Add(new MenuItem("Doesn't work?", "Click if the FormNode doesn't work", new MenuCommandHandler(DoesntworkHandler)));
return menus;
}
}
private void DoesntworkHandler(object o, BaseNode node)
{
System.Windows.Forms.MessageBox.Show("Make sure you included MMCFormShim in your project");
}
public override ArrayList PropertyPages
{
get
{
ArrayList pages = new ArrayList();
pages.Add(new PropertyPage("PropertyPage", typeof(MyPropertyPage), this));
pages.Add(new PropertyPage("PropertyPage", typeof(MyPropertyPage), this));
pages.Add(new PropertyPage("PropertyPage", typeof(MyPropertyPage), this));
pages.Add(new PropertyPage("PropertyPage", typeof(MyPropertyPage), this));
pages.Add(new PropertyPage("PropertyPage", typeof(MyPropertyPage), this));
return pages;
}
}
}
}
|