Exemple #1
0
        //1.新增歌曲
        private void tsmiNewSong_Click(object sender, EventArgs e)
        {
            FrmEditSong newSongForm = new FrmEditSong();

            newSongForm.MdiParent = this;
            newSongForm.Show();
        }
Exemple #2
0
        private void tsmiChange_Click(object sender, EventArgs e)
        {
            if (dgvSongList.SelectedCells == null)
            {
                HintMessageBox.Information_hint("请选择歌曲");
                return;
            }
            FrmEditSong frmEditSong = new FrmEditSong();

            frmEditSong.song_id = Convert.ToInt32(dgvSongList.SelectedCells[0].Value);
            frmEditSong.ShowDialog();
            dv = new MyKTV_.DBHelper().GetDataView("select s_i.song_id,song_name,songtype_name,song_url,song_play_count from dbo.song_info s_i inner join dbo.song_type s_t on(s_i.songtype_id=s_t.songtype_id)");
        }
Exemple #3
0
        private void tsmiAddSong_Click(object sender, EventArgs e)
        {
            FrmEditSong frmEditSong = new FrmEditSong();

            frmEditSong.ShowDialog();//以模式对话框打开编辑歌曲信息菜单
        }