private void DetachFromBudgetPlanItems() { Diagnostics.Start(); AllBudgetPlanList.ForEach(x => { x.Values.CollectionChanged -= BudgetPlanListCollectionChanged; }); Diagnostics.Stop(); }
protected override void OnRefreshRequest(RefreshEvent refreshEvent) { Diagnostics.Start(); if (refreshEvent.Sender == typeof(ExpensesViewModel).Name) { AllBudgetPlanList.ForEach(x => x.RefreshUI()); } Diagnostics.Stop(); }
private void AttachToBudgetPlanItems() { Diagnostics.Start(); AllBudgetPlanList.ForEach(x => { x.Values.CollectionChanged += BudgetPlanListCollectionChanged; x.Values.PropertyChanged += (s, e) => { SaveBudgetPlan(s as BudgetPlan); }; }); Diagnostics.Stop(); }