private void FileListBox_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { var entry = FileListBox.SelectedItem as Entry; if (entry != null && entry.isdir == 1) { _his.Push(entry); ProManager.Files = baidu1.List(entry); } }
private List <Entry> ListEntries(Entry parent) { lock (_lastEntries) { if (parent != _lastListEntry) { _lastListEntry = parent; _lastEntries = baidu1.List(parent); } return(_lastEntries); } }
//public event PropertyChangedEventHandler PropertyChanged; private void Button_Click(object sender, RoutedEventArgs e) { baidu1 = new Baidu1(UserName.Text, Password.Text, Convert.ToInt32(ThreadCount.Text)); _his.Push(null); ProManager.Files = baidu1.List(null); }