Example #1
0
        private void btnVox2Mp3_Click(object sender, EventArgs e)
        {
            string voxFile = tbVox.Text;

            if (voxFile == string.Empty)
            {
                MessageBox.Show("Please, select file for converting");
                return;
            }
            string mp3File = Path.ChangeExtension(voxFile, ".mp3");

            Vox.Vox2Mp3(voxFile, mp3File, (int)cbSamplesPerSec.SelectedValue);
            MessageBox.Show(string.Format("The result is stored in the file '{0}'. Choose next file for the converting.", mp3File), "The conversion was executed successfully");
            OpenContainingFolder(mp3File);
        }