Пример #1
0
        //1.新增歌手
        private void tsmiNewSinger_Click(object sender, EventArgs e)
        {
            FrmEditSinger newSingerForm = new FrmEditSinger();

            newSingerForm.MdiParent = this;
            newSingerForm.Show();
        }
Пример #2
0
        private void tsmiAddsinger_Click(object sender, EventArgs e)
        {
            FrmEditSinger frmEditSinger = new FrmEditSinger();

            frmEditSinger.MdiParent = this; //设置为子窗体
            frmEditSinger.Show();           //打开窗体
        }
Пример #3
0
        private void tsmiChange_Click(object sender, EventArgs e)
        {
            //获取选中歌手的主键
            if (dgvSingerList.SelectedCells[0] == null)
            {
                HintMessageBox.Warning_hint("请选择歌手!!");
                return;
            }
            FrmEditSinger frmEditSinger = new FrmEditSinger();

            frmEditSinger.singer_id = Convert.ToInt32(dgvSingerList.SelectedCells[0].Value);
            frmEditSinger.ShowDialog();
            GetDataView();//刷新数据
        }