Esempio n. 1
0
        public async Task RemoveHistory(HistoryItem item)
        {
            var confirmDialog = new ConfirmDialog(LanguageName.ConfirmRemoveHistory);

            confirmDialog.PrimaryButtonClick += (_s, _e) =>
            {
                AllHistoryList.Remove(item);
                DisplayHistoryCollection.Remove(item);
                IsHistoryListChanged = true;
            };
            await confirmDialog.ShowAsync();
        }
Esempio n. 2
0
 public void MoveHistory(HistoryItem source, string newFolderId)
 {
     foreach (var item in AllHistoryList)
     {
         if (item.Id == source.Id)
         {
             item.FolderId = newFolderId;
             break;
         }
     }
     DisplayHistoryCollection.Remove(source);
     IsHistoryListChanged = true;
 }