private void btnAdd_Click(object sender, EventArgs e) { Classdata.TruckFlag = 0; FrmTruckAdd frm = new FrmTruckAdd(); frm.ShowDialog(); UpdateDataGrid(""); }
private void btnXG_Click(object sender, EventArgs e) { if (Truckdata.kcode == null) { return; } Classdata.TruckFlag = 1; FrmTruckAdd frm = new FrmTruckAdd(); frm.ShowDialog(); UpdateDataGrid(""); }