Bläddra i källkod

- Bluecell GUI Chart 적용

PYJ 5 år sedan
förälder
incheckning
6faa4a3d13

BIN
.vs/Jdas_Mbic/v15/.suo


BIN
.vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide


BIN
.vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide-shm


BIN
.vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide-wal


+ 3 - 2
Jdas_Mbic/Func/Bluecell_BootProtocol.cs

@@ -151,8 +151,9 @@ namespace Jdas_Mbic
151 151
             BLuecell_ATT_ALC3,
152 152
             BLuecell_ATT_ALC4,
153 153
             Bluecell_BankSelect,
154
-            
155
-
154
+            Bluecell_TimeSetting,
155
+            Bluecell_Factory_Set,
156
+            Bluecell_CarrierOnOff,
156 157
         };
157 158
 
158 159
        

+ 1 - 1
Jdas_Mbic/Func/Data_Handler.cs

@@ -77,9 +77,9 @@ namespace Jdas_Mbic
77 77
             {
78 78
                 return ret;
79 79
             }
80
-            Crcdata = Convert.ToUInt16((data[length + 1] << 8) | (data[length + 2]));
81 80
             try
82 81
             {
82
+                Crcdata = Convert.ToUInt16((data[length + 1] << 8) | (data[length + 2]));
83 83
                 //length = (UInt16)((temp[2] << 8) | temp[3]);
84 84
                 //ret = crc.CRC16_Check(temp, length, Crcdata);
85 85
                 ret = crc.CRC16_Check(data,length, Crcdata);

+ 120 - 79
Jdas_Mbic/Main.Designer.cs

@@ -30,12 +30,13 @@
30 30
         {
31 31
             this.components = new System.ComponentModel.Container();
32 32
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(JdasMbic));
33
-            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
34
-            System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend();
35
-            System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
33
+            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
34
+            System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
35
+            System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
36 36
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
37 37
             this.Mbic_Setting = new System.Windows.Forms.TabControl();
38 38
             this.tabPage_Main = new System.Windows.Forms.TabPage();
39
+            this.textBox_FRBT_TIME = new System.Windows.Forms.TextBox();
39 40
             this.label_BankSel = new System.Windows.Forms.Label();
40 41
             this.comboBox_BankSel = new System.Windows.Forms.ComboBox();
41 42
             this.textBox_Version = new System.Windows.Forms.TextBox();
@@ -112,7 +113,7 @@
112 113
             this.pictureBox_DL1_PATH_ON = new System.Windows.Forms.PictureBox();
113 114
             this.pictureBox_SelfTest1_OFF = new System.Windows.Forms.PictureBox();
114 115
             this.pictureBox_SelfTest1_ON = new System.Windows.Forms.PictureBox();
115
-            this.button_UL4 = new System.Windows.Forms.Button();
116
+            this.button_FRBT_TimeSetting = new System.Windows.Forms.Button();
116 117
             this.groupBox4 = new System.Windows.Forms.GroupBox();
117 118
             this.numericUpDown_ALC2 = new System.Windows.Forms.NumericUpDown();
118 119
             this.groupBox15 = new System.Windows.Forms.GroupBox();
@@ -294,16 +295,18 @@
294 295
             this.pictureBox_ULShutdown_Alarm_OFF = new System.Windows.Forms.PictureBox();
295 296
             this.label_CPU_Version = new System.Windows.Forms.Label();
296 297
             this.numericUpDown_ShutdownUL1 = new System.Windows.Forms.NumericUpDown();
297
-            this.groupBox11 = new System.Windows.Forms.GroupBox();
298 298
             this.numericUpDown_ShutdownUL4 = new System.Windows.Forms.NumericUpDown();
299 299
             this.numericUpDown_ShutdownUL3 = new System.Windows.Forms.NumericUpDown();
300 300
             this.numericUpDown_ShutdownUL2 = new System.Windows.Forms.NumericUpDown();
301
-            this.groupBox20 = new System.Windows.Forms.GroupBox();
302 301
             this.numericUpDown_ShutdownDL4 = new System.Windows.Forms.NumericUpDown();
303 302
             this.numericUpDown_ShutdownDL3 = new System.Windows.Forms.NumericUpDown();
304 303
             this.numericUpDown_ShutdownDL2 = new System.Windows.Forms.NumericUpDown();
305 304
             this.numericUpDown_ShutdownDL1 = new System.Windows.Forms.NumericUpDown();
306 305
             this.button1 = new System.Windows.Forms.Button();
306
+            this.button_FactorySet = new System.Windows.Forms.Button();
307
+            this.button_Carrier = new System.Windows.Forms.Button();
308
+            this.button_Carrier_OFF = new System.Windows.Forms.Button();
309
+            this.button_Down = new System.Windows.Forms.Button();
307 310
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
308 311
             this.Mbic_Setting.SuspendLayout();
309 312
             this.tabPage_Main.SuspendLayout();
@@ -430,11 +433,9 @@
430 433
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_ULShutdown_Alarm_ON)).BeginInit();
431 434
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_ULShutdown_Alarm_OFF)).BeginInit();
432 435
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL1)).BeginInit();
433
-            this.groupBox11.SuspendLayout();
434 436
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL4)).BeginInit();
435 437
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL3)).BeginInit();
436 438
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL2)).BeginInit();
437
-            this.groupBox20.SuspendLayout();
438 439
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL4)).BeginInit();
439 440
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL3)).BeginInit();
440 441
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL2)).BeginInit();
@@ -463,6 +464,7 @@
463 464
             // 
464 465
             // tabPage_Main
465 466
             // 
467
+            this.tabPage_Main.Controls.Add(this.textBox_FRBT_TIME);
466 468
             this.tabPage_Main.Controls.Add(this.label_BankSel);
467 469
             this.tabPage_Main.Controls.Add(this.comboBox_BankSel);
468 470
             this.tabPage_Main.Controls.Add(this.textBox_Version);
@@ -481,7 +483,7 @@
481 483
             this.tabPage_Main.Controls.Add(this.numericUpDown_Temp_Threshold_Default);
482 484
             this.tabPage_Main.Controls.Add(this.groupBox2);
