private void btnNew_Click(object sender, EventArgs e) { BidEvalScoringPointForm frm = new BidEvalScoringPointForm(this.gpTenderEvalEleService, this.projectId, this.sectionId, null); frm.Text = "新建评分点"; if (frm.ShowDialog(this) == DialogResult.OK) { this.LoadData(); } frm.Dispose(); }
private void btnEdit_Click(object sender, EventArgs e) { if (this.grdData.CurrentRow != null) { gpTenderEvalEleWebDO obj = this.grdData.CurrentRow.Tag as gpTenderEvalEleWebDO; BidEvalScoringPointForm frm = new BidEvalScoringPointForm(this.gpTenderEvalEleService, obj.gtpId, obj.gsId, obj); frm.Text = "编辑评分点"; if (frm.ShowDialog(this) == DialogResult.OK) { this.LoadData(); } frm.Dispose(); } else { MetroMessageBox.Show(this, "请选择要编辑的评分点!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }