Esempio n. 1
0
 private void selectExtraFile(string file)
 {
     FileSize = FileSize.Of2(file) ?? FileSize.Empty;
     size.Text = FileSize.ToString();
     name.Text = System.IO.Path.GetFileName(file);
     raiseEvent();
 }
Esempio n. 2
0
        private void audio1Bitrate_ValueChanged(object sender, EventArgs e)
        {
            if (length <= 0)
                return;

            if (updating)
                return;

            updating = true;

            int bitrate = (int)audio1Bitrate.Value;
            if (bitrate > 0 && audio1Type.SelectedIndex == -1)
                audio1Type.SelectedItem = AudioType.VBRMP3;
            double bytesPerSecond = (double)bitrate * 1000.0 / 8.0;
            FileSize f = new FileSize((ulong)(length * bytesPerSecond));
            //size.CertainValue = f;
            size.Text = f.ToString();
            raiseEvent();
            updating = false;
        }