public CadFormaDePagamentoWin(FormaDePagamentoModel formaDePagamento)
        {
            InitializeComponent();
            Iniciar();
            this.formaDePagamento = formaDePagamento;

            Title = "EDITAR FORMA DE PAGAMENTO";
            CarregarDados();
        }
        private void CarregarFormaDePagamento()
        {
            listaFormaDePagamento = FormaDePagamentoModel.CarregarTodos();
            cbFormaDePagamento.Items.Clear();
            listaFormaDePagamento.ForEach(item => cbFormaDePagamento.Items.Add(item.descricao));

            if (listaFormaDePagamento.Count > 0)
            {
                cbFormaDePagamento.SelectedIndex = 0;
            }
        }
        private void CarregarFormaDePagamento()
        {
            if (string.IsNullOrEmpty(tbPesquisa.Text))
            {
                lFormaDePagamento = FormaDePagamentoModel.CarregarTodos();
            }
            else
            {
                lFormaDePagamento = FormaDePagamentoModel.Pesquisar(tbPesquisa.Text);
            }

            lvwFormaDePagamento.ItemsSource = lFormaDePagamento;
            tbPesquisa.Focus();
        }