|
@@ -16,6 +16,7 @@ namespace Basic_Terminal
|
16
|
16
|
private Debug Debug = new Debug(); // Teminal Text Wnd Open
|
17
|
17
|
public string Serial_Name { get => serialPort.PortName; set => serialPort.PortName = value;}
|
18
|
18
|
Data_Handler data_Handler = new Data_Handler();
|
|
19
|
+ FileDownload fileDownload;
|
19
|
20
|
public void Serial_Initialize(ref ComboBox cb_port)
|
20
|
21
|
{
|
21
|
22
|
|
|
@@ -71,7 +72,7 @@ namespace Basic_Terminal
|
71
|
72
|
else
|
72
|
73
|
Debug.Invoke(new StringSend(Debug.Data_Recv_Str), str2hex(data,true));
|
73
|
74
|
|
74
|
|
- data_Handler.Recv_dataCheck(str2bytes(str2hex(data,false)));
|
|
75
|
+ data_Handler.Recv_dataCheck(this.fileDownload, str2bytes(str2hex(data,false)));
|
75
|
76
|
}
|
76
|
77
|
public Boolean Serial_PortOpen(ref Button Btn_Portonoff)
|
77
|
78
|
{
|
|
@@ -125,5 +126,9 @@ namespace Basic_Terminal
|
125
|
126
|
try { serialPort.Write(buffer, 0, count); }
|
126
|
127
|
catch { MessageBox.Show("Port Open Failed!!!"); }
|
127
|
128
|
}
|
|
129
|
+ public void FileDownloadClass_Get(object filedownload)
|
|
130
|
+ {
|
|
131
|
+ this.fileDownload = (FileDownload)filedownload;
|
|
132
|
+ }
|
128
|
133
|
}
|
129
|
134
|
}
|