Пример #1
0
        private void addFertiliser()
        {
            Fertiliser f1 = new Fertiliser();

            f1.Name        = textBox1.Text;
            f1.Quantity_kg = Convert.ToInt32(textBox2.Text);
            f1.Remark      = textBox3.Text;

            InsertSQL add       = new InsertSQL();
            int       addrecord = add.addNewFertiliser(f1);

            MessageBox.Show("Seccuess!!");
            this.Close();
        }