private void LoadAudioPlayer() { if (MainWindow.VM == null) { return; } AudioPlayer = new NAudioPlayer(MainWindow.VM); }
private void MenuItem_Loaded(object sender, RoutedEventArgs e) { MyPlayer = new NAudioPlayer(); MyPlayer.AudioFilePath = ToolTip.ToString(); }