Now using SharpLib.Hid and SharpLib.Win32 as namespaces.
2 // Copyright (C) 2014-2015 Stéphane Lenclud.
4 // This file is part of SharpLibHid.
6 // SharpDisplayManager is free software: you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation, either version 3 of the License, or
9 // (at your option) any later version.
11 // SharpDisplayManager is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with SharpDisplayManager. If not, see <http://www.gnu.org/licenses/>.
21 using System.Collections.Generic;
24 namespace RemoteControlSample
26 public partial class MainForm
28 #region Windows Form Designer generated code
30 /// Required method for Designer support - do not modify
31 /// the contents of this method with the code editor.
33 private void InitializeComponent()
35 this.labelButtonName = new System.Windows.Forms.Label();
36 this.labelDeviceName = new System.Windows.Forms.Label();
37 this.buttonClear = new System.Windows.Forms.Button();
38 this.tabControl = new System.Windows.Forms.TabControl();
39 this.tabPageMessages = new System.Windows.Forms.TabPage();
40 this.listViewEvents = new System.Windows.Forms.ListView();
41 this.columnHeaderUsages = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
42 this.columnHeaderInputReport = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
43 this.columnHeaderUsagePage = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
44 this.columnHeaderUsageCollection = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
45 this.columnHeaderRepeat = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
46 this.columnHeaderTime = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
47 this.tabPageDevices = new System.Windows.Forms.TabPage();
48 this.buttonRefresh = new System.Windows.Forms.Button();
49 this.buttonTreeViewExpandAll = new System.Windows.Forms.Button();
50 this.buttonTreeViewCollapseAll = new System.Windows.Forms.Button();
51 this.treeViewDevices = new System.Windows.Forms.TreeView();
52 this.tabPageTests = new System.Windows.Forms.TabPage();
53 this.textBoxTests = new System.Windows.Forms.TextBox();
54 this.statusStrip = new System.Windows.Forms.StatusStrip();
55 this.toolStripStatusLabelDevice = new System.Windows.Forms.ToolStripStatusLabel();
56 this.tabControl.SuspendLayout();
57 this.tabPageMessages.SuspendLayout();
58 this.tabPageDevices.SuspendLayout();
59 this.tabPageTests.SuspendLayout();
60 this.statusStrip.SuspendLayout();
65 this.labelButtonName.AutoSize = true;
66 this.labelButtonName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
67 this.labelButtonName.Location = new System.Drawing.Point(785, 53);
68 this.labelButtonName.Name = "labelButtonName";
69 this.labelButtonName.Size = new System.Drawing.Size(103, 20);
70 this.labelButtonName.TabIndex = 0;
71 this.labelButtonName.Text = "Button Name";
75 this.labelDeviceName.AutoSize = true;
76 this.labelDeviceName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
77 this.labelDeviceName.Location = new System.Drawing.Point(785, 33);
78 this.labelDeviceName.Name = "labelDeviceName";
79 this.labelDeviceName.Size = new System.Drawing.Size(103, 20);
80 this.labelDeviceName.TabIndex = 1;
81 this.labelDeviceName.Text = "Device Name";
85 this.buttonClear.Location = new System.Drawing.Point(813, 6);
86 this.buttonClear.Name = "buttonClear";
87 this.buttonClear.Size = new System.Drawing.Size(75, 23);
88 this.buttonClear.TabIndex = 3;
89 this.buttonClear.Text = "Clear";
90 this.buttonClear.UseVisualStyleBackColor = true;
91 this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
95 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
96 | System.Windows.Forms.AnchorStyles.Left)));
97 this.tabControl.Controls.Add(this.tabPageMessages);
98 this.tabControl.Controls.Add(this.tabPageDevices);
99 this.tabControl.Controls.Add(this.tabPageTests);
100 this.tabControl.Location = new System.Drawing.Point(12, 12);
101 this.tabControl.Name = "tabControl";
102 this.tabControl.SelectedIndex = 0;
103 this.tabControl.Size = new System.Drawing.Size(902, 532);
104 this.tabControl.TabIndex = 4;
108 this.tabPageMessages.Controls.Add(this.listViewEvents);
109 this.tabPageMessages.Controls.Add(this.buttonClear);
110 this.tabPageMessages.Controls.Add(this.labelDeviceName);
111 this.tabPageMessages.Controls.Add(this.labelButtonName);
112 this.tabPageMessages.Location = new System.Drawing.Point(4, 22);
113 this.tabPageMessages.Name = "tabPageMessages";
114 this.tabPageMessages.Padding = new System.Windows.Forms.Padding(3);
115 this.tabPageMessages.Size = new System.Drawing.Size(894, 506);
116 this.tabPageMessages.TabIndex = 0;
117 this.tabPageMessages.Text = "Messages";
118 this.tabPageMessages.UseVisualStyleBackColor = true;
122 this.listViewEvents.Alignment = System.Windows.Forms.ListViewAlignment.Left;
123 this.listViewEvents.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
124 | System.Windows.Forms.AnchorStyles.Left)));
125 this.listViewEvents.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
126 this.listViewEvents.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
127 this.columnHeaderUsages,
128 this.columnHeaderInputReport,
129 this.columnHeaderUsagePage,
130 this.columnHeaderUsageCollection,
131 this.columnHeaderRepeat,
132 this.columnHeaderTime});
133 this.listViewEvents.GridLines = true;
134 this.listViewEvents.Location = new System.Drawing.Point(8, 6);
135 this.listViewEvents.Name = "listViewEvents";
136 this.listViewEvents.Size = new System.Drawing.Size(744, 492);
137 this.listViewEvents.TabIndex = 3;
138 this.listViewEvents.UseCompatibleStateImageBehavior = false;
139 this.listViewEvents.View = System.Windows.Forms.View.Details;
141 // columnHeaderUsages
143 this.columnHeaderUsages.Text = "Usages";
144 this.columnHeaderUsages.Width = 180;
146 // columnHeaderInputReport
148 this.columnHeaderInputReport.Text = "Input Report";
149 this.columnHeaderInputReport.Width = 176;
151 // columnHeaderUsagePage
153 this.columnHeaderUsagePage.Text = "Usage Page";
154 this.columnHeaderUsagePage.Width = 87;
156 // columnHeaderUsageCollection
158 this.columnHeaderUsageCollection.Text = "Usage Collection";
159 this.columnHeaderUsageCollection.Width = 134;
161 // columnHeaderRepeat
163 this.columnHeaderRepeat.Text = "Repeat";
164 this.columnHeaderRepeat.Width = 68;
168 this.columnHeaderTime.Text = "Time";
169 this.columnHeaderTime.Width = 76;
173 this.tabPageDevices.Controls.Add(this.buttonRefresh);
174 this.tabPageDevices.Controls.Add(this.buttonTreeViewExpandAll);
175 this.tabPageDevices.Controls.Add(this.buttonTreeViewCollapseAll);
176 this.tabPageDevices.Controls.Add(this.treeViewDevices);
177 this.tabPageDevices.Location = new System.Drawing.Point(4, 22);
178 this.tabPageDevices.Name = "tabPageDevices";
179 this.tabPageDevices.Padding = new System.Windows.Forms.Padding(3);
180 this.tabPageDevices.Size = new System.Drawing.Size(894, 506);
181 this.tabPageDevices.TabIndex = 1;
182 this.tabPageDevices.Text = "Devices";
183 this.tabPageDevices.UseVisualStyleBackColor = true;
187 this.buttonRefresh.Location = new System.Drawing.Point(813, 64);
188 this.buttonRefresh.Name = "buttonRefresh";
189 this.buttonRefresh.Size = new System.Drawing.Size(75, 23);
190 this.buttonRefresh.TabIndex = 3;
191 this.buttonRefresh.Text = "Refresh";
192 this.buttonRefresh.UseVisualStyleBackColor = true;
193 this.buttonRefresh.Click += new System.EventHandler(this.buttonRefresh_Click);
195 // buttonTreeViewExpandAll
197 this.buttonTreeViewExpandAll.Location = new System.Drawing.Point(813, 6);
198 this.buttonTreeViewExpandAll.Name = "buttonTreeViewExpandAll";
199 this.buttonTreeViewExpandAll.Size = new System.Drawing.Size(75, 23);
200 this.buttonTreeViewExpandAll.TabIndex = 2;
201 this.buttonTreeViewExpandAll.Text = "Expand All";
202 this.buttonTreeViewExpandAll.UseVisualStyleBackColor = true;
203 this.buttonTreeViewExpandAll.Click += new System.EventHandler(this.buttonTreeViewExpandAll_Click);
205 // buttonTreeViewCollapseAll
207 this.buttonTreeViewCollapseAll.Location = new System.Drawing.Point(813, 35);
208 this.buttonTreeViewCollapseAll.Name = "buttonTreeViewCollapseAll";
209 this.buttonTreeViewCollapseAll.Size = new System.Drawing.Size(75, 23);
210 this.buttonTreeViewCollapseAll.TabIndex = 1;
211 this.buttonTreeViewCollapseAll.Text = "Collapse All";
212 this.buttonTreeViewCollapseAll.UseVisualStyleBackColor = true;
213 this.buttonTreeViewCollapseAll.Click += new System.EventHandler(this.buttonTreeViewCollapseAll_Click);
217 this.treeViewDevices.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
218 | System.Windows.Forms.AnchorStyles.Left)));
219 this.treeViewDevices.Location = new System.Drawing.Point(8, 6);
220 this.treeViewDevices.Name = "treeViewDevices";
221 this.treeViewDevices.Size = new System.Drawing.Size(713, 492);
222 this.treeViewDevices.TabIndex = 0;
226 this.tabPageTests.Controls.Add(this.textBoxTests);
227 this.tabPageTests.Location = new System.Drawing.Point(4, 22);
228 this.tabPageTests.Name = "tabPageTests";
229 this.tabPageTests.Size = new System.Drawing.Size(894, 506);
230 this.tabPageTests.TabIndex = 2;
231 this.tabPageTests.Text = "Tests";
232 this.tabPageTests.UseVisualStyleBackColor = true;
236 this.textBoxTests.Location = new System.Drawing.Point(4, 4);
237 this.textBoxTests.Multiline = true;
238 this.textBoxTests.Name = "textBoxTests";
239 this.textBoxTests.Size = new System.Drawing.Size(887, 499);
240 this.textBoxTests.TabIndex = 0;
244 this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
245 this.toolStripStatusLabelDevice});
246 this.statusStrip.Location = new System.Drawing.Point(0, 547);
247 this.statusStrip.Name = "statusStrip";
248 this.statusStrip.Size = new System.Drawing.Size(935, 22);
249 this.statusStrip.TabIndex = 5;
250 this.statusStrip.Text = "statusStrip1";
252 // toolStripStatusLabelDevice
254 this.toolStripStatusLabelDevice.Name = "toolStripStatusLabelDevice";
255 this.toolStripStatusLabelDevice.Size = new System.Drawing.Size(61, 17);
256 this.toolStripStatusLabelDevice.Text = "No Device";
260 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
261 this.BackColor = System.Drawing.SystemColors.Control;
262 this.ClientSize = new System.Drawing.Size(935, 569);
263 this.Controls.Add(this.statusStrip);
264 this.Controls.Add(this.tabControl);
265 this.Name = "MainForm";
266 this.Text = "HID Demo";
267 this.Load += new System.EventHandler(this.MainForm_Load);
268 this.tabControl.ResumeLayout(false);
269 this.tabPageMessages.ResumeLayout(false);
270 this.tabPageMessages.PerformLayout();
271 this.tabPageDevices.ResumeLayout(false);
272 this.tabPageTests.ResumeLayout(false);
273 this.tabPageTests.PerformLayout();
274 this.statusStrip.ResumeLayout(false);
275 this.statusStrip.PerformLayout();
276 this.ResumeLayout(false);
277 this.PerformLayout();
280 #endregion Windows Form Designer generated code
282 private System.Windows.Forms.Button buttonTreeViewExpandAll;
283 private System.Windows.Forms.Button buttonTreeViewCollapseAll;
284 private System.Windows.Forms.StatusStrip statusStrip;
285 private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelDevice;
286 private System.Windows.Forms.TabPage tabPageTests;
287 private System.Windows.Forms.TextBox textBoxTests;
288 private System.Windows.Forms.Button buttonRefresh;