483 485
             this.tabPage_Main.Controls.Add(this.groupBox1);
484
-            this.tabPage_Main.Controls.Add(this.button_UL4);
486
+            this.tabPage_Main.Controls.Add(this.button_FRBT_TimeSetting);
485 487
             this.tabPage_Main.Controls.Add(this.groupBox4);
486 488
             this.tabPage_Main.Controls.Add(this.groupBox12);
487 489
             this.tabPage_Main.Controls.Add(this.groupBox9);
@@ -493,10 +495,18 @@
493 495
             this.tabPage_Main.Text = "Main";
494 496
             this.tabPage_Main.UseVisualStyleBackColor = true;
495 497
             // 
498
+            // textBox_FRBT_TIME
499
+            // 
500
+            this.textBox_FRBT_TIME.Location = new System.Drawing.Point(5, 466);
501
+            this.textBox_FRBT_TIME.Name = "textBox_FRBT_TIME";
502
+            this.textBox_FRBT_TIME.Size = new System.Drawing.Size(204, 21);
503
+            this.textBox_FRBT_TIME.TabIndex = 153;
504
+            this.textBox_FRBT_TIME.Text = "20-07-02-07-09-15";
505
+            // 
496 506
             // label_BankSel
497 507
             // 
498 508
             this.label_BankSel.AutoSize = true;
499
-            this.label_BankSel.Location = new System.Drawing.Point(3, 593);
509
+            this.label_BankSel.Location = new System.Drawing.Point(3, 621);
500 510
             this.label_BankSel.Name = "label_BankSel";
501 511
             this.label_BankSel.Size = new System.Drawing.Size(72, 12);
502 512
             this.label_BankSel.TabIndex = 152;
@@ -509,7 +519,7 @@
509 519
             "BANK1",
510 520
             "BANK2",
511 521
             "AUTO"});
512
-            this.comboBox_BankSel.Location = new System.Drawing.Point(88, 587);
522
+            this.comboBox_BankSel.Location = new System.Drawing.Point(88, 615);
513 523
             this.comboBox_BankSel.Name = "comboBox_BankSel";
514 524
             this.comboBox_BankSel.Size = new System.Drawing.Size(121, 20);
515 525
             this.comboBox_BankSel.TabIndex = 151;
@@ -544,7 +554,7 @@
544 554
             // 
545 555
             // button_Reset
546 556
             // 
547
-            this.button_Reset.Location = new System.Drawing.Point(7, 545);
557
+            this.button_Reset.Location = new System.Drawing.Point(7, 573);
548 558
             this.button_Reset.Name = "button_Reset";
549 559
             this.button_Reset.Size = new System.Drawing.Size(203, 34);
550 560
             this.button_Reset.TabIndex = 148;
@@ -554,7 +564,7 @@
554 564
             // 
555 565
             // button_Save
556 566
             // 
557
-            this.button_Save.Location = new System.Drawing.Point(6, 505);
567
+            this.button_Save.Location = new System.Drawing.Point(6, 533);
558 568
             this.button_Save.Name = "button_Save";
559 569
             this.button_Save.Size = new System.Drawing.Size(203, 34);
560 570
             this.button_Save.TabIndex = 148;
@@ -625,6 +635,8 @@
625 635
             // 
626 636
             // groupBox5
627 637
             // 
638
+            this.groupBox5.Controls.Add(this.numericUpDown_ShutdownUL3);
639
+            this.groupBox5.Controls.Add(this.numericUpDown_ShutdownDL3);
628 640
             this.groupBox5.Controls.Add(this.numericUpDown_ALC3);
629 641
             this.groupBox5.Controls.Add(this.groupBox17);
630 642
             this.groupBox5.Controls.Add(this.label21);
@@ -1018,6 +1030,8 @@
1018 1030
             // 
1019 1031
             // groupBox2
1020 1032
             // 
1033
+            this.groupBox2.Controls.Add(this.numericUpDown_ShutdownUL4);
1034
+            this.groupBox2.Controls.Add(this.numericUpDown_ShutdownDL4);
1021 1035
             this.groupBox2.Controls.Add(this.numericUpDown_ALC4);
1022 1036
             this.groupBox2.Controls.Add(this.groupBox18);
1023 1037
             this.groupBox2.Controls.Add(this.label4);
@@ -1343,6 +1357,8 @@
1343 1357
             // 
1344 1358
             // groupBox1
1345 1359
             // 
1360
+            this.groupBox1.Controls.Add(this.numericUpDown_ShutdownDL1);
1361
+            this.groupBox1.Controls.Add(this.numericUpDown_ShutdownUL1);
1346 1362
             this.groupBox1.Controls.Add(this.numericUpDown_ALC1);
1347 1363
             this.groupBox1.Controls.Add(this.groupBox10);
1348 1364
             this.groupBox1.Controls.Add(this.label10);
@@ -1671,18 +1687,20 @@
1671 1687
             this.pictureBox_SelfTest1_ON.Tag = "1";
1672 1688
             this.pictureBox_SelfTest1_ON.Click += new System.EventHandler(this.pictureBox_ATT_PATH_Ctrl_Click);
1673 1689
             // 
1674
-            // button_UL4
1690
+            // button_FRBT_TimeSetting
1675 1691
             // 
1676
-            this.button_UL4.Location = new System.Drawing.Point(6, 465);
1677
-            this.button_UL4.Name = "button_UL4";
1678
-            this.button_UL4.Size = new System.Drawing.Size(203, 34);
1679
-            this.button_UL4.TabIndex = 146;
1680
-            this.button_UL4.Text = "Apply";
1681
-            this.button_UL4.UseVisualStyleBackColor = true;
1682
-            this.button_UL4.Click += new System.EventHandler(this.button_ATT_Click_2);
1692
+            this.button_FRBT_TimeSetting.Location = new System.Drawing.Point(6, 493);
1693
+            this.button_FRBT_TimeSetting.Name = "button_FRBT_TimeSetting";
1694
+            this.button_FRBT_TimeSetting.Size = new System.Drawing.Size(203, 34);
1695
+            this.button_FRBT_TimeSetting.TabIndex = 146;
1696
+            this.button_FRBT_TimeSetting.Text = "FRBT TIME SETTING";
1697
+            this.button_FRBT_TimeSetting.UseVisualStyleBackColor = true;
1698
+            this.button_FRBT_TimeSetting.Click += new System.EventHandler(this.button_FRBT_TimeSetting_Click);
1683 1699
             // 
