using System;
|
using System.Drawing;
|
|
namespace HotelPms.Share.Windows.Component
|
{
|
public delegate void CellFormatEventHandler(object sender, TabMarkFormatEventArgs e);
|
|
public class TabMarkFormatEventArgs : EventArgs
|
{
|
private bool cancel = false;
|
private object tag = null;
|
|
public object Tag
|
{
|
get { return tag; }
|
set { tag = value; }
|
}
|
|
public bool Cancel
|
{
|
get { return cancel; }
|
set { cancel = value; }
|
}
|
|
private Color m_ScrollButtonBackColorMax = Color.FromArgb(255, 86, 157, 229);
|
|
public Color ScrollButtonBackColorMax
|
{
|
get { return m_ScrollButtonBackColorMax; }
|
set { m_ScrollButtonBackColorMax = value; }
|
}
|
|
private Color m_ScrollButtonBackColorMin = Color.FromArgb(255, 229, 240, 251);
|
|
public Color ScrollButtonBackColorMin
|
{
|
get { return m_ScrollButtonBackColorMin; }
|
set { m_ScrollButtonBackColorMin = value; }
|
}
|
|
private Color m_ScrollButtonForeColor = Color.Black;
|
|
public Color ScrollButtonForeColor
|
{
|
get { return m_ScrollButtonForeColor; }
|
set { m_ScrollButtonForeColor = value; }
|
}
|
|
private Color m_TabForeColor = Color.Black;
|
|
public Color TabForeColor
|
{
|
get { return m_TabForeColor; }
|
set { m_TabForeColor = value; }
|
}
|
|
|
private Color m_TabSelForeColor = Color.Black;
|
|
public Color TabSelForeColor
|
{
|
get { return m_TabSelForeColor; }
|
set { m_TabSelForeColor = value; }
|
}
|
private string m_Key = string.Empty;
|
|
public string Key
|
{
|
get { return m_Key; }
|
set { m_Key = value; }
|
}
|
|
public TabMarkFormatEventArgs()
|
{
|
}
|
|
public TabMarkFormatEventArgs(bool cancel, object tag, Color tabForeColor, Color tabSelForeColor, string key)
|
{
|
this.Cancel = cancel;
|
this.Tag = tag;
|
this.TabForeColor = tabForeColor;
|
this.TabSelForeColor = tabSelForeColor;
|
this.Key = key;
|
}
|
}
|
}
|