using System;
using System.Collections;
using Ironring.MMC.Core;
using Ironring.MMC.Nodes;
using Ironring.MMC.PropertyPages;
namespace MMCTest2{
/// <summary>
/// Summary description for MyResultViewItem.
/// </summary>
public class MyResultViewItem : ResultViewItem
{
public MyResultViewItem(String displayName, String detail1, String detail2,
SnapinBase snapin,
ReportNode node,
String smallImageName,
String largeImageName) : base(snapin, node, displayName, smallImageName, largeImageName)
{
this.AddDetail(MyReportNode.col2, detail1);
this.AddDetail(MyReportNode.col3, detail2);
}
public override ArrayList PropertyPages
{
get
{
ArrayList pages = new ArrayList();
pages.Add(new PropertyPage("test", typeof(MyPropertyPageForItems), this.Node, this));
return pages;
}
}
public override ArrayList Menus
{
get
{
ArrayList menus = new ArrayList();
menus.Add(new MenuItem("Refresh", "Refresh this list", new MenuCommandHandler(RefreshHandler)));
return menus;
}
}
private void RefreshHandler(object o, BaseNode a)
{
this.Node.RefreshResultConsole();
}
}
}
|