1684 1700
             // groupBox4
1685 1701
             // 
1702
+            this.groupBox4.Controls.Add(this.numericUpDown_ShutdownUL2);
1703
+            this.groupBox4.Controls.Add(this.numericUpDown_ShutdownDL2);
1686 1704
             this.groupBox4.Controls.Add(this.numericUpDown_ALC2);
1687 1705
             this.groupBox4.Controls.Add(this.groupBox15);
1688 1706
             this.groupBox4.Controls.Add(this.label14);
@@ -2197,6 +2215,7 @@
2197 2215
             // 
2198 2216
             // tabPage_Table
2199 2217
             // 
2218
+            this.tabPage_Table.Controls.Add(this.button_Down);
2200 2219
             this.tabPage_Table.Controls.Add(this.button_TableAttribute_Default);
2201 2220
             this.tabPage_Table.Controls.Add(this.label45);
2202 2221
             this.tabPage_Table.Controls.Add(this.numericUpDown_TableRef);
@@ -2277,17 +2296,17 @@
2277 2296
             // 
2278 2297
             // chart_Table
2279 2298
             // 
2280
-            chartArea2.Name = "ChartArea1";
2281
-            this.chart_Table.ChartAreas.Add(chartArea2);
2282
-            legend2.Name = "Legend1";
2283
-            this.chart_Table.Legends.Add(legend2);
2299
+            chartArea1.Name = "ChartArea1";
2300
+            this.chart_Table.ChartAreas.Add(chartArea1);
2301
+            legend1.Name = "Legend1";
2302
+            this.chart_Table.Legends.Add(legend1);
2284 2303
             this.chart_Table.Location = new System.Drawing.Point(336, 548);
2285 2304
             this.chart_Table.Name = "chart_Table";
2286
-            series2.ChartArea = "ChartArea1";
2287
-            series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
2288
-            series2.Legend = "Legend1";
2289
-            series2.Name = "Series1";
2290
-            this.chart_Table.Series.Add(series2);
2305
+            series1.ChartArea = "ChartArea1";
2306
+            series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
2307
+            series1.Legend = "Legend1";
2308
+            series1.Name = "Series1";
2309
+            this.chart_Table.Series.Add(series1);
2291 2310
             this.chart_Table.Size = new System.Drawing.Size(431, 168);
2292 2311
             this.chart_Table.TabIndex = 8;
2293 2312
             this.chart_Table.Text = "chart1";
@@ -3075,7 +3094,7 @@
3075 3094
             // pictureBox_DL_Shutdown_OFF
3076 3095
             // 
3077 3096
             this.pictureBox_DL_Shutdown_OFF.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_DL_Shutdown_OFF.Image")));
3078
-            this.pictureBox_DL_Shutdown_OFF.Location = new System.Drawing.Point(1055, 528);
3097
+            this.pictureBox_DL_Shutdown_OFF.Location = new System.Drawing.Point(1052, 528);
3079 3098
             this.pictureBox_DL_Shutdown_OFF.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
3080 3099
             this.pictureBox_DL_Shutdown_OFF.Name = "pictureBox_DL_Shutdown_OFF";
3081 3100
             this.pictureBox_DL_Shutdown_OFF.Size = new System.Drawing.Size(37, 36);
@@ -3377,7 +3396,7 @@
3377 3396
             // pictureBox_ALC1_ON
3378 3397
             // 
3379 3398
             this.pictureBox_ALC1_ON.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_ALC1_ON.Image")));
3380
-            this.pictureBox_ALC1_ON.Location = new System.Drawing.Point(1033, 304);
3399
+            this.pictureBox_ALC1_ON.Location = new System.Drawing.Point(1047, 304);
3381 3400
             this.pictureBox_ALC1_ON.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
3382 3401
             this.pictureBox_ALC1_ON.Name = "pictureBox_ALC1_ON";
3383 3402
             this.pictureBox_ALC1_ON.Size = new System.Drawing.Size(37, 36);
@@ -3389,7 +3408,7 @@
3389 3408
             // pictureBox_AGC1_OFF
3390 3409
             // 
3391 3410
             this.pictureBox_AGC1_OFF.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_AGC1_OFF.Image")));
3392
-            this.pictureBox_AGC1_OFF.Location = new System.Drawing.Point(1033, 386);
3411
+            this.pictureBox_AGC1_OFF.Location = new System.Drawing.Point(1047, 386);
3393 3412
             this.pictureBox_AGC1_OFF.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
3394 3413
             this.pictureBox_AGC1_OFF.Name = "pictureBox_AGC1_OFF";
3395 3414
             this.pictureBox_AGC1_OFF.Size = new System.Drawing.Size(37, 36);
@@ -3402,7 +3421,7 @@
3402 3421
             // 
3403 3422
             this.label34.AutoSize = true;
3404 3423
             this.label34.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
3405
-            this.label34.Location = new System.Drawing.Point(1036, 371);
3424
+            this.label34.Location = new System.Drawing.Point(1050, 371);
3406 3425
             this.label34.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
3407 3426
             this.label34.Name = "label34";
3408 3427
             this.label34.Size = new System.Drawing.Size(34, 12);
@@ -3412,7 +3431,7 @@
3412 3431
             // pictureBox_ALC1_OFF
3413 3432
             // 
3414 3433
             this.pictureBox_ALC1_OFF.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_ALC1_OFF.Image")));
3415
-            this.pictureBox_ALC1_OFF.Location = new System.Drawing.Point(1033, 304);
3434
+            this.pictureBox_ALC1_OFF.Location = new System.Drawing.Point(1047, 304);
3416 3435
             this.pictureBox_ALC1_OFF.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
3417 3436
             this.pictureBox_ALC1_OFF.Name = "pictureBox_ALC1_OFF";
