|
@@ -51,15 +51,15 @@ namespace Basic_Terminal
|
51
|
51
|
/***
|
52
|
52
|
*Data File open
|
53
|
53
|
***/
|
54
|
|
- public string ShowFileOpenDialog(object serial, object ofd)
|
|
54
|
+ public string ShowFileOpenDialog(ref Serial serial, object ofd)
|
55
|
55
|
{
|
56
|
56
|
byte[] tempdata = new byte[5];
|
57
|
57
|
this.ofd = (OpenFileDialog)ofd;
|
58
|
58
|
this.serial = (Serial)serial;
|
59
|
59
|
//파일오픈창 생성 및 설정
|
60
|
60
|
this.ofd.Title = "업데이터 파일 탐색기";
|
61
|
|
- this.ofd.FileName = "*.binary";
|
62
|
|
- this.ofd.Filter = "binary 파일 (*.binary) | *.binary; |bin 파일 (*.bin) | *.bin; | 모든 파일 (*.*) | *.*";
|
|
61
|
+ this.ofd.FileName = "*.bin";
|
|
62
|
+ this.ofd.Filter = "binary 파일 (*.binary,*.bin) | *.binary;, *.bin; | 모든 파일 (*.*) | *.*";
|
63
|
63
|
|
64
|
64
|
//파일 오픈창 로드
|
65
|
65
|
DialogResult dr = this.ofd.ShowDialog();
|
|
@@ -158,9 +158,11 @@ namespace Basic_Terminal
|
158
|
158
|
/*ownload_Bar.ShowDialog();*/
|
159
|
159
|
this.download_Bar.Invoke(new StringSend(this.download_Bar.Progressbar), "0 %");
|
160
|
160
|
//download_Bar.Progressbar("0 %");
|
161
|
|
-
|
|
161
|
+ this.download_Bar.Progressbar_gauge_zero();
|
162
|
162
|
this.download_Bar.FormClosed(this.download_Bar);
|
163
|
|
-
|
|
163
|
+ this.serial.debug_asciitohexConvert();
|
|
164
|
+ FirmSendingcnt = PreFirmSendingcnt = FirmCurrcnt = FirmTotalcnt = pretempupdateret = Data_Request_Val = 0;
|
|
165
|
+
|
164
|
166
|
/*Update_label.Text = "0%";
|
165
|
167
|
Update_label.Visible = false;
|
166
|
168
|
progressBar1.Visible = false;
|