Example #1
0
 public Player(CallbackMethodDelegate callbackPlay)
 {
     this.callbackPlay = callbackPlay;
     player = new WMPLib.WindowsMediaPlayer();
     player.PlayStateChange += new WMPLib._WMPOCXEvents_PlayStateChangeEventHandler(Player_PlayStateChange);
     Volume(30);
 }
Example #2
0
 public void PushBack(string remotePath, string localPath, CallbackMethodDelegate callbackMethod)
 {
     awaitQueue.Enqueue(new DownloadFileInfo(remotePath, localPath, callbackMethod));
 }
Example #3
0
 public DownloadFileInfo(string remotePath, string localPath, CallbackMethodDelegate callbackMethod)
 {
     this.remotePath = remotePath;
     this.localPath = localPath;
     this.callbackMethod = callbackMethod;
 }