private static string GetFilename(LogID logID) { if (_nextSizeCheck == null) { InitDictionary(); } var filepath = Path.Combine(_logDir, logID.ToString() + ".log"); if (DateTime.Now > _nextSizeCheck[logID] && File.Exists(filepath)) { if (new FileInfo(filepath).Length > MaxLogSizeMB * 1024 * 1024) { File.Delete(filepath); } _nextSizeCheck[logID] = DateTime.Now.AddMinutes(1); } return(filepath); }
//ItemLotReceiptWindow="Y" LotIdentifier="E" ItemUM="KG" InventoryOffsetMasterAccountNumber="0800-000-143110" Reason="P" AdjustQuantity="5.700" ActionCode="+" DocumentNumber="0002314" public override string ToString() { return(LogID.ToString()); }