Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //set object properties
            adobo.Color      = textBox1.Text;
            adobo.Taste      = textBox2.Text;
            adobo.Lapotness  = textBox3.Text;
            adobo.TypeOfMeat = textBox4.Text;

            if (button1.Text == "Save")
            {
                adobo.Save();
            }
            else
            {
                adobo.Update();
            }
        }