private void btnAdd_Click(object sender, EventArgs e) { frmPopup2020702 frm = new frmPopup2020702(GetRowObject()); frm.ShowDialog(); this.Close(); }
/// <summary> /// 编辑 /// </summary> public override void Edit() { if (this.gvQnRecord.SelectedRowsCount > 0) { EntityQnRecord vo = this.gvQnRecord.GetRow(this.gvQnRecord.GetSelectedRows()[0]) as EntityQnRecord; frmPopup2020702 frm = new frmPopup2020702(vo); frm.ShowDialog(); if (frm.IsRequireRefresh) { this.RefreshData(); } } else { DialogBox.Msg("请选择要编辑的记录."); } }