你的位置:首页 > 软件开发 > ASP.net > 精美KTV

精美KTV

发布时间:2016-02-01 16:00:20
转眼之间,已经到了2016年,即新的一年了!S1也结束了,收获的也不多 ,想想最后留给大家的就一个KTV项目了。 ...

转眼之间,已经到了2016年,即新的一年了!S1也结束了,收获的也不多 ,想想最后留给大家的就一个KTV项目了。

                                                     前台管理

主界面的运行效果:

精美KTV精美KTV

主要代码:

 1  2     private void MainForm_Load(object sender, EventArgs e) 3     { 4       // 加载时,运行播放窗体 5       FrmPlay playForm = new FrmPlay(); 6       playForm.Show(); 7 8       // 启动定时器 9       this.timer1.Start(); 10 11       // 读取资源路径12       DBHelper dbHelper = new DBHelper();13       get='_blank'>string sql = "select resource_path from resource_path where resource_type = 'singer_photo'";14       SqlCommand command = new SqlCommand(sql, dbHelper.Connection);15       16       // 读取歌手照片路径17       try18       {19         dbHelper.OpenConnection();20         KTVUtil.singerPhotoPath = command.ExecuteScalar().ToString();21       }22       catch (Exception ex)23       {24         MessageBox.Show("资源路径发生错误!", "错误", MessageBoxButtons.OK, MessageBoxIcon.Error);25       }26       finally27       {28         dbHelper.CloseConnection();29       }30 31       // 读取歌曲路径32       sql = "select resource_path from resource_path where resource_type = 'song'";33       command.CommandText = sql;34       try35       {36         dbHelper.OpenConnection();37         KTVUtil.songPath = command.ExecuteScalar().ToString();38       }39       catch (Exception ex)40       {41         MessageBox.Show("路径错误", MessageBoxButtons.OK, MessageBoxIcon.Error);42       }43       finally44       {45         dbHelper.CloseConnection();46       }47     }
1 /// <summary>2 /// 显示当前播放的歌曲名字3 /// </summary>4 public void ShowPlayingSongName()5 {6 this.lblPlayingSong.Text = PlayList.PlayingSongName();7 this.lblNextSong.Text = PlayList.NextSongName();8 }

原标题:精美KTV

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录