c#实现KTV点歌系统

2019-12-26 13:10:24王旭
  • {  PlayList.PlayAgain(); 
  • }  private void tsSingerYidian_Click(object sender, EventArgs e) 
  • {  FrmPlayList frm = new FrmPlayList(); 
  • frm.Show();  } 

    拼音点歌

    c#实现KTV点歌系统

     

     
    1. public FrmMain frmMain;  [DllImportAttribute("user .dll")] 
    2. private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags);  DBHelp db = new DBHelp(); 
    3. string connectionStr = "server=.;database=MyKTV;uid=sa";  private void FrmPinYin_Load(object sender, EventArgs e) 
    4. {  AnimateWindow(this.Handle, , FrmMain.AW_SLIDE + FrmMain.AW_VER_POSITIVE); 
    5. SqlConnection con = new SqlConnection(connectionStr);  con.Open(); 
    6. db.connection();   string sqlsongpath = "select resource_path from resource_path where resource_id= "; 
    7. SqlCommand cmd = new SqlCommand(sqlsongpath, con);  KtvUnit.SongPath = cmd.ExecuteScalar().ToString(); 
    8. }  private void btnSearch_Click(object sender, EventArgs e) 
    9. {  string PinYin = this.txtPinYin.Text; 
    10. //判断是否是中文 还是拼音  if (!Regex.IsMatch(this.txtPinYin.Text, @"^[u e -u fa ]+$"))