/// ------------------------------------------------------------------------------------ private void HandleConvertButtonClick(object sender, EventArgs e) { Analytics.Track("Convert to standard audio", new Dictionary <string, string> { { "fileExtension", Path.GetExtension(_file.PathToAnnotatedFile) } }); _buttonConvert.Enabled = true; var error = AudioUtils.ConvertToStandardPCM(_file.PathToAnnotatedFile, _file.GetSuggestedPathToStandardAudioFile(), this, AudioUtils.GetConvertingToStandardPcmAudioMsg()); if (error == null) { if (ComponentFileListRefreshAction != null) { ComponentFileListRefreshAction( _file.GetSuggestedPathToStandardAudioFile(), typeof(StartAnnotatingEditor)); } return; } ErrorReport.NotifyUserOfProblem(error, AudioUtils.GetConvertingToStandardPcmAudioErrorMsg(), _file.PathToAnnotatedFile); }