FrmSex.cs
资源名称:KTV.rar [点击查看]
上传用户:fzwcsgshou
上传日期:2022-07-30
资源大小:28414k
文件大小:1k
源码类别:
行业应用
开发平台:
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 FrmSex : Form
- {
- public FrmSex()
- {
- InitializeComponent();
- }
- private void FrmSex_Load(object sender, EventArgs e)
- {
- }
- public void showXuanGe(string Sex)
- {
- DataSet ds = new DataSet();
- ds = KTVData.KTVDB.SelectGeShou("",Sex);
- if (ds.Tables[0].Rows.Count < 1)
- {
- MessageBox.Show("此信息暂无任何歌曲,请重新选择!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
- return;
- }
- FrmGeShouList FrmGeShouList1 = new FrmGeShouList();
- FrmGeShouList1.ds = ds;
- FrmGeShouList1.Show();
- this.Close();
- }
- private void pNan_Click(object sender, EventArgs e)
- {
- showXuanGe("男");
- }
- private void pNv_Click(object sender, EventArgs e)
- {
- showXuanGe("女");
- }
- private void pYueDui_Click(object sender, EventArgs e)
- {
- showXuanGe("乐队");
- }
- }
- }