Exemplo n.º 1
0
 private void TargetFilesTab_KeyDown(object sender, KeyEventArgs e)
 {
     if (Keyboard.IsKeyDown(Key.Enter))
     {
         foreach (string file in TargetFilesTab.SelectedItems)
         {
             Process.Start(TargetPath.Text + "\\" + file);
         }
     }
     else if ((Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.C)) && _selectedFilesToCopy.Count > 0)
     {
         Clipboard.SetFileDropList(_selectedFilesToCopy);
     }
     else if (Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.A))
     {
         TargetFilesTab.SelectAll();
     }
     else if (Keyboard.IsKeyDown(Key.LeftCtrl) && Keyboard.IsKeyDown(Key.D))
     {
         TargetFilesTab.UnselectAll();
     }
 }
Exemplo n.º 2
0
 private void ContextMenuTargetUnselectAll_Click(object sender, RoutedEventArgs e)
 {
     TargetFilesTab.UnselectAll();
 }