/*----------------------------------------------------------------
// Copyright (C) 2007 liu523@QQ.COM
// 版权所有。
// 开发者:liu523@QQ.COM团队
// 文件名:KeyBoardEvent.cs
// 文件功能描述:涉及到屏幕管理的指令-键盘控制指令。
//----------------------------------------------------------------*/
using System;
using System.Text;
namespace RemoteControlLib.Codes
{
///
/// 键盘事件类型
///
[Serializable]
public enum KeyBoardType
{
///
/// 按下按键
///
Key_Down,
///
/// 释放按键
///
Key_Up,
///
/// 按下并释放按键
///
Key_Press,
}
///
/// 键盘事件结构
///
[Serializable]
public class KeyBoardEvent : BaseCode
{
///
/// 键盘事件类型
///
private KeyBoardType type;
///
/// 键代码
///
private System.Windows.Forms.Keys keyCode;
///
/// 键盘事件类型
///
public KeyBoardType Type
{
get { return type; }
set { type = value; }
}
///
/// 键代码
///
public System.Windows.Forms.Keys KeyCode
{
get { return keyCode; }
set { keyCode = value; }
}
///
/// 键盘事件
///
public KeyBoardEvent()
{
}
///
/// 键盘事件
///
///
///
public KeyBoardEvent(KeyBoardType type, System.Windows.Forms.Keys keyCode)
{
this.type = type;
this.keyCode = keyCode;
}
}
}