private bool PindahkanValidate(object obj) { if (OriginSource.Where(O => O.Selected).Count() > 0) { return(true); } return(false); }
private void PindahkanAction(object obj) { try { foreach (var item in OriginSource.Where(O => O.Selected).ToList()) { var newItem = item.GetClone(); newItem.Selected = false; DestinationSource.Add(newItem); OriginSource.Remove(item); } RefreshAll(); } catch (Exception ex) { Helpers.ShowErrorMessage(ex.Message); } }