Bunch of minor fixes, device list format.
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.buttonTreeViewCollapseAll = new System.Windows.Forms.Button();
31 this.buttonTreeViewExpandAll = new System.Windows.Forms.Button();
32 this.statusStrip = new System.Windows.Forms.StatusStrip();
33 this.toolStripStatusLabelDevice = new System.Windows.Forms.ToolStripStatusLabel();
34 this.tabControl.SuspendLayout();
35 this.tabPageMessages.SuspendLayout();
36 this.tabPageDevices.SuspendLayout();
37 this.statusStrip.SuspendLayout();
42 this.labelButtonName.AutoSize = true;
43 this.labelButtonName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
44 this.labelButtonName.Location = new System.Drawing.Point(785, 53);
45 this.labelButtonName.Name = "labelButtonName";
46 this.labelButtonName.Size = new System.Drawing.Size(103, 20);
47 this.labelButtonName.TabIndex = 0;
48 this.labelButtonName.Text = "Button Name";
52 this.labelDeviceName.AutoSize = true;
53 this.labelDeviceName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
54 this.labelDeviceName.Location = new System.Drawing.Point(785, 33);
55 this.labelDeviceName.Name = "labelDeviceName";
56 this.labelDeviceName.Size = new System.Drawing.Size(103, 20);
57 this.labelDeviceName.TabIndex = 1;
58 this.labelDeviceName.Text = "Device Name";
62 this.buttonClear.Location = new System.Drawing.Point(813, 6);
63 this.buttonClear.Name = "buttonClear";
64 this.buttonClear.Size = new System.Drawing.Size(75, 23);
65 this.buttonClear.TabIndex = 3;
66 this.buttonClear.Text = "Clear";
67 this.buttonClear.UseVisualStyleBackColor = true;
68 this.buttonClear.Click += new System.EventHandler(this.buttonClear_Click);
72 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
73 | System.Windows.Forms.AnchorStyles.Left)));
74 this.tabControl.Controls.Add(this.tabPageMessages);
75 this.tabControl.Controls.Add(this.tabPageDevices);
76 this.tabControl.Location = new System.Drawing.Point(12, 12);
77 this.tabControl.Name = "tabControl";
78 this.tabControl.SelectedIndex = 0;
79 this.tabControl.Size = new System.Drawing.Size(902, 532);
80 this.tabControl.TabIndex = 4;
84 this.tabPageMessages.Controls.Add(this.listViewEvents);
85 this.tabPageMessages.Controls.Add(this.buttonClear);
86 this.tabPageMessages.Controls.Add(this.labelDeviceName);
87 this.tabPageMessages.Controls.Add(this.labelButtonName);
88 this.tabPageMessages.Location = new System.Drawing.Point(4, 22);
89 this.tabPageMessages.Name = "tabPageMessages";
90 this.tabPageMessages.Padding = new System.Windows.Forms.Padding(3);
91 this.tabPageMessages.Size = new System.Drawing.Size(894, 488);
92 this.tabPageMessages.TabIndex = 0;
93 this.tabPageMessages.Text = "Messages";
94 this.tabPageMessages.UseVisualStyleBackColor = true;
98 this.listViewEvents.Alignment = System.Windows.Forms.ListViewAlignment.Left;
99 this.listViewEvents.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
100 | System.Windows.Forms.AnchorStyles.Left)));
101 this.listViewEvents.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
102 this.listViewEvents.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
103 this.columnHeaderUsages,
104 this.columnHeaderInputReport,
105 this.columnHeaderUsagePage,
106 this.columnHeaderUsageCollection,
107 this.columnHeaderRepeat,
108 this.columnHeaderTime});
109 this.listViewEvents.GridLines = true;
110 this.listViewEvents.Location = new System.Drawing.Point(8, 6);
111 this.listViewEvents.Name = "listViewEvents";
112 this.listViewEvents.Size = new System.Drawing.Size(744, 474);
113 this.listViewEvents.TabIndex = 3;
114 this.listViewEvents.UseCompatibleStateImageBehavior = false;
115 this.listViewEvents.View = System.Windows.Forms.View.Details;
117 // columnHeaderUsages
119 this.columnHeaderUsages.Text = "Usages";
120 this.columnHeaderUsages.Width = 180;
122 // columnHeaderInputReport
124 this.columnHeaderInputReport.Text = "Input Report";
125 this.columnHeaderInputReport.Width = 176;
127 // columnHeaderUsagePage
129 this.columnHeaderUsagePage.Text = "Usage Page";
130 this.columnHeaderUsagePage.Width = 87;
132 // columnHeaderUsageCollection
134 this.columnHeaderUsageCollection.Text = "Usage Collection";
135 this.columnHeaderUsageCollection.Width = 134;
137 // columnHeaderRepeat
139 this.columnHeaderRepeat.Text = "Repeat";
140 this.columnHeaderRepeat.Width = 68;
144 this.columnHeaderTime.Text = "Time";
145 this.columnHeaderTime.Width = 76;
149 this.tabPageDevices.Controls.Add(this.buttonTreeViewExpandAll);
150 this.tabPageDevices.Controls.Add(this.buttonTreeViewCollapseAll);
151 this.tabPageDevices.Controls.Add(this.treeViewDevices);
152 this.tabPageDevices.Location = new System.Drawing.Point(4, 22);
153 this.tabPageDevices.Name = "tabPageDevices";
154 this.tabPageDevices.Padding = new System.Windows.Forms.Padding(3);
155 this.tabPageDevices.Size = new System.Drawing.Size(894, 506);
156 this.tabPageDevices.TabIndex = 1;
157 this.tabPageDevices.Text = "Devices";
158 this.tabPageDevices.UseVisualStyleBackColor = true;
162 this.treeViewDevices.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
163 | System.Windows.Forms.AnchorStyles.Left)));
164 this.treeViewDevices.Location = new System.Drawing.Point(8, 6);
165 this.treeViewDevices.Name = "treeViewDevices";
166 this.treeViewDevices.Size = new System.Drawing.Size(713, 492);
167 this.treeViewDevices.TabIndex = 0;
169 // buttonTreeViewCollapseAll
171 this.buttonTreeViewCollapseAll.Location = new System.Drawing.Point(813, 35);
172 this.buttonTreeViewCollapseAll.Name = "buttonTreeViewCollapseAll";
173 this.buttonTreeViewCollapseAll.Size = new System.Drawing.Size(75, 23);
174 this.buttonTreeViewCollapseAll.TabIndex = 1;
175 this.buttonTreeViewCollapseAll.Text = "Collapse All";
176 this.buttonTreeViewCollapseAll.UseVisualStyleBackColor = true;
177 this.buttonTreeViewCollapseAll.Click += new System.EventHandler(this.buttonTreeViewCollapseAll_Click);
179 // buttonTreeViewExpandAll
181 this.buttonTreeViewExpandAll.Location = new System.Drawing.Point(813, 6);
182 this.buttonTreeViewExpandAll.Name = "buttonTreeViewExpandAll";
183 this.buttonTreeViewExpandAll.Size = new System.Drawing.Size(75, 23);
184 this.buttonTreeViewExpandAll.TabIndex = 2;
185 this.buttonTreeViewExpandAll.Text = "Expand All";
186 this.buttonTreeViewExpandAll.UseVisualStyleBackColor = true;
187 this.buttonTreeViewExpandAll.Click += new System.EventHandler(this.buttonTreeViewExpandAll_Click);
191 this.statusStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
192 this.toolStripStatusLabelDevice});
193 this.statusStrip.Location = new System.Drawing.Point(0, 547);
194 this.statusStrip.Name = "statusStrip";
195 this.statusStrip.Size = new System.Drawing.Size(935, 22);
196 this.statusStrip.TabIndex = 5;
197 this.statusStrip.Text = "statusStrip1";
199 // toolStripStatusLabelDevice
201 this.toolStripStatusLabelDevice.Name = "toolStripStatusLabelDevice";
202 this.toolStripStatusLabelDevice.Size = new System.Drawing.Size(61, 17);
203 this.toolStripStatusLabelDevice.Text = "No Device";
207 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
208 this.BackColor = System.Drawing.SystemColors.Control;
209 this.ClientSize = new System.Drawing.Size(935, 569);
210 this.Controls.Add(this.statusStrip);
211 this.Controls.Add(this.tabControl);
212 this.Name = "MainForm";
213 this.Text = "Remote Control Sample";
214 this.Load += new System.EventHandler(this.MainForm_Load);
215 this.tabControl.ResumeLayout(false);
216 this.tabPageMessages.ResumeLayout(false);
217 this.tabPageMessages.PerformLayout();
218 this.tabPageDevices.ResumeLayout(false);
219 this.statusStrip.ResumeLayout(false);
220 this.statusStrip.PerformLayout();
221 this.ResumeLayout(false);
222 this.PerformLayout();
225 #endregion Windows Form Designer generated code
227 private System.Windows.Forms.Button buttonTreeViewExpandAll;
228 private System.Windows.Forms.Button buttonTreeViewCollapseAll;
229 private System.Windows.Forms.StatusStrip statusStrip;
230 private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabelDevice;