Exemplo n.º 1
0
        private void getFromRepositorio()
        {
            faturamentos = FaturamentoServicos.read();

            formasPagamento = FormaPagamentoServicos.Instance.read();
            cboFormasPagamento.Items.Clear();
            cboFormasPagamento.Items.AddRange(formasPagamento.ToArray());
            if (index > -1 && faturamentos[index].formaPagamento != null)
            {
                cboFormasPagamento.SelectedIndex = formasPagamento.FindIndex(find => find.id == faturamentos[index].formaPagamento.id);
            }
            else
            {
                cboFormasPagamento.SelectedIndex = -1;
            }
        }