Ejemplo n.º 1
0
 public FrmListEntryRevenue(EntryType entryType, DateTime date)
 {
     InitializeComponent();
     pnEtries.BackColor   = entryType == EntryType.Revenue ? SystemColors.GREEN : SystemColors.RED;
     this.entryType       = entryType;
     this.date            = date;
     btnOpenCalendar.Text = CultureInfo.CurrentCulture.TextInfo.ToTitleCase(date.ToString("MMMM"));
     ctr = new EntryExpensesController();
 }
 public FrmEntryExpenses(EntryType entryType, ApplicationDbContext context = null)
 {
     InitializeComponent();
     btnSave.Enabled         = false;
     this.entryType          = entryType;
     this.Text               = entryType == EntryType.Expense ? "Despesas" : "Receitas";
     controller              = context == null ? new EntryExpensesController() : new EntryExpensesController(context);
     categoriesController    = new CategoriesController(controller.Context);
     paymentMethodController = new PaymentMethodController(controller.Context);
 }
Ejemplo n.º 3
0
 public frmPayInvoice(Report report, ApplicationDbContext context)
 {
     InitializeComponent();
     this.report = report;
     ctrEntry    = context == null ? new EntryExpensesController() : new EntryExpensesController(context);
 }