-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathScreenForm.cs
75 lines (66 loc) · 2.05 KB
/
ScreenForm.cs
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SharpAdbClient;
using MaterialSkin.Controls;
using MaterialSkin;
namespace DroidLord
{
public partial class ScreenForm : MaterialForm
{
SlaveViewer view;
public ScreenForm()
{
InitializeComponent();
MaterialSkinManager.Instance.AddFormToManage(this);
view = new SlaveViewer();
view.Left = 0;
view.Top = 40;
view.Width = Width+11;
view.Height = Height - 1;
view.ResponseClick = true;
Controls.Add(view);
}
public void Display(Slavery.Slave sl)
{
view.Display(sl);
view.Invalidate();
this.Invalidate();
}
private void ScreenForm_Load(object sender, EventArgs e)
{
}
private void hOMEToolStripMenuItem_Click_1(object sender, EventArgs e)
{
view.GetSlave().Manipulation.Keypress(Slavery.DroidKey.HOME);
}
private void 后退ToolStripMenuItem_Click(object sender, EventArgs e)
{
view.GetSlave().Manipulation.Keypress(Slavery.DroidKey.BACK);
}
private void 菜单ToolStripMenuItem_Click(object sender, EventArgs e)
{
view.GetSlave().Manipulation.Keypress(Slavery.DroidKey.MENU);
}
private void 电源ToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void 音量ToolStripMenuItem_Click(object sender, EventArgs e)
{
view.GetSlave().Manipulation.Keypress(Slavery.DroidKey.V_UP);
}
private void 音量ToolStripMenuItem1_Click(object sender, EventArgs e)
{
view.GetSlave().Manipulation.Keypress(Slavery.DroidKey.V_DOWN);
}
public void ScreenForm_MouseMove(object sender, MouseEventArgs e)
{
}
}
}