Exemplo n.º 1
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            CommonAdd ca = new CommonAdd();

            if (ca.ShowDialog() == DialogResult.OK)
            {
                DrawTypeData.InsertFileType(ca.InputType);
                LoadData();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }