コード例 #1
0
 public void ExecutePostUpdateAction(Schema.File updatedFile, string localFilePath)
 {
     if ("ShellExecute".Equals(updatedFile.Action, StringComparison.InvariantCultureIgnoreCase) &&
         System.IO.File.Exists(localFilePath))
     {
         Process.Start(localFilePath);
     }
 }
コード例 #2
0
ファイル: ModuleUpdate.cs プロジェクト: aschweiz/tangra3
 protected override void OnFileUpdated(Schema.File file, string localFilePath)
 {
     if (!string.IsNullOrEmpty(this.m_Created))
     {
         // Set the file time. All updates files will get the date & time of the check file, which is fine!
         DateTime utcModifiedTime = DateTime.Parse(m_Created, CultureInfo.InvariantCulture);
         System.IO.File.SetLastWriteTimeUtc(localFilePath, utcModifiedTime);
     }
 }
コード例 #3
0
 protected virtual void OnFileUpdated(Schema.File file, string localFileName)
 {
 }