internal void ToRight() { List2Checked.Clear(); list1Status = Status.UnChecked; list2Status = Status.UnChecked; List2.AddRange(List1Checked); List1.RemoveAll(List1Checked.Contains); List1Checked.Clear(); RequireRender = true; SyncFieldValue(true); }
internal void ToRight() { List2Checked.Clear(); list1Status = Status.UnChecked; list2Status = Status.UnChecked; if (List2 == null) { List2 = new List <TransferItem>(); } List2.AddRange(List1Checked); List1.RemoveAll(List1Checked.Contains); List1Checked.Clear(); RequireRender = true; SyncFieldValue(true); }
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; }