-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProducts.Designer.cs
More file actions
387 lines (382 loc) · 20.3 KB
/
Products.Designer.cs
File metadata and controls
387 lines (382 loc) · 20.3 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
namespace InventoryApp
{
partial class Products
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.TextBoxSearchParts = new System.Windows.Forms.TextBox();
this.ButtonSearch = new System.Windows.Forms.Button();
this.labelProduct = new System.Windows.Forms.Label();
this.DataGridViewParts = new System.Windows.Forms.DataGridView();
this.label1 = new System.Windows.Forms.Label();
this.DataGridView2 = new System.Windows.Forms.DataGridView();
this.ButtonAdd = new System.Windows.Forms.Button();
this.label2 = new System.Windows.Forms.Label();
this.TextBoxProductID = new System.Windows.Forms.TextBox();
this.labelProductId = new System.Windows.Forms.Label();
this.TextBoxName = new System.Windows.Forms.TextBox();
this.labelProductName = new System.Windows.Forms.Label();
this.TextBoxInventory = new System.Windows.Forms.TextBox();
this.labelPartInventory = new System.Windows.Forms.Label();
this.TextBoxPrice = new System.Windows.Forms.TextBox();
this.labelPartPrice = new System.Windows.Forms.Label();
this.TextBoxMin = new System.Windows.Forms.TextBox();
this.TextBoxMax = new System.Windows.Forms.TextBox();
this.labelPartMin = new System.Windows.Forms.Label();
this.labelPartMax = new System.Windows.Forms.Label();
this.ButtonSave = new System.Windows.Forms.Button();
this.ButtonCancel = new System.Windows.Forms.Button();
this.ButtonDelete = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.DataGridViewParts)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.DataGridView2)).BeginInit();
this.SuspendLayout();
//
// TextBoxSearchParts
//
this.TextBoxSearchParts.Location = new System.Drawing.Point(828, 47);
this.TextBoxSearchParts.Name = "TextBoxSearchParts";
this.TextBoxSearchParts.Size = new System.Drawing.Size(190, 22);
this.TextBoxSearchParts.TabIndex = 6;
this.TextBoxSearchParts.TextChanged += new System.EventHandler(this.TextBoxSearch_TextChanged);
//
// ButtonSearch
//
this.ButtonSearch.Location = new System.Drawing.Point(742, 47);
this.ButtonSearch.Name = "ButtonSearch";
this.ButtonSearch.Size = new System.Drawing.Size(75, 23);
this.ButtonSearch.TabIndex = 7;
this.ButtonSearch.Text = "Search";
this.ButtonSearch.UseVisualStyleBackColor = true;
this.ButtonSearch.Click += new System.EventHandler(this.ButtonSearch_Click);
//
// labelProduct
//
this.labelProduct.AutoSize = true;
this.labelProduct.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelProduct.Location = new System.Drawing.Point(61, 47);
this.labelProduct.Name = "labelProduct";
this.labelProduct.Size = new System.Drawing.Size(120, 25);
this.labelProduct.TabIndex = 2;
this.labelProduct.Text = "Add Product";
//
// DataGridViewParts
//
this.DataGridViewParts.AccessibleDescription = "Grid of available parts";
this.DataGridViewParts.AccessibleName = "Parts grid";
this.DataGridViewParts.BackgroundColor = System.Drawing.Color.White;
this.DataGridViewParts.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DataGridViewParts.Location = new System.Drawing.Point(507, 113);
this.DataGridViewParts.Name = "DataGridViewParts";
this.DataGridViewParts.RowHeadersVisible = false;
this.DataGridViewParts.RowHeadersWidth = 51;
this.DataGridViewParts.RowTemplate.Height = 24;
this.DataGridViewParts.Size = new System.Drawing.Size(511, 227);
this.DataGridViewParts.TabIndex = 3;
this.DataGridViewParts.TabStop = false;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label1.Location = new System.Drawing.Point(504, 79);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(139, 18);
this.label1.TabIndex = 4;
this.label1.Text = "Select from all parts";
//
// DataGridView2
//
this.DataGridView2.BackgroundColor = System.Drawing.Color.White;
this.DataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.DataGridView2.Location = new System.Drawing.Point(507, 422);
this.DataGridView2.Name = "DataGridView2";
this.DataGridView2.RowHeadersVisible = false;
this.DataGridView2.RowHeadersWidth = 51;
this.DataGridView2.RowTemplate.Height = 24;
this.DataGridView2.Size = new System.Drawing.Size(511, 152);
this.DataGridView2.TabIndex = 5;
this.DataGridView2.TabStop = false;
//
// ButtonAdd
//
this.ButtonAdd.Location = new System.Drawing.Point(925, 360);
this.ButtonAdd.Name = "ButtonAdd";
this.ButtonAdd.Size = new System.Drawing.Size(75, 23);
this.ButtonAdd.TabIndex = 8;
this.ButtonAdd.Text = "Add";
this.ButtonAdd.UseVisualStyleBackColor = true;
this.ButtonAdd.Click += new System.EventHandler(this.ButtonAddAssociatedPart_Click);
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.label2.Location = new System.Drawing.Point(504, 389);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(233, 18);
this.label2.TabIndex = 7;
this.label2.Text = "Parts Associated with this Product";
//
// TextBoxProductID
//
this.TextBoxProductID.AccessibleDescription = "ID text box with auto-generated number";
this.TextBoxProductID.AccessibleName = "ID text box";
this.TextBoxProductID.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.TextBoxProductID.Enabled = false;
this.TextBoxProductID.Location = new System.Drawing.Point(177, 184);
this.TextBoxProductID.MaxLength = 1000;
this.TextBoxProductID.Name = "TextBoxProductID";
this.TextBoxProductID.Size = new System.Drawing.Size(247, 22);
this.TextBoxProductID.TabIndex = 8;
this.TextBoxProductID.TabStop = false;
//
// labelProductId
//
this.labelProductId.AccessibleDescription = "ID number";
this.labelProductId.AccessibleName = "ID number";
this.labelProductId.AutoSize = true;
this.labelProductId.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelProductId.Location = new System.Drawing.Point(129, 184);
this.labelProductId.Name = "labelProductId";
this.labelProductId.Size = new System.Drawing.Size(26, 20);
this.labelProductId.TabIndex = 9;
this.labelProductId.Text = "ID";
//
// TextBoxName
//
this.TextBoxName.AccessibleDescription = "Name text box";
this.TextBoxName.AccessibleName = "Name text box";
this.TextBoxName.Location = new System.Drawing.Point(177, 248);
this.TextBoxName.MaxLength = 100;
this.TextBoxName.Name = "TextBoxName";
this.TextBoxName.Size = new System.Drawing.Size(247, 22);
this.TextBoxName.TabIndex = 1;
//
// labelProductName
//
this.labelProductName.AccessibleDescription = "Part name";
this.labelProductName.AccessibleName = "Part name";
this.labelProductName.AutoSize = true;
this.labelProductName.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelProductName.Location = new System.Drawing.Point(96, 250);
this.labelProductName.Name = "labelProductName";
this.labelProductName.Size = new System.Drawing.Size(59, 20);
this.labelProductName.TabIndex = 11;
this.labelProductName.Text = "Name*";
//
// TextBoxInventory
//
this.TextBoxInventory.AccessibleDescription = "Inventory text box";
this.TextBoxInventory.AccessibleName = "Inventory text box";
this.TextBoxInventory.Location = new System.Drawing.Point(177, 318);
this.TextBoxInventory.Name = "TextBoxInventory";
this.TextBoxInventory.Size = new System.Drawing.Size(247, 22);
this.TextBoxInventory.TabIndex = 2;
//
// labelPartInventory
//
this.labelPartInventory.AccessibleDescription = "How many items are currently available";
this.labelPartInventory.AccessibleName = "Inventory Count";
this.labelPartInventory.AutoSize = true;
this.labelPartInventory.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelPartInventory.Location = new System.Drawing.Point(73, 318);
this.labelPartInventory.Name = "labelPartInventory";
this.labelPartInventory.Size = new System.Drawing.Size(82, 20);
this.labelPartInventory.TabIndex = 13;
this.labelPartInventory.Text = "Inventory*";
//
// TextBoxPrice
//
this.TextBoxPrice.AccessibleDescription = "Price text box";
this.TextBoxPrice.AccessibleName = "Price text box";
this.TextBoxPrice.Location = new System.Drawing.Point(177, 385);
this.TextBoxPrice.MaxLength = 10000;
this.TextBoxPrice.Name = "TextBoxPrice";
this.TextBoxPrice.Size = new System.Drawing.Size(247, 22);
this.TextBoxPrice.TabIndex = 3;
//
// labelPartPrice
//
this.labelPartPrice.AccessibleDescription = "Product price";
this.labelPartPrice.AccessibleName = "Product price";
this.labelPartPrice.AutoSize = true;
this.labelPartPrice.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelPartPrice.Location = new System.Drawing.Point(51, 385);
this.labelPartPrice.Name = "labelPartPrice";
this.labelPartPrice.Size = new System.Drawing.Size(104, 20);
this.labelPartPrice.TabIndex = 15;
this.labelPartPrice.Text = "Price / Cost*";
//
// TextBoxMin
//
this.TextBoxMin.AccessibleDescription = "Minimum quantity text box";
this.TextBoxMin.AccessibleName = "Minimum quantity text box";
this.TextBoxMin.Location = new System.Drawing.Point(177, 453);
this.TextBoxMin.MaxLength = 1000;
this.TextBoxMin.Name = "TextBoxMin";
this.TextBoxMin.Size = new System.Drawing.Size(76, 22);
this.TextBoxMin.TabIndex = 4;
//
// TextBoxMax
//
this.TextBoxMax.AccessibleDescription = "Max quantity text box";
this.TextBoxMax.AccessibleName = "MAx quantity text box";
this.TextBoxMax.Location = new System.Drawing.Point(345, 453);
this.TextBoxMax.Name = "TextBoxMax";
this.TextBoxMax.Size = new System.Drawing.Size(79, 22);
this.TextBoxMax.TabIndex = 5;
//
// labelPartMin
//
this.labelPartMin.AccessibleDescription = "Minimum number of these parts allowed";
this.labelPartMin.AccessibleName = "Part min";
this.labelPartMin.AutoSize = true;
this.labelPartMin.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelPartMin.Location = new System.Drawing.Point(113, 453);
this.labelPartMin.Name = "labelPartMin";
this.labelPartMin.Size = new System.Drawing.Size(42, 20);
this.labelPartMin.TabIndex = 18;
this.labelPartMin.Text = "Min*";
//
// labelPartMax
//
this.labelPartMax.AccessibleDescription = "Maximum number of these parts allowed";
this.labelPartMax.AccessibleName = "Part max";
this.labelPartMax.AutoSize = true;
this.labelPartMax.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelPartMax.Location = new System.Drawing.Point(283, 453);
this.labelPartMax.Name = "labelPartMax";
this.labelPartMax.Size = new System.Drawing.Size(46, 20);
this.labelPartMax.TabIndex = 19;
this.labelPartMax.Text = "Max*";
//
// ButtonSave
//
this.ButtonSave.BackColor = System.Drawing.Color.LavenderBlush;
this.ButtonSave.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ButtonSave.Location = new System.Drawing.Point(383, 641);
this.ButtonSave.Name = "ButtonSave";
this.ButtonSave.Size = new System.Drawing.Size(135, 30);
this.ButtonSave.TabIndex = 9;
this.ButtonSave.Text = "Save Product";
this.ButtonSave.UseVisualStyleBackColor = false;
this.ButtonSave.Click += new System.EventHandler(this.ButtonSave_Click);
//
// ButtonCancel
//
this.ButtonCancel.Location = new System.Drawing.Point(549, 646);
this.ButtonCancel.Name = "ButtonCancel";
this.ButtonCancel.Size = new System.Drawing.Size(75, 23);
this.ButtonCancel.TabIndex = 10;
this.ButtonCancel.Text = "Cancel";
this.ButtonCancel.UseVisualStyleBackColor = true;
this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
//
// ButtonDelete
//
this.ButtonDelete.AccessibleDescription = "Delete ";
this.ButtonDelete.Location = new System.Drawing.Point(925, 593);
this.ButtonDelete.Name = "ButtonDelete";
this.ButtonDelete.Size = new System.Drawing.Size(75, 23);
this.ButtonDelete.TabIndex = 20;
this.ButtonDelete.Text = "Delete";
this.ButtonDelete.UseVisualStyleBackColor = true;
this.ButtonDelete.Click += new System.EventHandler(this.ButtonRemoveAssociatedPart_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(174, 515);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(140, 16);
this.label3.TabIndex = 21;
this.label3.Text = "* all fields are required";
//
// Products
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.Thistle;
this.ClientSize = new System.Drawing.Size(1102, 701);
this.Controls.Add(this.label3);
this.Controls.Add(this.ButtonDelete);
this.Controls.Add(this.ButtonCancel);
this.Controls.Add(this.ButtonSave);
this.Controls.Add(this.labelPartMax);
this.Controls.Add(this.labelPartMin);
this.Controls.Add(this.TextBoxMax);
this.Controls.Add(this.TextBoxMin);
this.Controls.Add(this.labelPartPrice);
this.Controls.Add(this.TextBoxPrice);
this.Controls.Add(this.labelPartInventory);
this.Controls.Add(this.TextBoxInventory);
this.Controls.Add(this.labelProductName);
this.Controls.Add(this.TextBoxName);
this.Controls.Add(this.labelProductId);
this.Controls.Add(this.TextBoxProductID);
this.Controls.Add(this.label2);
this.Controls.Add(this.ButtonAdd);
this.Controls.Add(this.DataGridView2);
this.Controls.Add(this.label1);
this.Controls.Add(this.DataGridViewParts);
this.Controls.Add(this.labelProduct);
this.Controls.Add(this.ButtonSearch);
this.Controls.Add(this.TextBoxSearchParts);
this.Name = "Products";
this.RightToLeftLayout = true;
this.Text = "AddProduct";
this.Load += new System.EventHandler(this.Products_Load);
((System.ComponentModel.ISupportInitialize)(this.DataGridViewParts)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.DataGridView2)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox TextBoxSearchParts;
private System.Windows.Forms.Button ButtonSearch;
private System.Windows.Forms.Label labelProduct;
private System.Windows.Forms.DataGridView DataGridViewParts;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.DataGridView DataGridView2;
private System.Windows.Forms.Button ButtonAdd;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox TextBoxProductID;
private System.Windows.Forms.Label labelProductId;
private System.Windows.Forms.TextBox TextBoxName;
private System.Windows.Forms.Label labelProductName;
private System.Windows.Forms.TextBox TextBoxInventory;
private System.Windows.Forms.Label labelPartInventory;
private System.Windows.Forms.TextBox TextBoxPrice;
private System.Windows.Forms.Label labelPartPrice;
private System.Windows.Forms.TextBox TextBoxMin;
private System.Windows.Forms.TextBox TextBoxMax;
private System.Windows.Forms.Label labelPartMin;
private System.Windows.Forms.Label labelPartMax;
private System.Windows.Forms.Button ButtonSave;
private System.Windows.Forms.Button ButtonCancel;
private System.Windows.Forms.Button ButtonDelete;
private System.Windows.Forms.Label label3;
}
}