private void OnItemOnPropertyChanged(object s1, PropertyChangedEventArgs e1) { RaisePropertyChanged(e1.PropertyName); if (e1.PropertyName != "SizeConsumption") { return; } if (IsCalculatingQts) { return; } if (ObjStatus.IsLoading) { return; } var tmp = (int)PurchaseOrderSizes.Sum(x => x.SizeConsumption); if (IsCalculatingQts) { return; } if (tmp <= ParentRfqSub.Qty) { TextBoxBackColor = new SolidColorBrush(Colors.White); RowTotal = tmp; ObjStatus.IsReadyForSaving = true; } else { TextBoxBackColor = new SolidColorBrush(Color.FromArgb(255, 255, 22, 22)); RowTotal = ParentRfqSub.Qty; ObjStatus.IsReadyForSaving = false; } }
private void item_PropertyChanged(object sender, PropertyChangedEventArgs e) { RowTotal = PurchaseOrderSizes.Sum(x => x.SizeConsumption); }