private void toolStripButton_Add_Click(object sender, EventArgs e) { FrmUpSet add = new FrmUpSet(); if (add.ShowDialog() == System.Windows.Forms.DialogResult.OK) { LoadUpgrade(); } }
private void toolStripButton_Detail_Click(object sender, EventArgs e) { if (dataGridView_Rate.CurrentRow == null) { Prompt.Warning("未选择记录"); return; } FrmUpSet modify = new FrmUpSet(); modify.FrmMode = FormMode.view; modify.UPID = dataGridView_Rate.CurrentRow.Cells["ColUpID"].FormattedValue.ToString(); modify.ShowDialog(); }
private void toolStripButton_Modify_Click(object sender, EventArgs e) { if (dataGridView_Rate.CurrentRow == null) { Prompt.Warning("未选择记录"); return; } FrmUpSet modify = new FrmUpSet(); modify.FrmMode = FormMode.modify; modify.UPID = dataGridView_Rate.CurrentRow.Cells["ColUpID"].FormattedValue.ToString(); if (modify.ShowDialog() == System.Windows.Forms.DialogResult.OK) { LoadUpgrade(); } }