- framework.development.zip
- App
- App.BusinessControler
- App.Controller
- App.DataSets
- App.UnitTest
- App.WebForm
- App.WinForm
- Build
- App.WinForm.vshost.exe
- nunit.framework.dll
- db.mdb
- Documents
- RelationState.xls
- Spec.doc
- Framework.Development.sln
- Framework.Development.suo
- Framework
- Framework.DAL
- Framework.Lib
- Framework.UI.baController
- Framework.UI.baInterfaces
- Framework.UI.baResources
- Framework.UI.baWeb
- Framework.UI.baWin32
- nunit.framework.dll
- SOA.txt
- app.development.zip
|
using System;
namespace Framework.baInterfaces
{
/// <summary>
/// Identify the kind of operation
/// this control is doing
/// </summary>
public enum ComponentUsage
{
None, Search, Use
}
/// <summary>
/// Summary description for State.
/// </summary>
public class State: IState
{
private bool bEnabled;
private string sText;
private System.Drawing.Color oColor;
private System.Windows.Forms.Cursor oCursor;
#region State Management
public State(){}
public State(bool enable, string text, System.Drawing.Color color, System.Windows.Forms.Cursor cursor)
{
bEnabled = enable;
sText = text;
oColor = color;
oCursor = cursor;
}
public State(bool enable, string text, System.Drawing.Color color)
{
bEnabled = enable;
sText = text;
oColor = color;
}
public State(bool enable, string text)
{
bEnabled = enable;
sText = text;
}
public State(bool enable)
{
bEnabled = enable;
}
public System.Windows.Forms.Cursor Cursor
{
get
{
return oCursor;
}
set
{
oCursor = value;
}
}
public bool Enabled
{
get
{
return bEnabled;
}
set
{
bEnabled = value;
}
}
public string Text
{
get
{
return sText;
}
set
{
sText = value;
}
}
public System.Drawing.Color ForeColor
{
get
{
return oColor;
}
set
{
oColor = value;
}
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.