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