-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCommandExecutor.cs
More file actions
executable file
·37 lines (35 loc) · 1.04 KB
/
Copy pathCommandExecutor.cs
File metadata and controls
executable file
·37 lines (35 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace RemoteControl
{
public class CommandExecutor:IExecutor
{
private string[] _commandText;
public CommandExecutor()
{
_commandText = new string[] { "open", "close", "keydown", "keyup", "keypress",
"mousemove", "mouselbdown", "mouserbdown", "mouselbup",
"mouserbup","mouselbpress","mouserbpress","mouseadmove",
"mousescrollup","mousescrolldown"};
}
public void Excute(AsyncParameters parameters, string cmd)
{
try
{
ICommand icmd = CommandFactory.Creat(cmd);
icmd.Excute();
}
catch { }
}
public string[] CommandText
{
get
{
return _commandText;
}
}
}
}