public bool Equals(FolderCreatedEventArgs e)
 {
     if ((object)e == null)
     {
         return(false);
     }
     return(Path == e.Path);
 }
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            FolderCreatedEventArgs e = obj as FolderCreatedEventArgs;

            if ((object)e == null)
            {
                return(false);                  //cannot be casted
            }
            return(this.Path == e.Path);
        }
Esempio n. 3
0
 protected virtual void OnFolderCreated(FolderCreatedEventArgs e)
 {
     FolderCreated?.Invoke(this, e);
 }
Esempio n. 4
0
 private void Sorter_FolderCreated(object sender, FolderCreatedEventArgs e)
 {
     Console.WriteLine("Created " + e.Path);
 }