private void toolStripMenuItem_WPSSequenceRowModify_Click(object sender, EventArgs e) { Form_WPSWeldingSequenceUpdate myForm = new Form_WPSWeldingSequenceUpdate(); myForm.myClass_WPSWeldingSequence = new Class_WPSWeldingSequence((int)this.dataGridView_WPSWeldingSequence.CurrentRow.Cells["WPSSequenceID"].Value); myForm.bool_Add = false; if (myForm.ShowDialog() == DialogResult.OK) { this.RefreshData(true); } }
private void WPSSequenceAdd() { if (this.myEventArgs_WPS == null || string.IsNullOrEmpty(this.myEventArgs_WPS.str_WPSID)) { MessageBox.Show("请先选择焊接工艺!"); return; } Form_WPSWeldingSequenceUpdate myForm = new Form_WPSWeldingSequenceUpdate(); myForm.myClass_WPSWeldingSequence = new Class_WPSWeldingSequence(); myForm.myClass_WPSWeldingSequence.WPSID = this.myEventArgs_WPS.str_WPSID; myForm.bool_Add = true; if (myForm.ShowDialog() == DialogResult.OK) { this.RefreshData(true); } }