瀏覽代碼

Drive Logger 매정시에 파일 삭제 기능 수정.

unque781 5 年之前
父節點
當前提交
de24995be3
共有 3 個文件被更改,包括 8 次插入1 次删除
  1. 二進制
      Dev/OHV/Assambly/GSG.NET.dll
  2. 二進制
      Dev/OHV/Assambly/GSG.NET.pdb
  3. 8 1
      Dev/OHVDriveLogger/OHVDriveLogger/OHVDriveLogger/FormMain.cs

二進制
Dev/OHV/Assambly/GSG.NET.dll


二進制
Dev/OHV/Assambly/GSG.NET.pdb


+ 8 - 1
Dev/OHVDriveLogger/OHVDriveLogger/OHVDriveLogger/FormMain.cs

@@ -39,7 +39,8 @@ namespace OHVDriveLogger
             this.Load += FormMain_Load;
             this.FormClosing += FormMain_FormClosing;
 
-            MidnightNotifier.DayChanged += MidnightNotifier_DayChanged;
+            //MidnightNotifier.DayChanged += MidnightNotifier_DayChanged;
+            FixTimeNotifier.HourChanged += FixTimeNotifier_HourChanged;
 
             this.vehicleID = ConfigurationManager.AppSettings["VehicleID"];
             this.UploadIP = ConfigurationManager.AppSettings["FTPUploadIP"];
@@ -50,6 +51,12 @@ namespace OHVDriveLogger
             FTPLogger.Instance.PLCAddress = this.PLCAddress;
         }
 
+        private void FixTimeNotifier_HourChanged( object sender, EventArgs e )
+        {
+            logger.I( "FixTimer Event Occur" );
+            Task.Run( () => { DeleteNoBackupFiles( @"c:\LOG\OHV\DriveLogger\", 2 ); } );
+        }
+
         private void MidnightNotifier_DayChanged( object sender, EventArgs e )
         {
             logger.I( "자정 Event Occur" );