protected virtual void OnPlayFile(PlayFileEventArgs e) { if (PlayFile != null) { PlayFile(this, e); } }
void mplayer_PlayFile(Object sender, PlayFileEventArgs e) { Linha_tempo.Maximum = (int)(mplayer.AudioLength / 1000); timer.Enabled = true; }
protected virtual void OnPlayFile(PlayFileEventArgs pea) { if (PlayFile != null) PlayFile(this, pea); }
void mplayer_PlayFile(Object sender, PlayFileEventArgs e) { trackBar1.Maximum = (int)(mplayer.AudioLength / 1000); this.Text = "Playing " + mplayer.FileName; timer1.Enabled = true; }