private void tsmiAddUser_Click(object sender, EventArgs e) { frmEditSinger frmeditsinger = new frmEditSinger(); frmeditsinger.MdiParent = this; frmeditsinger.Show(); }
private void tsmiUpdate_Click(object sender, EventArgs e) { frmEditSinger frmeditsinger = new frmEditSinger(); frmeditsinger.iR = false; if (SearchIdOrUrl() == false) { return; } frmeditsinger.singerName = this.dgvInfo.SelectedRows[0].Cells[0].Value.ToString(); frmeditsinger.singerSex = this.dgvInfo.SelectedRows[0].Cells[2].Value.ToString(); frmeditsinger.singerTypeDisplay = this.dgvInfo.SelectedRows[0].Cells[1].Value.ToString(); frmeditsinger.singerInfo = this.dgvInfo.SelectedRows[0].Cells[3].Value.ToString(); frmeditsinger.singerLj = singUrl; frmeditsinger.singerLjsx = singUrl; frmeditsinger.singerPhotoUrl = singUrl; frmeditsinger.singerId = singId; frmeditsinger.singerType = singtypevalue; frmeditsinger.ShowDialog(); SearchSinger(); }