Beispiel #1
0
 protected Item(ItemFactory itemFactory, string path, string sPattern)
 {
     ItemFactory = itemFactory;
     PathName    = path;
     SPattern    = sPattern;
 }
        /// <summary>
        /// Button_Click_Refresh
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click_Refresh(object sender, RoutedEventArgs e)
        {
            var itemFactory = new ItemFactory(SelectedFilter);

            fileSystemTreeView.ItemsSource = Environment.GetLogicalDrives().Select(itemFactory.CreateItem);
        }