3418 3437
             this.pictureBox_ALC1_OFF.Size = new System.Drawing.Size(37, 36);
@@ -3501,7 +3520,7 @@
3501 3520
             // 
3502 3521
             this.label32.AutoSize = true;
3503 3522
             this.label32.Font = new System.Drawing.Font("굴림", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
3504
-            this.label32.Location = new System.Drawing.Point(1037, 288);
3523
+            this.label32.Location = new System.Drawing.Point(1051, 288);
3505 3524
             this.label32.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
3506 3525
             this.label32.Name = "label32";
3507 3526
             this.label32.Size = new System.Drawing.Size(32, 12);
@@ -3511,7 +3530,7 @@
3511 3530
             // pictureBox_AGC1_ON
3512 3531
             // 
3513 3532
             this.pictureBox_AGC1_ON.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_AGC1_ON.Image")));
3514
-            this.pictureBox_AGC1_ON.Location = new System.Drawing.Point(1033, 386);
3533
+            this.pictureBox_AGC1_ON.Location = new System.Drawing.Point(1047, 386);
3515 3534
             this.pictureBox_AGC1_ON.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
3516 3535
             this.pictureBox_AGC1_ON.Name = "pictureBox_AGC1_ON";
3517 3536
             this.pictureBox_AGC1_ON.Size = new System.Drawing.Size(37, 36);
@@ -3686,7 +3705,7 @@
3686 3705
             // pictureBox_DL_Shutdown_ON
3687 3706
             // 
3688 3707
             this.pictureBox_DL_Shutdown_ON.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox_DL_Shutdown_ON.Image")));
3689
-            this.pictureBox_DL_Shutdown_ON.Location = new System.Drawing.Point(1055, 528);
3708
+            this.pictureBox_DL_Shutdown_ON.Location = new System.Drawing.Point(1052, 528);
3690 3709
             this.pictureBox_DL_Shutdown_ON.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
3691 3710
             this.pictureBox_DL_Shutdown_ON.Name = "pictureBox_DL_Shutdown_ON";
3692 3711
             this.pictureBox_DL_Shutdown_ON.Size = new System.Drawing.Size(37, 36);
@@ -3976,82 +3995,56 @@
3976 3995
             // 
3977 3996
             // numericUpDown_ShutdownUL1
3978 3997
             // 
3979
-            this.numericUpDown_ShutdownUL1.Location = new System.Drawing.Point(22, 30);
3998
+            this.numericUpDown_ShutdownUL1.Location = new System.Drawing.Point(469, 122);
3980 3999
             this.numericUpDown_ShutdownUL1.Name = "numericUpDown_ShutdownUL1";
3981 4000
             this.numericUpDown_ShutdownUL1.Size = new System.Drawing.Size(51, 21);
3982 4001
             this.numericUpDown_ShutdownUL1.TabIndex = 155;
3983 4002
             // 
3984
-            // groupBox11
3985
-            // 
3986
-            this.groupBox11.Controls.Add(this.numericUpDown_ShutdownUL4);
3987
-            this.groupBox11.Controls.Add(this.numericUpDown_ShutdownUL3);
3988
-            this.groupBox11.Controls.Add(this.numericUpDown_ShutdownUL2);
3989
-            this.groupBox11.Controls.Add(this.numericUpDown_ShutdownUL1);
3990
-            this.groupBox11.Location = new System.Drawing.Point(954, 686);
3991
-            this.groupBox11.Name = "groupBox11";
3992
-            this.groupBox11.Size = new System.Drawing.Size(113, 145);
3993
-            this.groupBox11.TabIndex = 156;
3994
-            this.groupBox11.TabStop = false;
3995
-            this.groupBox11.Text = "UL SHUTDOWN";
3996
-            // 
3997 4003
             // numericUpDown_ShutdownUL4
3998 4004
             // 
3999
-            this.numericUpDown_ShutdownUL4.Location = new System.Drawing.Point(22, 109);
4005
+            this.numericUpDown_ShutdownUL4.Location = new System.Drawing.Point(481, 119);
4000 4006
             this.numericUpDown_ShutdownUL4.Name = "numericUpDown_ShutdownUL4";
4001 4007
             this.numericUpDown_ShutdownUL4.Size = new System.Drawing.Size(51, 21);
4002 4008
             this.numericUpDown_ShutdownUL4.TabIndex = 155;
4003 4009
             // 
4004 4010
             // numericUpDown_ShutdownUL3
4005 4011
             // 
4006
-            this.numericUpDown_ShutdownUL3.Location = new System.Drawing.Point(22, 84);
4012
+            this.numericUpDown_ShutdownUL3.Location = new System.Drawing.Point(481, 119);
4007 4013
             this.numericUpDown_ShutdownUL3.Name = "numericUpDown_ShutdownUL3";
4008 4014
             this.numericUpDown_ShutdownUL3.Size = new System.Drawing.Size(51, 21);
4009 4015
             this.numericUpDown_ShutdownUL3.TabIndex = 155;
4010 4016
             // 
4011 4017
             // numericUpDown_ShutdownUL2
4012 4018
             // 
4013
-            this.numericUpDown_ShutdownUL2.Location = new System.Drawing.Point(23, 57);
4019
+            this.numericUpDown_ShutdownUL2.Location = new System.Drawing.Point(469, 116);
4014 4020
             this.numericUpDown_ShutdownUL2.Name = "numericUpDown_ShutdownUL2";
4015 4021
             this.numericUpDown_ShutdownUL2.Size = new System.Drawing.Size(51, 21);
4016 4022
             this.numericUpDown_ShutdownUL2.TabIndex = 155;
4017 4023
             // 
4018
-            // groupBox20
4019
-            // 
4020
-            this.groupBox20.Controls.Add(this.numericUpDown_ShutdownDL4);
4021
-            this.groupBox20.Controls.Add(this.numericUpDown_ShutdownDL3);
4022
-            this.groupBox20.Controls.Add(this.numericUpDown_ShutdownDL2);
4023
-            this.groupBox20.Controls.Add(this.numericUpDown_ShutdownDL1);
4024
-            this.groupBox20.Location = new System.Drawing.Point(818, 686);
4025
-            this.groupBox20.Name = "groupBox20";
4026
-            this.groupBox20.Size = new System.Drawing.Size(113, 145);
4027
-            this.groupBox20.TabIndex = 156;
4028
-            this.groupBox20.TabStop = false;
4029
-            this.groupBox20.Text = "DL SHUTDOWN";
4030
-            // 
4031 4024
             // numericUpDown_ShutdownDL4
4032 4025
             // 
4033
-            this.numericUpDown_ShutdownDL4.Location = new System.Drawing.Point(22, 109);
4026
+            this.numericUpDown_ShutdownDL4.Location = new System.Drawing.Point(481, 97);
4034 4027
             this.numericUpDown_ShutdownDL4.Name = "numericUpDown_ShutdownDL4";
4035 4028
             this.numericUpDown_ShutdownDL4.Size = new System.Drawing.Size(51, 21);
4036 4029
             this.numericUpDown_ShutdownDL4.TabIndex = 155;
4037 4030
             // 
4038 4031
             // numericUpDown_ShutdownDL3
4039 4032
             // 
4040
-            this.numericUpDown_ShutdownDL3.Location = new System.Drawing.Point(22, 84);
4033
+            this.numericUpDown_ShutdownDL3.Location = new System.Drawing.Point(481, 94);
4041 4034
             this.numericUpDown_ShutdownDL3.Name = "numericUpDown_ShutdownDL3";
4042 4035
             this.numericUpDown_ShutdownDL3.Size = new System.Drawing.Size(51, 21);
4043 4036
             this.numericUpDown_ShutdownDL3.TabIndex = 155;
4044 4037
             // 
4045 4038
             // numericUpDown_ShutdownDL2
4046 4039
             // 
4047
-            this.numericUpDown_ShutdownDL2.Location = new System.Drawing.Point(23, 57);
4040
+            this.numericUpDown_ShutdownDL2.Location = new System.Drawing.Point(469, 91);
4048 4041
             this.numericUpDown_ShutdownDL2.Name = "numericUpDown_ShutdownDL2";
4049 4042
             this.numericUpDown_ShutdownDL2.Size = new System.Drawing.Size(51, 21);
4050 4043
             this.numericUpDown_ShutdownDL2.TabIndex = 155;
4051 4044
             // 
4052 4045
             // numericUpDown_ShutdownDL1
4053 4046
             // 
4054
-            this.numericUpDown_ShutdownDL1.Location = new System.Drawing.Point(22, 30);
4047
+            this.numericUpDown_ShutdownDL1.Location = new System.Drawing.Point(469, 95);
4055 4048
             this.numericUpDown_ShutdownDL1.Name = "numericUpDown_ShutdownDL1";
4056 4049
             this.numericUpDown_ShutdownDL1.Size = new System.Drawing.Size(51, 21);
4057 4050
             this.numericUpDown_ShutdownDL1.TabIndex = 155;
@@ -4066,14 +4059,58 @@
4066 4059
             this.button1.UseVisualStyleBackColor = true;
4067 4060
             this.button1.Click += new System.EventHandler(this.button1_Click);
4068 4061
             // 
4062
+            // button_FactorySet
4063
+            // 
4064
+            this.button_FactorySet.Location = new System.Drawing.Point(995, 7);
4065
+            this.button_FactorySet.Name = "button_FactorySet";
4066
+            this.button_FactorySet.Size = new System.Drawing.Size(75, 23);
4067
+            this.button_FactorySet.TabIndex = 158;
4068
+            this.button_FactorySet.Text = "Factory Set";
4069
+            this.button_FactorySet.UseVisualStyleBackColor = true;
4070
+            this.button_FactorySet.Click += new System.EventHandler(this.button_FactorySet_Click);
4071
+            // 
4072
+            // button_Carrier
4073
+            // 
4074
+            this.button_Carrier.Location = new System.Drawing.Point(824, 6);
4075
+            this.button_Carrier.Name = "button_Carrier";
4076
+            this.button_Carrier.Size = new System.Drawing.Size(75, 23);
4077
+            this.button_Carrier.TabIndex = 158;
4078
+            this.button_Carrier.Text = "Carrier ON";
4079
+            this.button_Carrier.UseVisualStyleBackColor = true;
4080
+            this.button_Carrier.Click += new System.EventHandler(this.button_Carrier_Click);
4081
+            // 
4082
+            // button_Carrier_OFF
4083
+            // 
4084
+            this.button_Carrier_OFF.Location = new System.Drawing.Point(905, 6);
4085
+            this.button_Carrier_OFF.Name = "button_Carrier_OFF";
4086
+            this.button_Carrier_OFF.Size = new System.Drawing.Size(85, 23);
4087
+            this.button_Carrier_OFF.TabIndex = 158;
4088
+            this.button_Carrier_OFF.Text = "Carrier OFF";
4089
+            this.button_Carrier_OFF.UseVisualStyleBackColor = true;
4090
+            this.button_Carrier_OFF.Click += new System.EventHandler(this.button_Carrier_OFF_Click);
4091
+            // 
4092
+            // button_Down
4093
+            // 
4094
+            this.button_Down.Location = new System.Drawing.Point(603, 502);
4095
+            this.button_Down.Name = "button_Down";
4096
+            this.button_Down.Size = new System.Drawing.Size(162, 23);
4097
+            this.button_Down.TabIndex = 108;
4098
+            this.button_Down.Text = "2 Step Down";
4099
+            this.button_Down.UseVisualStyleBackColor = true;
4100
+            this.button_Down.Click += new System.EventHandler(this.button_Down_Click);
4101
+            // 
4069 4102
             // JdasMbic
4070 4103
             // 
4071 4104
             this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 12F);
