private void Button_CheckList_UncheckAll(object sender, RoutedEventArgs e) { foreach (var t in Elements) { t.isSelected = false; } CheckedElements.Clear(); }
private void Button_CancelSelection(object sender, RoutedEventArgs e) { for (int i = 0; i < Elements.Count; i++) { if (Elements[i].type == "file") { Elements[i].isSelected = false; } } CheckedElements.Clear(); ElementList.ItemsSource = null; ElementList.ItemsSource = Elements; }
private void Button_Rename(object sender, RoutedEventArgs e) { if ((bool)ExtensionChanging.IsChecked) { file.rename(NewName.Text, Extension.Text, CheckedElements); } else { file.rename(NewName.Text, CheckedElements); } CheckedElements.Clear(); SetSource(); NewName.Text = ""; Extension.Text = ""; ExtensionChanging.IsChecked = false; }