public void FilterData(StringBuilder res = null) { if (DisableBaseFilterData) { return; } if (res == null) { res = GetAutoPropertyFilterString(); } if (res.Length == 0 && vloader.NavigationExpression.Count != 0) { res.Append("&& All"); } if (res.Length > 0) { vloader.FilterExpression = res.ToString().Trim().Substring(2).Trim(); } else { if (vloader.FilterExpression != "All") { vloader.FilterExpression = null; } } OverShortDetailAllocations.Refresh(); NotifyPropertyChanged(x => this.OverShortDetailAllocations); }
internal void OnCurrentEXChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <OverShortAllocationsEX> e) { if (ViewCurrentEX == false) { return; } if (e.Data == null || e.Data.OverShortAllocationId == null) { vloader.FilterExpression = "None"; } else { } OverShortDetailAllocations.Refresh(); NotifyPropertyChanged(x => this.OverShortDetailAllocations); // SendMessage(MessageToken.OverShortDetailAllocationsChanged, new NotificationEventArgs(MessageToken.OverShortDetailAllocationsChanged)); BaseViewModel.Instance.CurrentOverShortDetailAllocation = null; }