4072 4105
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
4106
+            this.AutoScroll = true;
4107
+            this.AutoSize = true;
4108
+            this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
4073 4109
             this.ClientSize = new System.Drawing.Size(1137, 994);
4110
+            this.Controls.Add(this.button_Carrier_OFF);
4111
+            this.Controls.Add(this.button_Carrier);
4112
+            this.Controls.Add(this.button_FactorySet);
4074 4113
             this.Controls.Add(this.button1);
4075
-            this.Controls.Add(this.groupBox20);
4076
-            this.Controls.Add(this.groupBox11);
4077 4114
             this.Controls.Add(this.pictureBox_ALC1_ON);
4078 4115
             this.Controls.Add(this.pictureBox_DL_Shutdown_OFF);
4079 4116
             this.Controls.Add(this.label37);
@@ -4123,7 +4160,10 @@
4123 4160
             this.Controls.Add(this.pictureBox_ALC_Alarm_OFF);
4124 4161
             this.Controls.Add(this.pictureBox_DLShutdown_Alarm_OFF);
4125 4162
             this.Controls.Add(this.pictureBox_ULShutdown_Alarm_OFF);
4163
+            this.DoubleBuffered = true;
4164
+            this.MaximizeBox = false;
4126 4165
             this.Name = "JdasMbic";
