Beispiel #1
0
 private void lviSaveFile_Click(object sender, MouseButtonEventArgs e)
 {
     if (e.LeftButton == MouseButtonState.Pressed)
     {
         TxtEditor.SaveFile();
     }
 }
Beispiel #2
0
 private void SaveFile_KeyDown(object sender, KeyEventArgs e)
 {
     if (Keyboard.Modifiers == ModifierKeys.Control &&
         e.Key == Key.S)
     {
         TxtEditor.SaveFile();
     }
 }