コード例 #1
0
 /// <summary>
 /// Construtor serviço nota fiscal
 /// </summary>
 /// <param name="notaFiscalBusiness">Objeto de negócio</param>
 /// <param name="impostoUtil">Objeto utilitário</param>
 /// <param name="notaFiscalRepository">Repositório de dados</param>
 public NotaFiscalService(NotaFiscalBusiness notaFiscalBusiness, ImpostoUtil impostoUtil,
                          NotaFiscalRepository notaFiscalRepository)
 {
     this.notaFiscalBusiness   = notaFiscalBusiness;
     this.impostoUtil          = impostoUtil;
     this.notaFiscalRepository = notaFiscalRepository;
 }
コード例 #2
0
        public FormImposto(INotaFiscalService notaFiscalService,
                           IImpostoUtil impostoUtil)
        {
            InitializeComponent();
            dataGridViewPedidos.AutoGenerateColumns = true;
            dataGridViewPedidos.DataSource          = GetTablePedidos();
            ResizeColumns();

            this.notaFiscalService = notaFiscalService;
            this.impostoUtil       = impostoUtil;
        }