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; } } ContainerEntryDatas.Refresh(); NotifyPropertyChanged(x => this.ContainerEntryDatas); }
internal void OnCurrentContainerExChanged(object sender, SimpleMvvmToolkit.NotificationEventArgs <ContainerEx> e) { if (ViewCurrentContainerEx == false) { return; } if (e.Data == null || e.Data.Container_Id == null) { vloader.FilterExpression = "None"; } else { vloader.FilterExpression = string.Format("Container_Id == {0}", e.Data.Container_Id.ToString()); } ContainerEntryDatas.Refresh(); NotifyPropertyChanged(x => this.ContainerEntryDatas); // SendMessage(MessageToken.ContainerEntryDatasChanged, new NotificationEventArgs(MessageToken.ContainerEntryDatasChanged)); }