private void btnNovo_Click(object sender, EventArgs e)
        {
            this.comando = "inserir";

            frmPacientesAgendamentosManter frmPacientesAgendamentosManter = new frmPacientesAgendamentosManter(this.comando, this.idPaciente, this.idAgendamento);

            frmPacientesAgendamentosManter.ShowDialog();
            AtualizarTabela();
        }
        private void btnEditar_Click(object sender, EventArgs e)
        {
            this.comando = "editar";
            try
            {
                this.idAgendamento = Convert.ToInt32(dgvPacientesAgendamentos.CurrentRow.Cells[0].Value);

                frmPacientesAgendamentosManter frmPacientesAgendamentosManter = new frmPacientesAgendamentosManter(this.comando, this.idPaciente, this.idAgendamento);
                frmPacientesAgendamentosManter.ShowDialog();
                AtualizarTabela();
            }
            catch (Exception)
            {
                MessageBox.Show("Selecione um item da Tabela");
            }
        }