private void button2_Click(object sender, EventArgs e)
        {
            tela_principal tela = new tela_principal();

            tela.ShowDialog();
            this.Hide();
        }
        private void label3_Click(object sender, EventArgs e)
        {
            tela_principal tela_ = new tela_principal();

            tela_.ShowDialog();
            this.Hide();
        }
        private void label2_Click_1(object sender, System.EventArgs e)
        {
            tela_principal tela = new tela_principal();

            tela.ShowDialog();
            this.Hide();
        }
Пример #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            txtnome.Text    = trate.Nome.ToString();
            txtduração.Text = trate.Duracao.ToString();
            txtvalor.Text   = trate.Valor.ToString();

            TratamentoBusiness business = new TratamentoBusiness();

            business.Alterar(trate);

            MessageBox.Show("Tratamento alterado com sucesso");

            tela_principal tela = new tela_principal();

            tela.ShowDialog();
            this.Hide();
        }