private void ClickAlterarVendedor(object sender, RoutedEventArgs e)
        {
            try
            {
                int    IdVendedor = int.Parse(TbIdVendedor.Text);
                String Nome       = TbNome.Text;
                float  Comissao   = float.Parse(TbComissao.Text);
                String Cpf        = TbCpf.Text;
                int    IdCargo    = int.Parse(CbCargo.Text);


                if (Nome != null && !Nome.Equals(""))
                {
                    throw new Exception("Não foi possível identificar o nome");
                }

                if (!Comissao.Equals(""))
                {
                    throw new Exception("Não foi possível identificar a comissão.");
                }

                if (Cpf != null && !Cpf.Equals(""))
                {
                    throw new Exception("Náo foi possível identificar o cpf.");
                }

                if (IdCargo.Equals(""))
                {
                    throw new Exception("Não foi possível identificar o cargo");
                }

                vendedorcontroller.AlterarVendedor(IdVendedor, Nome, Comissao, Cpf, IdCargo);

                carregarVendedores();
            }
            catch (Exception s)
            {
                throw (s);
            }
        }