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(); }
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; }