private void test(object sender, _WMPOCXEvents_PositionChangeEvent e) { // if (axWindowsMediaPlayer1.playState == WMPLib.WMPPlayState.wmppsPlaying) // axWindowsMediaPlayer1.Ctlcontrols.currentPosition = trackBar1.Value; //UpdateStatusBarTime(); }
void WindowsMediaPlayer部品_PositionChange(object sender, _WMPOCXEvents_PositionChangeEvent e) { if (再生位置が変更された != null) { 再生位置が変更された(this, new 再生位置イベント情報(e)); } }
public virtual void PositionChange(double oldPosition, double newPosition) { _WMPOCXEvents_PositionChangeEvent positionchangeEvent = new _WMPOCXEvents_PositionChangeEvent(oldPosition, newPosition); this.parent.RaiseOnPositionChange(this.parent, positionchangeEvent); }
internal void RaiseOnPositionChange(object sender, _WMPOCXEvents_PositionChangeEvent e) { if ((this.PositionChange != null)) { this.PositionChange(sender, e); } }
private void wplayer_PositionChange(object sender, _WMPOCXEvents_PositionChangeEvent e) { }
private void wmp_PositionChange(object sender, _WMPOCXEvents_PositionChangeEvent e) { textBox1.Text = e.newPosition.ToString(); }
public 再生位置イベント情報(_WMPOCXEvents_PositionChangeEvent e) { oldPosition = e.oldPosition; newPosition = e.newPosition; }
private void MediaPlayer_PositionChange(object sender, _WMPOCXEvents_PositionChangeEvent e) { Console.WriteLine("Position changed."); newPosition = e.newPosition; UpdatePlaylist(true); }