Пример #1
0
 private void tsmxinzhenggequ_Click(object sender, EventArgs e)
 {
     if (fes==null)
     {
         fes = new FrmEditSong();
         fes.MdiParent = this;
     }
     else
     {
         if (fes.IsDisposed||(!fes.IsHandleCreated))
         {
             fes = new FrmEditSong();
             fes.MdiParent = this;
         }
     }
     if (fes.Visible)
     {
         fes.Focus();
     }
     else
     {
         fes.Show();
     }
 }
Пример #2
0
 private void xiugai()
 {
     if (dvgxiangxixinxi.SelectedRows==null)
     {
        
     }
     if (dvgxiangxixinxi.SelectedRows.Count<1)
     {
         return;
     } 
     FrmEditSong ii = new FrmEditSong();
     ii.fsl = this;
     ii.IsEdit = true;
     ii.btbaocun.Text = "修改";
     ii.Text = "修改歌曲信息";
     ii.SongName = dvgxiangxixinxi.SelectedRows[0].Cells["song_name"].Value.ToString();
     ii.SongAB = dvgxiangxixinxi.SelectedRows[0].Cells["song_ab"].Value.ToString();
     ii.SongType = dvgxiangxixinxi.SelectedRows[0].Cells["songtype_name"].Value.ToString();
     ii.SingerName = dvgxiangxixinxi.SelectedRows[0].Cells["dgv_cln_SingerName"].Value.ToString();
     ii.SongUrl = dvgxiangxixinxi.SelectedRows[0].Cells["dgv_cln_songUrl"].Value.ToString();
     ii.SongID = dvgxiangxixinxi.SelectedRows[0].Cells["dgv_cln_songId"].Value.ToString();
     ii.Show();
 }