Пример #1
0
 public DirectoryBrowser()
 {
     try
     {
         m_CurrentDir = null;
         m_curSelection = new Selection();
         m_Searcher = new FileHatchery.Algorithm.StupidSearcher();
         DirectoryChanged += delegate(object obj, EventArgs e)
         {
             m_curSelection.clear();
         };
     }
     catch (Exception EE)
     {
         MessageBox.Show(EE.Message);
     }
 }
Пример #2
0
 public DirectoryBrowser()
 {
     try
     {
         m_CurrentDir = null;
         m_curSelection = new Selection();
         m_Searcher = new FileHatchery.Algorithm.StupidSearcher();
         onChangeDirectory += delegate(object obj, EventArgs e)
         {
             m_curSelection.clear();
         };
         onChangeDirectory += delegate(object obj, EventArgs e)
         {
             List<string> list = new List<string>();
             foreach(IBrowserItem item in m_ItemList)
             {
                 list.Add(item.showName);
             }
         };
     }
     catch (Exception EE)
     {
         MessageBox.Show(EE.Message);
     }
 }