コード例 #1
0
        private void addPesticide()
        {
            Pesticide p1 = new Pesticide();

            p1.Name        = textBox1.Text;
            p1.Quantity_kg = Int32.Parse(textBox2.Text);
            p1.Remark      = textBox3.Text;

            InsertSQL add          = new InsertSQL();
            int       changerecord = add.addNewPesticide(p1);

            MessageBox.Show(changerecord + " Your record is added");
        }