private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { seriesAdd queryForm = new seriesAdd(); queryForm.type_code = ""; queryForm.runmode = "增加"; queryForm.StartPosition = FormStartPosition.CenterParent; queryForm.ShowDialog(); if (queryForm.DialogResult != DialogResult.Cancel) { this.ly_inma0010_seriesTableAdapter.Fill(this.lYMaterialMange.ly_inma0010_series); } }
private void toolStripButton1_Click(object sender, EventArgs e) { if (null == ly_inma0010DataGridView.CurrentRow) { return; } string s = this.ly_inma0010DataGridView.CurrentRow.Cells["编码"].Value.ToString(); seriesAdd queryForm = new seriesAdd(); queryForm.runmode = "修改"; queryForm.type_code = s; queryForm.StartPosition = FormStartPosition.CenterParent; queryForm.ShowDialog(); if (queryForm.DialogResult != DialogResult.Cancel) { this.ly_inma0010_seriesTableAdapter.Fill(this.lYMaterialMange.ly_inma0010_series); } }