Exemplo n.º 1
0
        public void addCrop()
        {
            Crop crop = new Crop();

            crop.Name          = textBox1.Text;
            crop.Type          = textBox2.Text;
            crop.Quantity_plot = Convert.ToInt32(textBox3.Text);
            crop.Remark        = textBox4.Text;

            InsertSQL add        = new InsertSQL();
            int       editrecord = add.addNewCrop(crop);

            MessageBox.Show(" Your seccusful");
            this.Close();
        }