Explorar o código

SAVE 글자크기 UP / USB PORT DETECT시 PROGRAM KILL

YJ %!s(int64=6) %!d(string=hai) anos
pai
achega
7bcf884cf7
Modificáronse 2 ficheiros con 7 adicións e 4 borrados
  1. 6 3
      Basic_Terminal/Func/Serial.cs
  2. 1 1
      Basic_Terminal/Wnd/Main_Form.Designer.cs

+ 6 - 3
Basic_Terminal/Func/Serial.cs

@@ -196,10 +196,13 @@ namespace RF_TRIO_PLL_ZIG
196
                 main_form.Invoke(new BoolSet(main_form.TX_Light_ON));
196
                 main_form.Invoke(new BoolSet(main_form.TX_Light_ON));
197
                 main_form.TX_RX_Light = true;
197
                 main_form.TX_RX_Light = true;
198
             }
198
             }
199
-            catch { MessageBox.Show("Port Open Failed!!!"); }
200
-            
201
-
199
+            catch
200
+            {
201
+                System.Diagnostics.Process.GetCurrentProcess().Kill();
202
+                MessageBox.Show("Port Open Failed!!!");
203
+            }
202
         }
204
         }
205
+       
203
         public void FileDownloadClass_Set(object filedownload)
206
         public void FileDownloadClass_Set(object filedownload)
204
         {
207
         {
205
             this.fileDownload = (Update_Serial)filedownload;
208
             this.fileDownload = (Update_Serial)filedownload;

+ 1 - 1
Basic_Terminal/Wnd/Main_Form.Designer.cs

@@ -2403,7 +2403,7 @@
2403
             // 
2403
             // 
2404
             // button_Save
2404
             // button_Save
2405
             // 
2405
             // 
2406
-            this.button_Save.Font = new System.Drawing.Font("굴림", 15F, System.Drawing.FontStyle.Bold);
2406
+            this.button_Save.Font = new System.Drawing.Font("굴림", 30F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(20)));
2407
             this.button_Save.Location = new System.Drawing.Point(12, 306);
2407
             this.button_Save.Location = new System.Drawing.Point(12, 306);
2408
             this.button_Save.Name = "button_Save";
2408
             this.button_Save.Name = "button_Save";
2409
             this.button_Save.Size = new System.Drawing.Size(225, 87);
2409
             this.button_Save.Size = new System.Drawing.Size(225, 87);