4166
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
4127 4167
             this.Text = "Jdas Mbic";
4128 4168
             this.Load += new System.EventHandler(this.JdasMbic_Load);
4129 4169
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
@@ -4277,11 +4317,9 @@
4277 4317
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_ULShutdown_Alarm_ON)).EndInit();
4278 4318
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox_ULShutdown_Alarm_OFF)).EndInit();
4279 4319
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL1)).EndInit();
4280
-            this.groupBox11.ResumeLayout(false);
4281 4320
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL4)).EndInit();
4282 4321
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL3)).EndInit();
4283 4322
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownUL2)).EndInit();
4284
-            this.groupBox20.ResumeLayout(false);
4285 4323
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL4)).EndInit();
4286 4324
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL3)).EndInit();
4287 4325
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ShutdownDL2)).EndInit();
@@ -4401,7 +4439,7 @@
4401 4439
         private System.Windows.Forms.RadioButton radioButton_ATT1;
4402 4440
         private System.Windows.Forms.Button button_TableDL;
4403 4441
         private System.Windows.Forms.GroupBox groupBox_Temp;
4404
-        private System.Windows.Forms.Button button_UL4;
4442
+        private System.Windows.Forms.Button button_FRBT_TimeSetting;
4405 4443
         private System.Windows.Forms.Button button_ExcelLoad;
4406 4444
         private System.Windows.Forms.Button button_ExcelSave;
4407 4445
         private System.Windows.Forms.SaveFileDialog saveFileDialog1;
@@ -4551,11 +4589,9 @@
4551 4589
         private System.Windows.Forms.NumericUpDown numericUpDown_ALC2;
4552 4590
         private System.Windows.Forms.Label label47;
4553 4591
         private System.Windows.Forms.NumericUpDown numericUpDown_ShutdownUL1;
4554
-        private System.Windows.Forms.GroupBox groupBox11;
4555 4592
         private System.Windows.Forms.NumericUpDown numericUpDown_ShutdownUL4;
4556 4593
         private System.Windows.Forms.NumericUpDown numericUpDown_ShutdownUL3;
4557 4594
         private System.Windows.Forms.NumericUpDown numericUpDown_ShutdownUL2;
4558
-        private System.Windows.Forms.GroupBox groupBox20;
4559 4595
         private System.Windows.Forms.NumericUpDown numericUpDown_ShutdownDL4;
4560 4596
         private System.Windows.Forms.NumericUpDown numericUpDown_ShutdownDL3;
4561 4597
         private System.Windows.Forms.NumericUpDown numericUpDown_ShutdownDL2;
@@ -4564,6 +4600,11 @@
4564 4600
         private System.Windows.Forms.ComboBox comboBox_BankSel;
4565 4601
         private System.Windows.Forms.Button button_TableAttribute_Default;
4566 4602
         private System.Windows.Forms.Button button1;
4603
+        private System.Windows.Forms.TextBox textBox_FRBT_TIME;
4604
+        private System.Windows.Forms.Button button_FactorySet;
4605
+        private System.Windows.Forms.Button button_Carrier;
4606
+        private System.Windows.Forms.Button button_Carrier_OFF;
4607
+        private System.Windows.Forms.Button button_Down;
4567 4608
     }
4568 4609
 }
4569 4610
 

+ 122 - 40
Jdas_Mbic/Main.cs

@@ -20,6 +20,7 @@ using System.Threading;
20 20
 using System.IO;
21 21
 using System.Windows.Forms.DataVisualization.Charting;
22 22
 using System.Text.RegularExpressions;
23
+using System.Diagnostics;
23 24
 
24 25
 namespace Jdas_Mbic
25 26
 {
@@ -70,13 +71,12 @@ namespace Jdas_Mbic
70 71
             InitializeComponent();
71 72
             
72 73
         }
74
+        DataTable table = new DataTable();
73 75
         private void JdasMbic_Load(object sender, EventArgs e)
74 76
         {
75 77
             serial.Serial_Main_Form_Get(this);
76 78
             ATT_TableLayoutSetting();
77 79
             serial.Serial_Initialize(ref comboBox_Port);
78
-            //ChartTable.Series[0].Points.DataBindY((DataView)dataGridView_TableSetting.DataSource, "offset");
79
-
80 80
 
81 81
         }
82 82
         
@@ -2413,51 +2413,49 @@ namespace Jdas_Mbic
2413 2413
                     break;
2414 2414
             }
2415 2415
         }
