Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            i.Nome     = textBox8.Text;
            i.Sintomas = textBox5.Text;
            i.Id       = Int32.Parse(textBox9.Text);


            bool sucess = i.Update(i);

            if (sucess)
            {
                MessageBox.Show("Regiao editada com sucesso.");
            }
            else
            {
                MessageBox.Show("Ocorreu um erro por favor tente novamente!");
            }

            DataTable db = i.Select();

            dataGridView2.DataSource = db;
        }