Example #1
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            this.comando = "editar";
            frmPacientesManter frmPacientesManter = new frmPacientesManter(this.comando, Convert.ToInt32(txbID.Text));

            frmPacientesManter.ShowDialog();
            AtualizarCampos();
        }
        private void btnNovo_Click(object sender, EventArgs e)
        {
            this.comando = "inserir";
            frmPacientesManter frmPacientesManter = new frmPacientesManter(this.comando, 0);

            frmPacientesManter.ShowDialog();
            AtualizarTabela();
        }