HidDevice: Adding friendly name property.
2 using System.Collections.Generic;
5 namespace RemoteControlSample
7 public partial class MainForm
9 #region Windows Form Designer generated code
11 /// Required method for Designer support - do not modify
12 /// the contents of this method with the code editor.
14 private void InitializeComponent()
16 this.labelButtonName = new System.Windows.Forms.Label();
17 this.labelDeviceName = new System.Windows.Forms.Label();
18 this.buttonClear = new System.Windows.Forms.Button();
19 this.tabControl = new System.Windows.Forms.TabControl();
20 this.tabPageMessages = new System.Windows.Forms.TabPage();
21 this.listViewEvents = new System.Windows.Forms.ListView();
22 this.columnHeaderUsages = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
23 this.columnHeaderInputReport = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
24 this.columnHeaderUsagePage = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
25 this.columnHeaderUsageCollection = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
26 this.columnHeaderRepeat = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
27 this.columnHeaderTime = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
28 this.tabPageDevices = new System.Windows.Forms.TabPage();
29 this.treeViewDevices = new System.Windows.Forms.TreeView();
30 this.tabControl.SuspendLayout();
31 this.tabPageMessages.SuspendLayout();
32 this.tabPageDevices.SuspendLayout();
37 this.labelButtonName.AutoSize = true;
38 this.labelButtonName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
39 this.labelButtonName.Location = new System.Drawing.Point(785, 53);
40 this.labelButtonName.Name = "labelButtonName";
41 this.labelButtonName.Size = new System.Drawing.Size(103, 20);
42 this.labelButtonName.TabIndex = 0;
43 this.labelButtonName.Text = "Button Name";
47 this.labelDeviceName.AutoSize = true;
48 this.labelDeviceName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
49 this.labelDeviceName.Location = new System.Drawing.Point(785, 33);
50 this.labelDeviceName.Name = "labelDeviceName";
51 this.labelDeviceName.Size = new System.Drawing.Size(103, 20);
52 this.labelDeviceName.TabIndex = 1;
53 this.labelDeviceName.Text = "Device Name";
57 this.buttonClear.Location = new System.Drawing.Point(813, 6);
58 this.buttonClear.Name = "buttonClear";
59 this.buttonClear.Size = new System.Drawing.Size(75, 23);
60 this.buttonClear.TabIndex = 3;
61 this.buttonClear.Text = "Clear";
62 this.buttonClear.UseVisualStyleBackColor = true;
63 this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
67 this.tabControl.Controls.Add(this.tabPageMessages);
68 this.tabControl.Controls.Add(this.tabPageDevices);
69 this.tabControl.Location = new System.Drawing.Point(12, 12);
70 this.tabControl.Name = "tabControl";
71 this.tabControl.SelectedIndex = 0;
72 this.tabControl.Size = new System.Drawing.Size(902, 514);
73 this.tabControl.TabIndex = 4;
77 this.tabPageMessages.Controls.Add(this.listViewEvents);
78 this.tabPageMessages.Controls.Add(this.buttonClear);
79 this.tabPageMessages.Controls.Add(this.labelDeviceName);
80 this.tabPageMessages.Controls.Add(this.labelButtonName);
81 this.tabPageMessages.Location = new System.Drawing.Point(4, 22);
82 this.tabPageMessages.Name = "tabPageMessages";
83 this.tabPageMessages.Padding = new System.Windows.Forms.Padding(3);
84 this.tabPageMessages.Size = new System.Drawing.Size(894, 488);
85 this.tabPageMessages.TabIndex = 0;
86 this.tabPageMessages.Text = "Messages";
87 this.tabPageMessages.UseVisualStyleBackColor = true;
91 this.listViewEvents.Alignment = System.Windows.Forms.ListViewAlignment.Left;
92 this.listViewEvents.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
93 | System.Windows.Forms.AnchorStyles.Left)));
94 this.listViewEvents.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
95 this.listViewEvents.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
96 this.columnHeaderUsages,
97 this.columnHeaderInputReport,
98 this.columnHeaderUsagePage,
99 this.columnHeaderUsageCollection,
100 this.columnHeaderRepeat,
101 this.columnHeaderTime});
102 this.listViewEvents.GridLines = true;
103 this.listViewEvents.Location = new System.Drawing.Point(8, 6);
104 this.listViewEvents.Name = "listViewEvents";
105 this.listViewEvents.Size = new System.Drawing.Size(744, 474);
106 this.listViewEvents.TabIndex = 3;
107 this.listViewEvents.UseCompatibleStateImageBehavior = false;
108 this.listViewEvents.View = System.Windows.Forms.View.Details;
110 // columnHeaderUsages
112 this.columnHeaderUsages.Text = "Usages";
113 this.columnHeaderUsages.Width = 180;
115 // columnHeaderInputReport
117 this.columnHeaderInputReport.Text = "Input Report";
118 this.columnHeaderInputReport.Width = 176;
120 // columnHeaderUsagePage
122 this.columnHeaderUsagePage.Text = "Usage Page";
123 this.columnHeaderUsagePage.Width = 87;
125 // columnHeaderUsageCollection
127 this.columnHeaderUsageCollection.Text = "Usage Collection";
128 this.columnHeaderUsageCollection.Width = 134;
130 // columnHeaderRepeat
132 this.columnHeaderRepeat.Text = "Repeat";
133 this.columnHeaderRepeat.Width = 68;
137 this.columnHeaderTime.Text = "Time";
138 this.columnHeaderTime.Width = 76;
142 this.tabPageDevices.Controls.Add(this.treeViewDevices);
143 this.tabPageDevices.Location = new System.Drawing.Point(4, 22);
144 this.tabPageDevices.Name = "tabPageDevices";
145 this.tabPageDevices.Padding = new System.Windows.Forms.Padding(3);
146 this.tabPageDevices.Size = new System.Drawing.Size(918, 512);
147 this.tabPageDevices.TabIndex = 1;
148 this.tabPageDevices.Text = "Devices";
149 this.tabPageDevices.UseVisualStyleBackColor = true;
153 this.treeViewDevices.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
154 | System.Windows.Forms.AnchorStyles.Left)));
155 this.treeViewDevices.Location = new System.Drawing.Point(8, 6);
156 this.treeViewDevices.Name = "treeViewDevices";
157 this.treeViewDevices.Size = new System.Drawing.Size(713, 498);
158 this.treeViewDevices.TabIndex = 0;
162 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
163 this.BackColor = System.Drawing.SystemColors.Control;
164 this.ClientSize = new System.Drawing.Size(926, 538);
165 this.Controls.Add(this.tabControl);
166 this.Name = "MainForm";
167 this.Text = "Remote Control Sample";
168 this.Load += new System.EventHandler(this.MainForm_Load);
169 this.tabControl.ResumeLayout(false);
170 this.tabPageMessages.ResumeLayout(false);
171 this.tabPageMessages.PerformLayout();
172 this.tabPageDevices.ResumeLayout(false);
173 this.ResumeLayout(false);
176 #endregion Windows Form Designer generated code