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; } } AsycudaDocumentSetEntryData.Refresh(); NotifyPropertyChanged(x => this.AsycudaDocumentSetEntryData); }
internal void OnCurrentSalesDataChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <SalesData> e) { if (ViewCurrentSalesData == false) { return; } if (e.Data == null || e.Data.EntryDataId == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("EntryDataId == \"{0}\"", e.Data.EntryDataId.ToString()); } AsycudaDocumentSetEntryData.Refresh(); NotifyPropertyChanged(x => this.AsycudaDocumentSetEntryData); // SendMessage(MessageToken.AsycudaDocumentSetEntryDataChanged, new NotificationEventArgs(MessageToken.AsycudaDocumentSetEntryDataChanged)); }