Пример #1
0
 private bool PindahkanValidate(object obj)
 {
     if (OriginSource.Where(O => O.Selected).Count() > 0)
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
        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);
            }
        }