FrmClass.cs
资源名称:KTV.rar [点击查看]
上传用户:fzwcsgshou
上传日期:2022-07-30
资源大小:28414k
文件大小:2k
源码类别:
行业应用
开发平台:
Visual C++
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- namespace KTV
- {
- public partial class FrmClass : Form
- {
- public FrmClass()
- {
- InitializeComponent();
- }
- private void FrmClass_Load(object sender, EventArgs e)
- {
- }
- public void showXuanGe(string ClassName)
- {
- DataSet ds = new DataSet();
- ds = KTVData.KTVDB.SelectClassName(ClassName);
- if (ds.Tables[0].Rows.Count < 1)
- {
- MessageBox.Show("此类别暂无任何歌曲,请重新选择!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- return;
- }
- FrmXuanGe FrmXuanGe1 = new FrmXuanGe();
- FrmXuanGe1.ds = ds;
- FrmXuanGe1.Show();
- this.Close();
- }
- private void pictureBox1_Click(object sender, EventArgs e)
- {
- showXuanGe("流行歌曲");
- }
- private void pictureBox2_Click(object sender, EventArgs e)
- {
- showXuanGe("经典老歌");
- }
- private void pictureBox3_Click(object sender, EventArgs e)
- {
- showXuanGe("古典音乐");
- }
- private void pictureBox4_Click(object sender, EventArgs e)
- {
- showXuanGe("生日歌曲");
- }
- private void pictureBox5_Click(object sender, EventArgs e)
- {
- showXuanGe("影视金曲");
- }
- private void pictureBox6_Click(object sender, EventArgs e)
- {
- showXuanGe("儿童歌曲");
- }
- private void pictureBox7_Click(object sender, EventArgs e)
- {
- showXuanGe("世界名曲");
- }
- private void pictureBox8_Click(object sender, EventArgs e)
- {
- showXuanGe("其他歌曲");
- }
- }
- }