forked from dotnet/winforms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainForm.Designer.cs
More file actions
185 lines (179 loc) · 8.01 KB
/
MainForm.Designer.cs
File metadata and controls
185 lines (179 loc) · 8.01 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
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
#nullable disable
namespace Demo;
partial class MainForm
{
private IContainer components = null;
private Label _titleLabel = null!;
private Label _descriptionLabel = null!;
private Button _toolBarButton = null!;
private Label _toolBarLabel = null!;
private Button _menuStackButton = null!;
private Label _menuStackDescriptionLabel = null!;
private Button _dataGridButton = null!;
private Label _dataGridDescriptionLabel = null!;
private Button _statusBarButton = null!;
private Label _statusBarDescriptionLabel = null!;
private Button _anchorLayoutHighDpiRegressionButton = null!;
private Label _anchorLayoutHighDpiRegressionDescriptionLabel = null!;
protected override void Dispose(bool disposing)
{
if (disposing && components is not null)
{
components.Dispose();
}
base.Dispose(disposing);
}
private void InitializeComponent()
{
components = new Container();
_titleLabel = new Label();
_descriptionLabel = new Label();
_toolBarButton = new Button();
_toolBarLabel = new Label();
_menuStackButton = new Button();
_menuStackDescriptionLabel = new Label();
_dataGridButton = new Button();
_dataGridDescriptionLabel = new Label();
_statusBarButton = new Button();
_statusBarDescriptionLabel = new Label();
_anchorLayoutHighDpiRegressionButton = new Button();
_anchorLayoutHighDpiRegressionDescriptionLabel = new Label();
SuspendLayout();
//
// _titleLabel
//
_titleLabel.Font = new Font("Segoe UI", 14F, FontStyle.Bold, GraphicsUnit.Point);
_titleLabel.Location = new Point(20, 20);
_titleLabel.Name = "_titleLabel";
_titleLabel.Size = new Size(680, 30);
_titleLabel.TabIndex = 0;
_titleLabel.Text = "WinForms Legacy Controls Demo";
_titleLabel.TextAlign = ContentAlignment.MiddleCenter;
//
// _descriptionLabel
//
_descriptionLabel.Location = new Point(20, 58);
_descriptionLabel.Name = "_descriptionLabel";
_descriptionLabel.Size = new Size(680, 42);
_descriptionLabel.TabIndex = 1;
_descriptionLabel.Text = "Use this launcher to validate legacy control surfaces under active migration. Menu Stack remains the main branch focus, while DataGrid and StatusBar cover separate recovery and regression paths.";
_descriptionLabel.TextAlign = ContentAlignment.MiddleCenter;
//
// _toolBarButton
//
_toolBarButton.Location = new Point(40, 126);
_toolBarButton.Name = "_toolBarButton";
_toolBarButton.Size = new Size(300, 60);
_toolBarButton.TabIndex = 2;
_toolBarButton.Text = "ToolBar";
_toolBarButton.Click += ToolBarButton_Click;
//
// _toolBarLabel
//
_toolBarLabel.Location = new Point(40, 190);
_toolBarLabel.Name = "_toolBarLabel";
_toolBarLabel.Size = new Size(300, 40);
_toolBarLabel.TabIndex = 3;
_toolBarLabel.Text = "Legacy command bars, drop-down menus, layout settings, and state-driven button behavior.";
_toolBarLabel.TextAlign = ContentAlignment.TopCenter;
//
// _menuStackButton
//
_menuStackButton.Location = new Point(380, 126);
_menuStackButton.Name = "_menuStackButton";
_menuStackButton.Size = new Size(300, 60);
_menuStackButton.TabIndex = 4;
_menuStackButton.Text = "Menu Stack";
_menuStackButton.Click += MenuStackButton_Click;
//
// _menuStackDescriptionLabel
//
_menuStackDescriptionLabel.Location = new Point(380, 190);
_menuStackDescriptionLabel.Name = "_menuStackDescriptionLabel";
_menuStackDescriptionLabel.Size = new Size(300, 40);
_menuStackDescriptionLabel.TabIndex = 5;
_menuStackDescriptionLabel.Text = "Nested menus, popup routing, shortcut processing, and stack behavior across the legacy menu surface.";
_menuStackDescriptionLabel.TextAlign = ContentAlignment.TopCenter;
//
// _dataGridButton
//
_dataGridButton.Location = new Point(40, 252);
_dataGridButton.Name = "_dataGridButton";
_dataGridButton.Size = new Size(300, 60);
_dataGridButton.TabIndex = 6;
_dataGridButton.Text = "DataGrid";
_dataGridButton.Click += DataGridButton_Click;
//
// _dataGridDescriptionLabel
//
_dataGridDescriptionLabel.Location = new Point(40, 316);
_dataGridDescriptionLabel.Name = "_dataGridDescriptionLabel";
_dataGridDescriptionLabel.Size = new Size(300, 40);
_dataGridDescriptionLabel.TabIndex = 7;
_dataGridDescriptionLabel.Text = "Legacy editing, navigation, and bound or unbound grid scenarios that still need targeted recovery coverage.";
_dataGridDescriptionLabel.TextAlign = ContentAlignment.TopCenter;
//
// _statusBarButton
//
_statusBarButton.Location = new Point(380, 252);
_statusBarButton.Name = "_statusBarButton";
_statusBarButton.Size = new Size(300, 60);
_statusBarButton.TabIndex = 8;
_statusBarButton.Text = "StatusBar";
_statusBarButton.Click += StatusBarButton_Click;
//
// _statusBarDescriptionLabel
//
_statusBarDescriptionLabel.Location = new Point(380, 316);
_statusBarDescriptionLabel.Name = "_statusBarDescriptionLabel";
_statusBarDescriptionLabel.Size = new Size(300, 40);
_statusBarDescriptionLabel.TabIndex = 9;
_statusBarDescriptionLabel.Text = "Simple text mode, panel layout, owner-draw rendering, border styles, and sizing grip behavior.";
_statusBarDescriptionLabel.TextAlign = ContentAlignment.TopCenter;
//
// _anchorLayoutHighDpiRegressionButton
//
_anchorLayoutHighDpiRegressionButton.Location = new Point(210, 378);
_anchorLayoutHighDpiRegressionButton.Name = "_anchorLayoutHighDpiRegressionButton";
_anchorLayoutHighDpiRegressionButton.Size = new Size(300, 60);
_anchorLayoutHighDpiRegressionButton.TabIndex = 10;
_anchorLayoutHighDpiRegressionButton.Text = "Anchor Layout";
_anchorLayoutHighDpiRegressionButton.Click += AnchorLayoutHighDpiRegressionButton_Click;
//
// _anchorLayoutHighDpiRegressionDescriptionLabel
//
_anchorLayoutHighDpiRegressionDescriptionLabel.Location = new Point(210, 442);
_anchorLayoutHighDpiRegressionDescriptionLabel.Name = "_anchorLayoutHighDpiRegressionDescriptionLabel";
_anchorLayoutHighDpiRegressionDescriptionLabel.Size = new Size(300, 40);
_anchorLayoutHighDpiRegressionDescriptionLabel.TabIndex = 11;
_anchorLayoutHighDpiRegressionDescriptionLabel.Text = "Launches the dedicated high-DPI anchor-layout regression repro in a separate process.";
_anchorLayoutHighDpiRegressionDescriptionLabel.TextAlign = ContentAlignment.TopCenter;
//
// MainForm
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(720, 500);
Controls.Add(_anchorLayoutHighDpiRegressionDescriptionLabel);
Controls.Add(_anchorLayoutHighDpiRegressionButton);
Controls.Add(_statusBarDescriptionLabel);
Controls.Add(_statusBarButton);
Controls.Add(_toolBarLabel);
Controls.Add(_toolBarButton);
Controls.Add(_dataGridDescriptionLabel);
Controls.Add(_dataGridButton);
Controls.Add(_menuStackDescriptionLabel);
Controls.Add(_menuStackButton);
Controls.Add(_descriptionLabel);
Controls.Add(_titleLabel);
FormBorderStyle = FormBorderStyle.FixedSingle;
MaximizeBox = false;
Name = "MainForm";
StartPosition = FormStartPosition.CenterScreen;
Text = "Demo Launcher";
ResumeLayout(false);
}
}