示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }