Esempio n. 1
0
 private void Button_CheckList_UncheckAll(object sender, RoutedEventArgs e)
 {
     foreach (var t in Elements)
     {
         t.isSelected = false;
     }
     CheckedElements.Clear();
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }