private void ListBox_MouseUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { var listBox = sender as ListBox; var item = listBox?.SelectedItem as NetDiskFileNodeViewModel; if (item == null) { return; } PART_TgBtnShowSubFolders.IsChecked = false; CurrentFolderChanged?.Invoke(this, item); }
private void Button_Click(object sender, RoutedEventArgs e) { CurrentFolderChanged?.Invoke(this, Folder); }