private void ApagarDaLista()
        {
            if (dgvListaComestiveis.SelectedRows.Count == 0)
            {
                MessageBox.Show("É preciso selecionar uma linha antes");
                return;
            }
            int id = Convert.ToInt32(dgvListaComestiveis.CurrentRow.Cells[0].Value);
            RepositorioComestiveis repositorio = new RepositorioComestiveis();

            DialogResult resultado = MessageBox.Show("Você tem certeza?", "AVISO",
                                                     MessageBoxButtons.YesNo);

            if (resultado == DialogResult.Yes)
            {
                repositorio.Deletar(id);
                AtualizarTabela();
            }
        }