private void hook_KeyPressed(object sender, KeyPressedEventArgs e) { var keys = e.Key; switch (keys) { case (Keys.D1): OpenFileDialog(); break; case (Keys.D2): if (_applicationManager.GetStatus() != PlaybackStatus.Playing) { _applicationManager.Play(); timer_track.Start(); } else { _applicationManager.Pause(); } break; case (Keys.D3): _applicationManager.Stop(); SetTimeLabel(); timer_track.Stop(); break; case (Keys.D4): _applicationManager.Rewind(); break; case (Keys.D5): if (_applicationManager.GetStatus() == PlaybackStatus.Stopped) { SetTimeLabel(); } _applicationManager.Forward(); break; case (Keys.D6): SetVolumeLabel(-10); _applicationManager.VolumeUp(); break; case (Keys.D7): SetVolumeLabel(10); _applicationManager.VolumeDown(); break; case (Keys.D8): if (reporter.Equals(Empty)) { ContentWriter.WriteQuote( Internal.Resources.SettingsResources.ResourceManager.GetString("reporter_quote")); } else { ContentWriter.WriteQuote(reporter); } break; case (Keys.D9): if (interviewed.Equals(Empty)) { ContentWriter.WriteQuote( Internal.Resources.SettingsResources.ResourceManager.GetString("interviewed_quote")); } else { ContentWriter.WriteQuote(interviewed); } break; } }