예제 #1
0
 bool IncludeItem(ShellItem item)
 {
     if (FilterItem != null)
     {
         FilterItemEventArgs e = new FilterItemEventArgs(item);
         FilterItem(this, e);
         return(e.Include);
     }
     else
     {
         return(true);
     }
 }
예제 #2
0
 internal bool IncludeItem(IntPtr pidl)
 {
     if (FilterItem != null)
     {
         FilterItemEventArgs e = new FilterItemEventArgs(
             new ShellItem(m_CurrentFolder, pidl));
         FilterItem(this, e);
         return(e.Include);
     }
     else
     {
         return(true);
     }
 }