//1.新增歌曲 private void tsmiNewSong_Click(object sender, EventArgs e) { FrmEditSong newSongForm = new FrmEditSong(); newSongForm.MdiParent = this; newSongForm.Show(); }
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)"); }
private void tsmiAddSong_Click(object sender, EventArgs e) { FrmEditSong frmEditSong = new FrmEditSong(); frmEditSong.ShowDialog();//以模式对话框打开编辑歌曲信息菜单 }