2416
-        private void TableChart_Create()
2417
-        {
2418
-            DataTable dt = new DataTable();
2419
-            /*string targetStr = dataGridView_TableSetting.Rows[0].Cells[0].Value.ToString();
2420
-            string text = targetStr;
2421
-            var match = Regex.Match(text, "-?\\d+");
2422
-            */
2423
-            ///정수형 변환
2424
-            // int rstInt = int.Parse(tempStr);
2416
+        private Thread cpuThread;
2417
+        //private double[] cpuArray = new double[64];
2425 2418
 
2426
-            //_body = Regex.Replace(dataGridView_TableSetting.Rows[0].Cells[0].Value.ToString(), @"[^0-9]", "");
2419
+        private void getPerformanceCounters()
2420
+        {
2421
+            var cpuPerfCounter = new PerformanceCounter("Processor Information", "% Processor Time", "_Total");
2427 2422
 
2428
-            //numericUpDown_TableRef.Value = Convert.ToDecimal(match.Value);
2429
-            //            dt.Columns.Add("Column1");
2430
-            //dt.Columns.Add("Column2");
2431
-            chart_Table.Series[0].Points.Clear();
2432
-            for (int i = 0; i < dataGridView_TableSetting.RowCount; i++)
2423
+            while (true)
2433 2424
             {
2434
-                try
2425
+                //cpuArray[cpuArray.Length - 1] = Math.Round(cpuPerfCounter.NextValue(), 0);
2426
+
2427
+                //Array.Copy(cpuArray, 1, cpuArray, 0, cpuArray.Length - 1);
2428
+
2429
+                if (chart_Table.IsHandleCreated)
2435 2430
                 {
2436
-                   /* targetStr = dataGridView_TableSetting.Rows[0].Cells[i].Value.ToString();
2437
-                    match = Regex.Match(text, "-?\\d+");*/
2438
-                    chart_Table.Series[0].Points.AddXY(i,dataGridView_TableSetting[1, i].Value/*match.Value*/);
2439
-                    Thread.Sleep(1);
2440
-                    //dt.Rows.Add(Convert.ToDouble(dataGridView_TableSetting[1, i].Value));
2441
-                    //chart_Table.Series[0].Val
2442
-                    // Tmplist.Add(Convert.ToDouble(dataGridView_TableSetting[1, i].Value));
2443
-                    //   chart_Table.Series[0].Points.Add();
2444
-                    //chart_Table.Invalidate();
2445
-                    //chart_Table.Rows[i][1]
2446
-                    //table.Rows[i][1] = Convert.ToDouble(dataGridView_TableSetting[1, i].Value);
2431
+                    this.Invoke((MethodInvoker)delegate { UpdateCpuChart(); });
2447 2432
                 }
2448
-                catch { }
2433
+                else
2434
+                {
2435
+                    //......
2436
+                }
2437
+
2438
+                Thread.Sleep(1000);
2449 2439
             }
2450
-           // chart_Table.DataSource = dt;
2451
-            chart_Table.Update();
2452
-            //chart_Table.Series[0].XValueMembers = "Column1";
2453
-            //chart_Table.Series[0].YValueMembers = "Column2";
2440
+        }
2441
+        private void UpdateCpuChart()
2442
+        {
2443
+            chart_Table.Series[0].Points.Clear();
2454 2444
 
2455
-            //chart_Table.DataBind();
2456
-            //chart_Table.Dispose(false);
2445
+            for (int i = 0; i < dataGridView_TableSetting.RowCount; ++i)
2446
+            {
2447
+                chart_Table.Series[0].Points.AddY(dataGridView_TableSetting[1, i].Value);
2448
+            }
2449
+        }
2457 2450
 
2451
+        private void TableChart_Create()
2452
+        {
2453
+            cpuThread = new Thread(new ThreadStart(this.getPerformanceCounters));
2454
+            cpuThread.IsBackground = true;
2455
+            cpuThread.Start();
2456
+        }
2458 2457
 
2459 2458
 
2460
-        }
2461 2459
         
2462 2460
         public void TableDataStatusSet(byte[] buf)
2463 2461
         {
@@ -2529,6 +2527,7 @@ namespace Jdas_Mbic
2529 2527
             
2530 2528
 
2531 2529
             TableChart_Create();
2530
+
2532 2531
             /*dataGridView_TableSetting[1, i].Value
2533 2532
             this.Invoke(new StringSend(Table_Text_Set), dataGridView_TableSetting, adcdata.ToString("N2"));*/
2534 2533
 
@@ -3254,8 +3253,11 @@ public byte[] MBIC_BootLoader_DataArray;
3254 3253
             UInt32 Crcret = 0;
3255 3254
             byte[] tempdata = new byte[1027];
3256 3255
             int i = 0;
3257
-            
3258
-            
3256
+            /*string dec = ;
3257
+            string hex = Convert.ToString(int.Parse(dec, 16).ToUpper();*/
3258
+            string hex = "24";
3259
+            string dec = Convert.ToInt32(hex, 10).ToString();
3260
+
3259 3261
 
3260 3262
             string MBIC_HeaderFileName = "jhfs-mbic-nrdas-v00.00." + textBox_Version.Text + ".mbc";
3261 3263
             //현재 사용자 바탕화면 경로
@@ -3301,7 +3303,7 @@ public byte[] MBIC_BootLoader_DataArray;
3301 3303
                 MBIC_Add_BootLoader_DataArray[10] = 0x00; //file type : CPU 0x00
3302 3304
                 MBIC_Add_BootLoader_DataArray[11] = 0x00;//version
3303 3305
                 MBIC_Add_BootLoader_DataArray[12] = 0x00;//version
3304
-                MBIC_Add_BootLoader_DataArray[13] = Convert.ToByte(textBox_Version.Text);//version
3306
+                MBIC_Add_BootLoader_DataArray[13] = Convert.ToByte(textBox_Version.Text,16);//version
3305 3307
 
3306 3308
                 tempchardata = MBIC_HeaderFileName.ToCharArray();
3307 3309
                 for (i = 14; i < 14 + tempchardata.Length + 12; i++) // Total 41byte Filename
@@ -3452,6 +3454,86 @@ public byte[] MBIC_BootLoader_DataArray;
3452 3454
             serial.Serial_DataSend(temp_buf, temp_buf.Length);
3453 3455
             ReqTimer_Cnt = 0;
3454 3456
         }
