private void button1_Click(object sender, System.EventArgs e) { CommonAdd ca = new CommonAdd(); if (ca.ShowDialog() == DialogResult.OK) { DrawTypeData.InsertFileType(ca.InputType); LoadData(); } }
private void button1_Click(object sender, System.EventArgs e) { CommonAdd ca = new CommonAdd(); if (ca.ShowDialog() == DialogResult.OK) { PumpType pt = new PumpType(); pt.TypeName = ca.InputType; PumpTypeData.InsertPumpType(pt); LoadData(); } }