示例#1
0
        public void LoadTransfers()
        {
            var requests = BackgroundTransferService.Requests.Select(TransferMonitorViewModel.Create).ToList();

            if (Transfers == null)
            {
                Transfers = new ObservableCollection <TransferMonitorViewModel>(requests);
            }
            else
            {
                var newRequests = requests.Except(Transfers).ToList();
                Transfers.AddRange(newRequests);
            }
        }