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; } } EntryPreviousItems.Refresh(); NotifyPropertyChanged(x => this.EntryPreviousItems); }
internal void OnCurrentAsycudaDocumentItemChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <AsycudaDocumentItem> e) { if (ViewCurrentAsycudaDocumentItem == false) { return; } if (e.Data == null || e.Data.Item_Id == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("Item_Id == {0}", e.Data.Item_Id.ToString()); } EntryPreviousItems.Refresh(); NotifyPropertyChanged(x => this.EntryPreviousItems); // SendMessage(MessageToken.EntryPreviousItemsChanged, new NotificationEventArgs(MessageToken.EntryPreviousItemsChanged)); BaseViewModel.Instance.CurrentEntryPreviousItems = null; }