private void bntAut_Click(object sender, EventArgs e) { //添加明星 frmAuton frmAuAdd = new frmAuton(1, ""); frmAuAdd.Owner = this; frmAuAdd.ShowDialog(); }
private void bntAuUpdate_Click(object sender, EventArgs e) { //修改明星 if (strNameAuton != null) { frmAuton frmAuAdd = new frmAuton(2, strNameAuton); frmAuAdd.Owner = this; frmAuAdd.ShowDialog(); } else { MessageBox.Show("请选择要修改的内容!"); return; } }