public FileEvent(string fileName, string filePath, FileEventTypes eventType, DateTime timestamp, ObjectTypes objType) { this.FileName = fileName; this.FilePath = filePath; this.EventType = eventType; this.Timestamp = timestamp; this.ObjType = objType; string[] tmp = fileName.Split('.'); if (tmp.Length > 1) { this.Extension = tmp[tmp.Length - 1]; } this.Id = Guid.NewGuid(); this.HasBeenSavedToLog = false; }
/// <summary> /// Initializes a new instance of the <see cref="FileEventArgs"/> class, with the specified <paramref name="fileName"/> value and <paramref name="event"/>. /// </summary> /// <param name="fileName">A <see cref="String"/> containing the filename of associated to the event been raised.</param> /// <param name="event">A valuer of <see cref="FileEventTypes"/> indicating the type of action been performed on the <paramref name="fileName"/>.</param> public FileEventArgs(string fileName, FileEventTypes @event) : this() { this.FileName = fileName; this.Event = @event; }
public FileEventArgs(string fileName, FileEventTypes @event) : this() { this.FileName = fileName; this.Event = @event; }