private void btnCadastrar_Click(object sender, EventArgs e)
 {
     try {
         var result = new FrmMarcas().ShowDialog();
         if (result == DialogResult.OK)
         {
             PreencherListView(GetListaMarca());
         }
     } catch (Exception ex) {
         ex.Message.ShowError();
     }
 }
        private void btnEditar_Click(object sender, EventArgs e)
        {
            try {
                if (!HaItemSelecionado())
                {
                    return;
                }

                var id     = GetCodigoItemSelecionado();
                var result = new FrmMarcas(id).ShowDialog();
                if (result == DialogResult.OK)
                {
                    PreencherListView(GetListaMarca());
                }
            } catch (Exception ex) {
                ex.Message.ShowError();
            }
        }