Esempio n. 1
0
 protected void OnFileBrowsed(FileBrowsedEventArgs e)
 {
     if (FileBrowsed != null)
     {
         FileBrowsed(this, e);
     }
 }
Esempio n. 2
0
        private void btnBrowse_Click(object sender, EventArgs e)
        {
            this.btnBrowse.CurrentTileIndex = 4;
            if (openFileDialog.ShowDialog() == DialogResult.OK)
            {
                FileBrowsedEventArgs fbe = new FileBrowsedEventArgs(openFileDialog.FileName);
                this.OnFileBrowsed(fbe);
                if (fbe.Media != null)
                {
                    this.CurrentMedia          = fbe.Media;
                    lblCurrentFile.Text        = fbe.Media.Name.ToProperCase();
                    this.CurrentMediaScrobbled = false;
                }

                if (this.IsPlaying)
                {
                    this.Stop();
                }

                this.LoadFile(openFileDialog.FileName, fbe.Media == null);
                this.btnBrowse.CurrentTileIndex = 4;
            }
        }