Exemplo n.º 1
0
        private void ResetList2(object value)
        {
            var valueList = (List <string>)value;

            List1.AddRange(List2);
            if (valueList == null)
            {
                List2.Clear();
            }
            else
            {
                List2 = List1.Where(x => valueList.Contains(x.Id)).ToList();
                List1.RemoveAll(List2.Contains);
            }
            List1Status   = Status.UnChecked;
            List2Status   = Status.UnChecked;
            RequireRender = true;
        }
Exemplo n.º 2
0
 /// <summary>
 /// Filter with method syntax.
 /// </summary>
 private void Filter2Execute(string parameter)
 {
     Result = List1.Where(x => x > 3);
 }