Subversion Repository Public Repository

CommodityUtility

This repository has no backups
This repository's network speed is throttled to 100KB/sec

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
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
´╗┐namespace CommodityUtility
{
    partial class EditCommodity
    {
        /// <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.components = new System.ComponentModel.Container();
            System.Windows.Forms.Label dateAcquiredLabel;
            System.Windows.Forms.Label islandOfOriginLabel;
            System.Windows.Forms.Label nameLabel;
            System.Windows.Forms.Label typeLabel;
            System.Windows.Forms.Label unitCostLabel;
            System.Windows.Forms.Label qtyLabel;
            System.Windows.Forms.Label bidFeeLabel;
            System.Windows.Forms.Label purchasePriceLabel;
            System.Windows.Forms.Label bidFilledLabel;
            System.Windows.Forms.Label dateSoldLabel;
            System.Windows.Forms.Label salePriceLabel;
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EditCommodity));
            this.commodityBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.commodityBindingNavigator = new System.Windows.Forms.BindingNavigator(this.components);
            this.bindingNavigatorAddNewItem = new System.Windows.Forms.ToolStripButton();
            this.bindingNavigatorCountItem = new System.Windows.Forms.ToolStripLabel();
            this.bindingNavigatorDeleteItem = new System.Windows.Forms.ToolStripButton();
            this.bindingNavigatorMoveFirstItem = new System.Windows.Forms.ToolStripButton();
            this.bindingNavigatorMovePreviousItem = new System.Windows.Forms.ToolStripButton();
            this.bindingNavigatorSeparator = new System.Windows.Forms.ToolStripSeparator();
            this.bindingNavigatorPositionItem = new System.Windows.Forms.ToolStripTextBox();
            this.bindingNavigatorSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.bindingNavigatorMoveNextItem = new System.Windows.Forms.ToolStripButton();
            this.bindingNavigatorMoveLastItem = new System.Windows.Forms.ToolStripButton();
            this.bindingNavigatorSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.commodityBindingNavigatorSaveItem = new System.Windows.Forms.ToolStripButton();
            this.btnClose = new System.Windows.Forms.ToolStripButton();
            this.dateAcquiredDateTimePicker = new System.Windows.Forms.DateTimePicker();
            this.unitCostTextBox = new System.Windows.Forms.TextBox();
            this.qtyTextBox = new System.Windows.Forms.TextBox();
            this.bidFeeTextBox = new System.Windows.Forms.TextBox();
            this.purchasePriceTextBox = new System.Windows.Forms.TextBox();
            this.salePriceTextBox = new System.Windows.Forms.TextBox();
            this.comboBox1 = new System.Windows.Forms.ComboBox();
            this.islandBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.comboBox2 = new System.Windows.Forms.ComboBox();
            this.commodityListBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.comboBox3 = new System.Windows.Forms.ComboBox();
            this.commoditySaleTypeBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.tbBidFilled = new System.Windows.Forms.TextBox();
            this.tbDateSold = new System.Windows.Forms.TextBox();
            dateAcquiredLabel = new System.Windows.Forms.Label();
            islandOfOriginLabel = new System.Windows.Forms.Label();
            nameLabel = new System.Windows.Forms.Label();
            typeLabel = new System.Windows.Forms.Label();
            unitCostLabel = new System.Windows.Forms.Label();
            qtyLabel = new System.Windows.Forms.Label();
            bidFeeLabel = new System.Windows.Forms.Label();
            purchasePriceLabel = new System.Windows.Forms.Label();
            bidFilledLabel = new System.Windows.Forms.Label();
            dateSoldLabel = new System.Windows.Forms.Label();
            salePriceLabel = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.commodityBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.commodityBindingNavigator)).BeginInit();
            this.commodityBindingNavigator.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.islandBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.commodityListBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.commoditySaleTypeBindingSource)).BeginInit();
            this.SuspendLayout();
            // 
            // dateAcquiredLabel
            // 
            dateAcquiredLabel.AutoSize = true;
            dateAcquiredLabel.Location = new System.Drawing.Point(23, 46);
            dateAcquiredLabel.Name = "dateAcquiredLabel";
            dateAcquiredLabel.Size = new System.Drawing.Size(81, 13);
            dateAcquiredLabel.TabIndex = 3;
            dateAcquiredLabel.Text = "Date  Acquired:";
            // 
            // islandOfOriginLabel
            // 
            islandOfOriginLabel.AutoSize = true;
            islandOfOriginLabel.Location = new System.Drawing.Point(23, 71);
            islandOfOriginLabel.Name = "islandOfOriginLabel";
            islandOfOriginLabel.Size = new System.Drawing.Size(82, 13);
            islandOfOriginLabel.TabIndex = 5;
            islandOfOriginLabel.Text = "Island Of Origin:";
            // 
            // nameLabel
            // 
            nameLabel.AutoSize = true;
            nameLabel.Location = new System.Drawing.Point(23, 97);
            nameLabel.Name = "nameLabel";
            nameLabel.Size = new System.Drawing.Size(38, 13);
            nameLabel.TabIndex = 7;
            nameLabel.Text = "Name:";
            // 
            // typeLabel
            // 
            typeLabel.AutoSize = true;
            typeLabel.Location = new System.Drawing.Point(23, 123);
            typeLabel.Name = "typeLabel";
            typeLabel.Size = new System.Drawing.Size(34, 13);
            typeLabel.TabIndex = 9;
            typeLabel.Text = "Type:";
            // 
            // unitCostLabel
            // 
            unitCostLabel.AutoSize = true;
            unitCostLabel.Location = new System.Drawing.Point(23, 149);
            unitCostLabel.Name = "unitCostLabel";
            unitCostLabel.Size = new System.Drawing.Size(53, 13);
            unitCostLabel.TabIndex = 11;
            unitCostLabel.Text = "Unit Cost:";
            // 
            // qtyLabel
            // 
            qtyLabel.AutoSize = true;
            qtyLabel.Location = new System.Drawing.Point(23, 175);
            qtyLabel.Name = "qtyLabel";
            qtyLabel.Size = new System.Drawing.Size(26, 13);
            qtyLabel.TabIndex = 13;
            qtyLabel.Text = "Qty:";
            // 
            // bidFeeLabel
            // 
            bidFeeLabel.AutoSize = true;
            bidFeeLabel.Location = new System.Drawing.Point(23, 201);
            bidFeeLabel.Name = "bidFeeLabel";
            bidFeeLabel.Size = new System.Drawing.Size(46, 13);
            bidFeeLabel.TabIndex = 15;
            bidFeeLabel.Text = "Bid Fee:";
            // 
            // purchasePriceLabel
            // 
            purchasePriceLabel.AutoSize = true;
            purchasePriceLabel.Location = new System.Drawing.Point(23, 227);
            purchasePriceLabel.Name = "purchasePriceLabel";
            purchasePriceLabel.Size = new System.Drawing.Size(82, 13);
            purchasePriceLabel.TabIndex = 17;
            purchasePriceLabel.Text = "Purchase Price:";
            // 
            // bidFilledLabel
            // 
            bidFilledLabel.AutoSize = true;
            bidFilledLabel.Location = new System.Drawing.Point(23, 254);
            bidFilledLabel.Name = "bidFilledLabel";
            bidFilledLabel.Size = new System.Drawing.Size(52, 13);
            bidFilledLabel.TabIndex = 19;
            bidFilledLabel.Text = "Bid Filled:";
            // 
            // dateSoldLabel
            // 
            dateSoldLabel.AutoSize = true;
            dateSoldLabel.Location = new System.Drawing.Point(23, 280);
            dateSoldLabel.Name = "dateSoldLabel";
            dateSoldLabel.Size = new System.Drawing.Size(57, 13);
            dateSoldLabel.TabIndex = 21;
            dateSoldLabel.Text = "Date Sold:";
            // 
            // salePriceLabel
            // 
            salePriceLabel.AutoSize = true;
            salePriceLabel.Location = new System.Drawing.Point(23, 305);
            salePriceLabel.Name = "salePriceLabel";
            salePriceLabel.Size = new System.Drawing.Size(58, 13);
            salePriceLabel.TabIndex = 23;
            salePriceLabel.Text = "Sale Price:";
            // 
            // commodityBindingSource
            // 
            this.commodityBindingSource.DataMember = "Commodity";
            this.commodityBindingSource.DataSource = Program.mainTrackingDataSet;
            // 
            // commodityBindingNavigator
            // 
            this.commodityBindingNavigator.AddNewItem = this.bindingNavigatorAddNewItem;
            this.commodityBindingNavigator.BindingSource = this.commodityBindingSource;
            this.commodityBindingNavigator.CountItem = this.bindingNavigatorCountItem;
            this.commodityBindingNavigator.DeleteItem = this.bindingNavigatorDeleteItem;
            this.commodityBindingNavigator.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
            this.commodityBindingNavigator.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.bindingNavigatorMoveFirstItem,
            this.bindingNavigatorMovePreviousItem,
            this.bindingNavigatorSeparator,
            this.bindingNavigatorPositionItem,
            this.bindingNavigatorCountItem,
            this.bindingNavigatorSeparator1,
            this.bindingNavigatorMoveNextItem,
            this.bindingNavigatorMoveLastItem,
            this.bindingNavigatorSeparator2,
            this.bindingNavigatorAddNewItem,
            this.bindingNavigatorDeleteItem,
            this.commodityBindingNavigatorSaveItem,
            this.btnClose});
            this.commodityBindingNavigator.Location = new System.Drawing.Point(0, 0);
            this.commodityBindingNavigator.MoveFirstItem = this.bindingNavigatorMoveFirstItem;
            this.commodityBindingNavigator.MoveLastItem = this.bindingNavigatorMoveLastItem;
            this.commodityBindingNavigator.MoveNextItem = this.bindingNavigatorMoveNextItem;
            this.commodityBindingNavigator.MovePreviousItem = this.bindingNavigatorMovePreviousItem;
            this.commodityBindingNavigator.Name = "commodityBindingNavigator";
            this.commodityBindingNavigator.PositionItem = this.bindingNavigatorPositionItem;
            this.commodityBindingNavigator.Size = new System.Drawing.Size(361, 25);
            this.commodityBindingNavigator.TabIndex = 0;
            this.commodityBindingNavigator.Text = "bindingNavigator1";
            // 
            // bindingNavigatorAddNewItem
            // 
            this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.bindingNavigatorAddNewItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorAddNewItem.Image")));
            this.bindingNavigatorAddNewItem.Name = "bindingNavigatorAddNewItem";
            this.bindingNavigatorAddNewItem.RightToLeftAutoMirrorImage = true;
            this.bindingNavigatorAddNewItem.Size = new System.Drawing.Size(23, 22);
            this.bindingNavigatorAddNewItem.Text = "Add new";
            this.bindingNavigatorAddNewItem.Click += new System.EventHandler(this.bindingNavigatorAddNewItem_Click);
            // 
            // bindingNavigatorCountItem
            // 
            this.bindingNavigatorCountItem.Name = "bindingNavigatorCountItem";
            this.bindingNavigatorCountItem.Size = new System.Drawing.Size(35, 22);
            this.bindingNavigatorCountItem.Text = "of {0}";
            this.bindingNavigatorCountItem.ToolTipText = "Total number of items";
            // 
            // bindingNavigatorDeleteItem
            // 
            this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.bindingNavigatorDeleteItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorDeleteItem.Image")));
            this.bindingNavigatorDeleteItem.Name = "bindingNavigatorDeleteItem";
            this.bindingNavigatorDeleteItem.RightToLeftAutoMirrorImage = true;
            this.bindingNavigatorDeleteItem.Size = new System.Drawing.Size(23, 22);
            this.bindingNavigatorDeleteItem.Text = "Delete";
            // 
            // bindingNavigatorMoveFirstItem
            // 
            this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.bindingNavigatorMoveFirstItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveFirstItem.Image")));
            this.bindingNavigatorMoveFirstItem.Name = "bindingNavigatorMoveFirstItem";
            this.bindingNavigatorMoveFirstItem.RightToLeftAutoMirrorImage = true;
            this.bindingNavigatorMoveFirstItem.Size = new System.Drawing.Size(23, 22);
            this.bindingNavigatorMoveFirstItem.Text = "Move first";
            // 
            // bindingNavigatorMovePreviousItem
            // 
            this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.bindingNavigatorMovePreviousItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMovePreviousItem.Image")));
            this.bindingNavigatorMovePreviousItem.Name = "bindingNavigatorMovePreviousItem";
            this.bindingNavigatorMovePreviousItem.RightToLeftAutoMirrorImage = true;
            this.bindingNavigatorMovePreviousItem.Size = new System.Drawing.Size(23, 22);
            this.bindingNavigatorMovePreviousItem.Text = "Move previous";
            // 
            // bindingNavigatorSeparator
            // 
            this.bindingNavigatorSeparator.Name = "bindingNavigatorSeparator";
            this.bindingNavigatorSeparator.Size = new System.Drawing.Size(6, 25);
            // 
            // bindingNavigatorPositionItem
            // 
            this.bindingNavigatorPositionItem.AccessibleName = "Position";
            this.bindingNavigatorPositionItem.AutoSize = false;
            this.bindingNavigatorPositionItem.Name = "bindingNavigatorPositionItem";
            this.bindingNavigatorPositionItem.Size = new System.Drawing.Size(50, 23);
            this.bindingNavigatorPositionItem.Text = "0";
            this.bindingNavigatorPositionItem.ToolTipText = "Current position";
            // 
            // bindingNavigatorSeparator1
            // 
            this.bindingNavigatorSeparator1.Name = "bindingNavigatorSeparator1";
            this.bindingNavigatorSeparator1.Size = new System.Drawing.Size(6, 25);
            // 
            // bindingNavigatorMoveNextItem
            // 
            this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.bindingNavigatorMoveNextItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveNextItem.Image")));
            this.bindingNavigatorMoveNextItem.Name = "bindingNavigatorMoveNextItem";
            this.bindingNavigatorMoveNextItem.RightToLeftAutoMirrorImage = true;
            this.bindingNavigatorMoveNextItem.Size = new System.Drawing.Size(23, 22);
            this.bindingNavigatorMoveNextItem.Text = "Move next";
            // 
            // bindingNavigatorMoveLastItem
            // 
            this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.bindingNavigatorMoveLastItem.Image = ((System.Drawing.Image)(resources.GetObject("bindingNavigatorMoveLastItem.Image")));
            this.bindingNavigatorMoveLastItem.Name = "bindingNavigatorMoveLastItem";
            this.bindingNavigatorMoveLastItem.RightToLeftAutoMirrorImage = true;
            this.bindingNavigatorMoveLastItem.Size = new System.Drawing.Size(23, 22);
            this.bindingNavigatorMoveLastItem.Text = "Move last";
            // 
            // bindingNavigatorSeparator2
            // 
            this.bindingNavigatorSeparator2.Name = "bindingNavigatorSeparator2";
            this.bindingNavigatorSeparator2.Size = new System.Drawing.Size(6, 25);
            // 
            // commodityBindingNavigatorSaveItem
            // 
            this.commodityBindingNavigatorSaveItem.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
            this.commodityBindingNavigatorSaveItem.Image = ((System.Drawing.Image)(resources.GetObject("commodityBindingNavigatorSaveItem.Image")));
            this.commodityBindingNavigatorSaveItem.Name = "commodityBindingNavigatorSaveItem";
            this.commodityBindingNavigatorSaveItem.Size = new System.Drawing.Size(23, 22);
            this.commodityBindingNavigatorSaveItem.Text = "Save Data";
            this.commodityBindingNavigatorSaveItem.Click += new System.EventHandler(this.commodityBindingNavigatorSaveItem_Click);
            // 
            // btnClose
            // 
            this.btnClose.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.btnClose.Image = ((System.Drawing.Image)(resources.GetObject("btnClose.Image")));
            this.btnClose.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.btnClose.Name = "btnClose";
            this.btnClose.Size = new System.Drawing.Size(40, 22);
            this.btnClose.Text = "Close";
            this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
            // 
            // dateAcquiredDateTimePicker
            // 
            this.dateAcquiredDateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.commodityBindingSource, "dateAcquired", true));
            this.dateAcquiredDateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Short;
            this.dateAcquiredDateTimePicker.Location = new System.Drawing.Point(110, 42);
            this.dateAcquiredDateTimePicker.Name = "dateAcquiredDateTimePicker";
            this.dateAcquiredDateTimePicker.Size = new System.Drawing.Size(104, 20);
            this.dateAcquiredDateTimePicker.TabIndex = 4;
            // 
            // unitCostTextBox
            // 
            this.unitCostTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.commodityBindingSource, "unitCost", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2"));
            this.unitCostTextBox.Location = new System.Drawing.Point(110, 146);
            this.unitCostTextBox.Name = "unitCostTextBox";
            this.unitCostTextBox.Size = new System.Drawing.Size(61, 20);
            this.unitCostTextBox.TabIndex = 12;
            this.unitCostTextBox.TextChanged += new System.EventHandler(this.unitCostTextBox_TextChanged);
            // 
            // qtyTextBox
            // 
            this.qtyTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.commodityBindingSource, "qty", true));
            this.qtyTextBox.Location = new System.Drawing.Point(110, 172);
            this.qtyTextBox.Name = "qtyTextBox";
            this.qtyTextBox.Size = new System.Drawing.Size(61, 20);
            this.qtyTextBox.TabIndex = 14;
            this.qtyTextBox.TextChanged += new System.EventHandler(this.qtyTextBox_TextChanged);
            // 
            // bidFeeTextBox
            // 
            this.bidFeeTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.commodityBindingSource, "bidFee", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2"));
            this.bidFeeTextBox.Location = new System.Drawing.Point(110, 198);
            this.bidFeeTextBox.Name = "bidFeeTextBox";
            this.bidFeeTextBox.Size = new System.Drawing.Size(61, 20);
            this.bidFeeTextBox.TabIndex = 16;
            this.bidFeeTextBox.TextChanged += new System.EventHandler(this.bidFeeTextBox_TextChanged);
            // 
            // purchasePriceTextBox
            // 
            this.purchasePriceTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.commodityBindingSource, "purchasePrice", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2"));
            this.purchasePriceTextBox.Location = new System.Drawing.Point(110, 224);
            this.purchasePriceTextBox.Name = "purchasePriceTextBox";
            this.purchasePriceTextBox.ReadOnly = true;
            this.purchasePriceTextBox.Size = new System.Drawing.Size(61, 20);
            this.purchasePriceTextBox.TabIndex = 18;
            // 
            // salePriceTextBox
            // 
            this.salePriceTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.commodityBindingSource, "salePrice", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2"));
            this.salePriceTextBox.Location = new System.Drawing.Point(110, 302);
            this.salePriceTextBox.Name = "salePriceTextBox";
            this.salePriceTextBox.Size = new System.Drawing.Size(61, 20);
            this.salePriceTextBox.TabIndex = 24;
            // 
            // comboBox1
            // 
            this.comboBox1.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.commodityBindingSource, "islandOfOrigin", true));
            this.comboBox1.DataSource = this.islandBindingSource;
            this.comboBox1.DisplayMember = "name";
            this.comboBox1.FormattingEnabled = true;
            this.comboBox1.Location = new System.Drawing.Point(110, 68);
            this.comboBox1.Name = "comboBox1";
            this.comboBox1.Size = new System.Drawing.Size(151, 21);
            this.comboBox1.TabIndex = 25;
            this.comboBox1.ValueMember = "name";
            // 
            // islandBindingSource
            // 
            this.islandBindingSource.DataMember = "Island";
            this.islandBindingSource.DataSource = Program.mainIslandDataSet;
            //
            // comboBox2
            // 
            this.comboBox2.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.commodityBindingSource, "name", true));
            this.comboBox2.DataSource = this.commodityListBindingSource;
            this.comboBox2.DisplayMember = "name";
            this.comboBox2.FormattingEnabled = true;
            this.comboBox2.Location = new System.Drawing.Point(110, 93);
            this.comboBox2.Name = "comboBox2";
            this.comboBox2.Size = new System.Drawing.Size(151, 21);
            this.comboBox2.TabIndex = 26;
            this.comboBox2.ValueMember = "name";
            // 
            // commodityListBindingSource
            // 
            this.commodityListBindingSource.DataMember = "CommodityList";
            this.commodityListBindingSource.DataSource = Program.mainTrackingDataSet;
            // 
            // comboBox3
            // 
            this.comboBox3.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.commodityBindingSource, "type", true));
            this.comboBox3.DataSource = this.commoditySaleTypeBindingSource;
            this.comboBox3.DisplayMember = "type";
            this.comboBox3.FormattingEnabled = true;
            this.comboBox3.Location = new System.Drawing.Point(110, 120);
            this.comboBox3.Name = "comboBox3";
            this.comboBox3.Size = new System.Drawing.Size(104, 21);
            this.comboBox3.TabIndex = 27;
            this.comboBox3.ValueMember = "type";
            // 
            // commoditySaleTypeBindingSource
            // 
            this.commoditySaleTypeBindingSource.DataMember = "CommoditySaleType";
            this.commoditySaleTypeBindingSource.DataSource = Program.mainTrackingDataSet;
            // 
            // tbBidFilled
            // 
            this.tbBidFilled.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.commodityBindingSource, "bidFilled", true));
            this.tbBidFilled.Location = new System.Drawing.Point(110, 251);
            this.tbBidFilled.Name = "tbBidFilled";
            this.tbBidFilled.Size = new System.Drawing.Size(100, 20);
            this.tbBidFilled.TabIndex = 28;
            // 
            // tbDateSold
            // 
            this.tbDateSold.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.commodityBindingSource, "dateSold", true));
            this.tbDateSold.Location = new System.Drawing.Point(110, 277);
            this.tbDateSold.Name = "tbDateSold";
            this.tbDateSold.Size = new System.Drawing.Size(100, 20);
            this.tbDateSold.TabIndex = 29;
            // 
            // EditCommodity
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(361, 344);
            this.Controls.Add(this.tbDateSold);
            this.Controls.Add(this.tbBidFilled);
            this.Controls.Add(this.comboBox3);
            this.Controls.Add(this.comboBox2);
            this.Controls.Add(this.comboBox1);
            this.Controls.Add(dateAcquiredLabel);
            this.Controls.Add(this.dateAcquiredDateTimePicker);
            this.Controls.Add(islandOfOriginLabel);
            this.Controls.Add(nameLabel);
            this.Controls.Add(typeLabel);
            this.Controls.Add(unitCostLabel);
            this.Controls.Add(this.unitCostTextBox);
            this.Controls.Add(qtyLabel);
            this.Controls.Add(this.qtyTextBox);
            this.Controls.Add(bidFeeLabel);
            this.Controls.Add(this.bidFeeTextBox);
            this.Controls.Add(purchasePriceLabel);
            this.Controls.Add(this.purchasePriceTextBox);
            this.Controls.Add(bidFilledLabel);
            this.Controls.Add(dateSoldLabel);
            this.Controls.Add(salePriceLabel);
            this.Controls.Add(this.salePriceTextBox);
            this.Controls.Add(this.commodityBindingNavigator);
            this.Name = "EditCommodity";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
            this.Text = "Commodity";
            this.Load += new System.EventHandler(this.EditCommodity_Load);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.EditCommodity_FormClosing);
            ((System.ComponentModel.ISupportInitialize)(this.commodityBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.commodityBindingNavigator)).EndInit();
            this.commodityBindingNavigator.ResumeLayout(false);
            this.commodityBindingNavigator.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.islandBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.commodityListBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.commoditySaleTypeBindingSource)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.BindingSource commodityBindingSource;
        private System.Windows.Forms.BindingNavigator commodityBindingNavigator;
        private System.Windows.Forms.ToolStripButton bindingNavigatorAddNewItem;
        private System.Windows.Forms.ToolStripLabel bindingNavigatorCountItem;
        private System.Windows.Forms.ToolStripButton bindingNavigatorDeleteItem;
        private System.Windows.Forms.ToolStripButton bindingNavigatorMoveFirstItem;
        private System.Windows.Forms.ToolStripButton bindingNavigatorMovePreviousItem;
        private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator;
        private System.Windows.Forms.ToolStripTextBox bindingNavigatorPositionItem;
        private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator1;
        private System.Windows.Forms.ToolStripButton bindingNavigatorMoveNextItem;
        private System.Windows.Forms.ToolStripButton bindingNavigatorMoveLastItem;
        private System.Windows.Forms.ToolStripSeparator bindingNavigatorSeparator2;
        private System.Windows.Forms.ToolStripButton commodityBindingNavigatorSaveItem;
        private System.Windows.Forms.DateTimePicker dateAcquiredDateTimePicker;
        private System.Windows.Forms.TextBox unitCostTextBox;
        private System.Windows.Forms.TextBox qtyTextBox;
        private System.Windows.Forms.TextBox bidFeeTextBox;
        private System.Windows.Forms.TextBox purchasePriceTextBox;
        private System.Windows.Forms.TextBox salePriceTextBox;
        private System.Windows.Forms.ComboBox comboBox1;
        private System.Windows.Forms.BindingSource islandBindingSource;
        private System.Windows.Forms.ComboBox comboBox2;
        private System.Windows.Forms.BindingSource commodityListBindingSource;
        private System.Windows.Forms.ComboBox comboBox3;
        private System.Windows.Forms.BindingSource commoditySaleTypeBindingSource;
        private System.Windows.Forms.ToolStripButton btnClose;
        private System.Windows.Forms.TextBox tbBidFilled;
        private System.Windows.Forms.TextBox tbDateSold;

    }
}

Commits for CommodityUtility/EditCommodity.Designer.cs

Diff revisions: vs.
Revision Author Commited Message
3 wysperia picture wysperia Thu 14 Jul, 2011 20:21:16 +0000

Version 1.0