Exemplo n.º 1
0
 void WindowsMediaPlayer部品_CurrentItemChange(object sender, _WMPOCXEvents_CurrentItemChangeEvent e)
 {
     if (現在メディアが変更された != null)
     {
         media = new メディア情報(e.pdispMedia as IWMPMedia);
         現在メディアが変更された(this, EventArgs.Empty);
     }
 }
Exemplo n.º 2
0
 private void WindowsMediaPlayer_CurrentItemChange(object sender, _WMPOCXEvents_CurrentItemChangeEvent e)
 {
     txtTitel.BackColor      = Color.White;
     txtArtiest.BackColor    = Color.White;
     txtAlbumTitel.BackColor = Color.White;
     txtGenre.BackColor      = Color.White;
     timerPlaysong.Start();
 }
Exemplo n.º 3
0
 internal void RaiseOnCurrentItemChange(object sender, _WMPOCXEvents_CurrentItemChangeEvent e)
 {
     if ((this.CurrentItemChange != null)) {
         this.CurrentItemChange(sender, e);
     }
 }
Exemplo n.º 4
0
 public virtual void CurrentItemChange(object pdispMedia)
 {
     _WMPOCXEvents_CurrentItemChangeEvent currentitemchangeEvent = new _WMPOCXEvents_CurrentItemChangeEvent(pdispMedia);
     this.parent.RaiseOnCurrentItemChange(this.parent, currentitemchangeEvent);
 }
Exemplo n.º 5
0
 private void player_CurrentItemChange(object sender, _WMPOCXEvents_CurrentItemChangeEvent e)
 {
 }
Exemplo n.º 6
0
 private void axWindowsMediaPlayer1_CurrentItemChange(object sender, _WMPOCXEvents_CurrentItemChangeEvent e)
 {
     musicNameLabel.Text = "Music: " + axWindowsMediaPlayer1.currentMedia.name;
 }