这篇文章主要用C#语言编写的KTV点歌系统,需要的朋友可以参考下
下面通过图文并茂的方式给大家分享C#实现KTV点歌系统。


- public enum SongPlayState {
- //未播放,播放,重播,切歌 unplayed, played, again, cut
- } public class Song
- { public string SongName { get; set; }//歌曲名称
- public string SongURL { get; set; }//歌曲路径 public SongPlayState playState = SongPlayState.unplayed;//默认未播放
- internal SongPlayState PlayState { get; set; } //状态为已播
- public void SetSongPlayed() {
- this.PlayState = SongPlayState.played; }
- //重唱 public void SetPlayAgain()
- { this.playState = SongPlayState.again;
- } //切歌
- public void SetSongCut() {
- this.playState = SongPlayState.cut; }
PlayList类中实现切歌 重唱 下一首 等.....
- public class PlayList {
- //定义一个长度为、 的歌曲数组,默认存储 首歌曲 public static Song[] SongList = new Song[ ];










