예제 #1
0
        private void Find()
        {
            FindWindow findW = new FindWindow();

            findW.ShowDialog();
            if (findW.Founded)
            {
                string subStr = findW.itemName;
                ObservableCollection <IShellItem> foundedItems = new ObservableCollection <IShellItem>();
                IShellItem startDirectory = SelectedShell.InFolder;
                if (startDirectory != null)
                {
                    startDirectory.GetFoundedSubitems(subStr, foundedItems);
                }
                SelectedShell.InFolder = null;
                SelectedShell.Files    = foundedItems;
            }
        }