/// <summary> /// 新增规则配置 /// </summary> private void btnAdd_Click(object sender, EventArgs e) { GZPZFrm gzpzFrm = new GZPZFrm(); gzpzFrm.ShowDialog(); if(gzpzFrm.DialogResult==DialogResult.OK) { this.guiZeTableAdapter.Fill(this.settingDataSet3.GuiZe); } }
/// <summary> /// 新增规则配置 /// </summary> private void btnAdd_Click(object sender, EventArgs e) { GZPZFrm gzpzFrm = new GZPZFrm(); gzpzFrm.ShowDialog(); if (gzpzFrm.DialogResult == DialogResult.OK) { this.guiZeTableAdapter.Fill(this.settingDataSet3.GuiZe); } }
/// <summary> /// 修改规则配置 /// </summary> private void btnEdit_Click(object sender, EventArgs e) { int selectRow = (int)dataGridView1.SelectedRows[0].Cells[0].Value; if(selectRow>0) { GZPZFrm gzpzFrm = new GZPZFrm(); gzpzFrm.GZID = selectRow; gzpzFrm.ShowDialog(); if (gzpzFrm.DialogResult == DialogResult.OK) { this.guiZeTableAdapter.Fill(this.settingDataSet3.GuiZe); } } }
/// <summary> /// 修改规则配置 /// </summary> private void btnEdit_Click(object sender, EventArgs e) { int selectRow = (int)dataGridView1.SelectedRows[0].Cells[0].Value; if (selectRow > 0) { GZPZFrm gzpzFrm = new GZPZFrm(); gzpzFrm.GZID = selectRow; gzpzFrm.ShowDialog(); if (gzpzFrm.DialogResult == DialogResult.OK) { this.guiZeTableAdapter.Fill(this.settingDataSet3.GuiZe); } } }