static string OneSecondBeforeEnd(CurrentFile file)
        {
            var length = file.Length - 1;
              if (length < 0)
              {
            length = 0;
              }

              return length.ToString(CultureInfo.InvariantCulture);
        }
 public Params(CurrentFile file, ArchiveCurrentFile command)
 {
     File = file;
     Command = command;
 }
예제 #3
0
 static string TenPercentOfLength(CurrentFile file)
 {
     var tenPercent = file.Length / 10;
       return tenPercent.ToString(CultureInfo.InvariantCulture);
 }
 public Params(CurrentFile file, DeleteCurrentFile command)
 {
     File = file;
     Command = command;
 }