1、using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Net; namespace stduenthelper { public partial class MPlayer { private WMPLib.WindowsMediaPlayer myPlayer =new WMPLib.WindowsMediaPlayer(); private string[] playLis
2、t = new string[1000];
private int numOfMusic = 0;
private static int currentPlay = 0;
///
3、 MPlayer(WMPLib.WindowsMediaPlayer mediaPlayer)
{
myPlayer = mediaPlayer;
playList = new string[1000];
numOfMusic = 0;
}
///
4、 get
{
return numOfMusic;
}
}
///
5、
}
}
///
6、/
7、 }
///
8、i + 1];
}
numOfMusic--;
}
///
9、
currentPlay = selectNum;
}
///
10、type) { /* */ switch (type) { case 0: currentPlay++; if (currentPlay > numOfMusic) return 0; else return currentPlay;
11、 case 1: currentPlay++; if (currentPlay > numOfMusic) return 1; else return currentPlay; case 2: return currentPlay; case 3: Random rdm = new Rand
12、om(unchecked((int)DateTime.Now.Ticks)); currentPlay = rdm.Next() % numOfMusic; if (currentPlay == 0) return numOfMusic; else return currentPlay; default: return 0; } } } }