3457
+
3458
+        private void button_FRBT_TimeSetting_Click(object sender, EventArgs e)
3459
+        {
3460
+            string Time = textBox_FRBT_TIME.Text;
3461
+            string[] Timearray = Time.Split('-');
3462
+            int i = 0;
3463
+
3464
+            byte[] Timedata = new byte[6 + 4 + 3]; //Header CRC 4byte TYPE LENGTH 3byte
3465
+            Timedata[0] = 0xbe;
3466
+            Timedata[1] = (byte)Bluecell_BootProtocol.DATATYPE.Bluecell_TimeSetting;
3467
+            Timedata[2] = 0;
3468
+            Timedata[3] = (byte)(Timedata.Length - 4);
3469
+            for (i = 0; i < 6; i++)
3470
+                Timedata[4 + i] = Convert.ToByte(Timearray[i]);
3471
+
3472
+            UInt16 CRCRET = crc.CRC16_Generate(Timedata, Timedata[(int)Bluecell_ProtIndex_p.Bluecell_Length_L]);
3473
+            Timedata[4 + i++] = Convert.ToByte((CRCRET & 0xFF00) >> 8);
3474
+            Timedata[4 + i++] = Convert.ToByte(CRCRET & 0x00FF);
3475
+            serial.Serial_DataSend(Timedata, Timedata.Length);
3476
+
3477
+
3478
+        }
3479
+
3480
+        private void button_FactorySet_Click(object sender, EventArgs e)
3481
+        {
3482
+            byte[] tempdata = new byte[1 + 4 + 3]; //Header CRC 4byte TYPE LENGTH 3byte
3483
+            tempdata[0] = 0xbe;
3484
+            tempdata[1] = (byte)Bluecell_BootProtocol.DATATYPE.Bluecell_Factory_Set;
3485
+            tempdata[2] = 0;
3486
+            tempdata[3] = (byte)(tempdata.Length - 4);
3487
+            tempdata[5] = 1;
3488
+            UInt16 CRCRET = crc.CRC16_Generate(tempdata, tempdata[(int)Bluecell_ProtIndex_p.Bluecell_Length_L]);
3489
+            tempdata[6] = Convert.ToByte((CRCRET & 0xFF00) >> 8);
3490
+            tempdata[7] = Convert.ToByte(CRCRET & 0x00FF);
3491
+            serial.Serial_DataSend(tempdata, tempdata.Length);
3492
+
3493
+        }
3494
+
3495
+        private void button_Carrier_Click(object sender, EventArgs e)
3496
+        {
3497
+            byte[] tempdata = new byte[1 + 4 + 3]; //Header CRC 4byte TYPE LENGTH 3byte
3498
+            tempdata[0] = 0xbe;
3499
+            tempdata[1] = (byte)Bluecell_BootProtocol.DATATYPE.Bluecell_CarrierOnOff;
3500
+            tempdata[2] = 0;
3501
+            tempdata[3] = (byte)(tempdata.Length - 4);
3502
+            tempdata[5] = 1;
3503
+            UInt16 CRCRET = crc.CRC16_Generate(tempdata, tempdata[(int)Bluecell_ProtIndex_p.Bluecell_Length_L]);
3504
+            tempdata[6] = Convert.ToByte((CRCRET & 0xFF00) >> 8);
3505
+            tempdata[7] = Convert.ToByte(CRCRET & 0x00FF);
3506
+            serial.Serial_DataSend(tempdata, tempdata.Length);
3507
+        }
3508
+
3509
+        private void button_Carrier_OFF_Click(object sender, EventArgs e)
3510
+        {
3511
+            byte[] tempdata = new byte[1 + 4 + 3]; //Header CRC 4byte TYPE LENGTH 3byte
3512
+            tempdata[0] = 0xbe;
3513
+            tempdata[1] = (byte)Bluecell_BootProtocol.DATATYPE.Bluecell_CarrierOnOff;
3514
+            tempdata[2] = 0;
3515
+            tempdata[3] = (byte)(tempdata.Length - 4);
3516
+            tempdata[5] = 0;
3517
+            UInt16 CRCRET = crc.CRC16_Generate(tempdata, tempdata[(int)Bluecell_ProtIndex_p.Bluecell_Length_L]);
3518
+            tempdata[6] = Convert.ToByte((CRCRET & 0xFF00) >> 8);
3519
+            tempdata[7] = Convert.ToByte(CRCRET & 0x00FF);
3520
+            serial.Serial_DataSend(tempdata, tempdata.Length);
3521
+        }
3522
+
3523
+        private void button_Down_Click(object sender, EventArgs e)
3524
+        {
3525
+            object[] temp = new object[dataGridView_TableSetting.RowCount];
3526
+            for (int i = 0; i < dataGridView_TableSetting.RowCount; i++)
3527
+            {
3528
+                temp[i] =dataGridView_TableSetting[1, i].Value;
3529
+            }
3530
+            dataGridView_TableSetting[1, 0].Value = 0;
3531
+            dataGridView_TableSetting[1, 1].Value = 0;
3532
+            for (int i = 0; i < dataGridView_TableSetting.RowCount - 2; i++)
3533
+            {
3534
+                dataGridView_TableSetting[1, i + 2].Value = temp[i];
3535
+            }
3536
+        }
3455 3537
     }
3456 3538
     class AutoClosingMessageBox
3457 3539
     {

+ 0 - 6
Jdas_Mbic/Main.resx

@@ -1264,12 +1264,6 @@
1264 1264
   <metadata name="Column_Offset.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
1265 1265
     <value>True</value>
1266 1266
   </metadata>
1267
-  <metadata name="Column_DB.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
1268
-    <value>True</value>
1269
-  </metadata>
1270
-  <metadata name="Column_Offset.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
1271
-    <value>True</value>
1272
-  </metadata>
1273 1267
   <data name="pictureBox_UL_Shutdown_ON.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
1274 1268
     <value>
1275 1269
         iVBORw0KGgoAAAANSUhEUgAAACUAAAAkCAYAAAAOwvOmAAAABGdBTUEAALGPC/xhBQAACk5JREFUWEft

+ 1 - 5
Jdas_Mbic/Program.cs

@@ -16,11 +16,7 @@ namespace Jdas_Mbic
16 16
         {
17 17
             Application.EnableVisualStyles();
18 18
             Application.SetCompatibleTextRenderingDefault(false);
19
-            try
20
-            {
21
-                Application.Run(new JdasMbic());
22
-            }
23
-            catch { }
19
+            Application.Run(new JdasMbic());
24 20
         }
25 21
     }
26 22
 }

BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.pdb


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic0.6.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.csproj.GenerateResource.cache


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.pdb