拼音点歌

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










