public bool Equals(FileChangedEventArgs e)
 {
     if ((object)e == null)
     {
         return(false);
     }
     return(base.Equals(e) &&
            PathA == e.PathA &&
            PathB == e.PathB);
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            FileChangedEventArgs e = obj as FileChangedEventArgs;

            if ((object)e == null)
            {
                return(false);                   //cannot be casted
            }
            return(this.PathA == e.PathA && this.PathB == e.PathB);
        }
Example #3
0
 protected virtual void OnFileRenamed(FileChangedEventArgs e)
 {
     FileRenamed?.Invoke(this, e);
 }
Example #4
0
 private void Sorter_FileRenamed(object sender, FileChangedEventArgs e)
 {
     Console.WriteLine("Renamed " + e.PathA + " -> " + e.PathB);
 }
Example #5
0
 void Sorter_FileUnpacked(object o, FileChangedEventArgs e)
 {
     Console.WriteLine("Unpacked " + e.PathA + " -> " + e.PathB);
 }