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; } } LicenceSummary.Refresh(); NotifyPropertyChanged(x => this.LicenceSummary); }
internal void OnCurrentAsycudaDocumentSetExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <AsycudaDocumentSetEx> e) { if (ViewCurrentAsycudaDocumentSetEx == false) { return; } if (e.Data == null || e.Data.AsycudaDocumentSetId == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("AsycudaDocumentSetId == {0}", e.Data.AsycudaDocumentSetId.ToString()); } LicenceSummary.Refresh(); NotifyPropertyChanged(x => this.LicenceSummary); // SendMessage(MessageToken.LicenceSummaryChanged, new NotificationEventArgs(MessageToken.LicenceSummaryChanged)); BaseViewModel.Instance.CurrentLicenceSummary = null; }
public async Task <LicenceSummary> CreateLicenceSummary(LicenceSummary entity) { return(await Channel.CreateLicenceSummary(entity).ConfigureAwait(false)); }