// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
namespace UnrealControls
{
///
/// A tab control menu item.
///
public class DynamicTabControlMenuItem : ToolStripMenuItem
{
int m_index;
///
/// The index of the tab control.
///
public int TabPageIndex
{
get { return m_index; }
}
///
/// Constructor.
///
/// The name of the tab.
/// The index of the tab.
public DynamicTabControlMenuItem(string text, int index)
{
this.Text = text;
this.Name = text;
m_index = index;
}
///
/// Constructor.
///
/// The name of the tab.
/// The index of the tab.
/// The event handler for the menu item.
public DynamicTabControlMenuItem(string text, int index, EventHandler handler)
{
this.Text = text;
this.Name = text;
this.Click += handler;
m_index = index;
}
}
}