コード例 #1
0
 public FinanceSummaryViewModel(FinanceStatisticBussiness bussiness)
 {
     SummaryGroupCollection = new ObservableCollection <FinanceSummaryGroupViewModel>();
     TotalSummary           = new FinanceSummaryGroupViewModel();
     TotalSummary.SummaryItemClickedEvent += OnSummaryClicked;
     StatisticDetails = new FinanceRecordDetailsViewModel(bussiness);
     StatisticDetails.DeleteRecordEvent += (statisticType, accountID, accountDate, accountItem, accountAmount, note) =>
     {
         IsDetailListEnable = false;
         DeleteRecordEvent?.Invoke(statisticType, accountID, accountDate, accountItem, accountAmount, note);
     };
     IsDetailListEnable           = false;
     _bussiness                   = bussiness;
     _bussiness.ShowDetailsEvent += (normal, teacherFee, classPayment) =>
     {
         StatisticDetails.Enable(normal, teacherFee, classPayment, _currentItemColor);
         IsDetailListEnable = true;
     };
     PopWidth = 400;
 }
コード例 #2
0
 private void OnDeleteRecord(StatisticTypeEnum statisticType, string accountID, string accountDate, string accountItem, string accountAmount, string note)
 {
     DeleteRecordEvent?.Invoke(statisticType, accountID, accountDate, accountItem, accountAmount, note);
 }