private void PayQuotaButton(object sender, RoutedEventArgs e) { Pagamentos_Quota pq = new Pagamentos_Quota(DateTime.Now, f.Quota, f, new DateTime(data.Year, data.Month, 1)); pq.save(); if (pg == ApplicationPage.Quota_Page) { vm.changeviewQuotaPage(p); } else { vm.changeViewCondominosPage(); } }
public FinancesPage(WindowViewModel vm, Predio p) { InitializeComponent(); this.vm = vm; this.p = p; showColumnChart(); Transacoes = new ObservableCollection <Transacao>(Outros_Pagamentos.get_OutrosPagamentos(p, EndDate, StartDate).Union(new ObservableCollection <Transacao>(Pagamentos_Quota.get_Quotas(p.ID, EndDate, StartDate)))); PropertyChanged(this, new PropertyChangedEventArgs("Transacoes")); }