|
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace DcamMouseGesture
{
internal class KeyCmdObj : IDisposable
{
internal enum EState { Existing, New, Changed }
public EState State { get; set; }
public string Key { get; set; }
public string Command { get; set; }
public Bitmap Bmp = null;
public KeyCmdObj( string strKey, string strCommand, EState state )
{
Key = strKey;
Command = strCommand;
State = state;
Bmp = MouseGesture.CreateThumbBitmap( strKey );
}
public void Dispose()
{
Dispose( true );
GC.SuppressFinalize( this );
}
public void Dispose( bool disposing )
{
if( disposing )
{
Bmp.Dispose();
}
}
~KeyCmdObj()
{
Dispose( false );
}
}
}
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.