private void toolStripMenuItem_WPSGasAndWeldingFluxRowDelete_Click(object sender, EventArgs e) { if (Class_WPSGasAndWeldingFlux.ExistAndCanDeleteAndDelete((int)this.dataGridView_WPSGasAndWeldingFlux.CurrentRow.Cells["WPSGasAndWeldingFluxID"].Value, Enum_zwjKindofUpdate.CanDelete)) { if (MessageBox.Show("确认删除吗?", "确认窗口", MessageBoxButtons.OKCancel) == DialogResult.OK) { Class_WPSGasAndWeldingFlux.ExistAndCanDeleteAndDelete((int)this.dataGridView_WPSGasAndWeldingFlux.CurrentRow.Cells["WPSGasAndWeldingFluxID"].Value, Enum_zwjKindofUpdate.Delete); this.RefreshData(false); } } }
public void InitControl(Class_WPSGasAndWeldingFlux myClass_WPSGasAndWeldingFlux, bool bool_Add) { this.myClass_WPSGasAndWeldingFlux = myClass_WPSGasAndWeldingFlux; this.textBox_WPSID.Text = myClass_WPSGasAndWeldingFlux.WPSID; if (bool_Add == false) { this.textBox_WPSGasAndWeldingFluxID.Text = string.Format("{0}", myClass_WPSGasAndWeldingFlux.WPSGasAndWeldingFluxID); this.textBox_WPSGasAndWeldingFluxRemark.Text = myClass_WPSGasAndWeldingFlux.WPSGasAndWeldingFluxRemark; Class_GasAndWeldingFlux myClass_GasAndWeldingFlux = new Class_GasAndWeldingFlux(myClass_WPSGasAndWeldingFlux.WPSGasAndWeldingFlux); this.textBox_WPSGasAndWeldingFluxGroup.Text = myClass_GasAndWeldingFlux.GasAndWeldingFluxGroup; this.textBox_WPSGasAndWeldingFluxParameter.Text = myClass_WPSGasAndWeldingFlux.WPSGasAndWeldingFluxParameter; this.textBox_WPSGasAndWeldingFlux.Text = myClass_WPSGasAndWeldingFlux.WPSGasAndWeldingFlux; } }