// Refresh list view void ExecuteLoadItemsCommand(int type) { if (IsBusy) { return; } IsBusy = true; try { Htr.Clear(); var items = History.GetAllByType(type); foreach (var item in items) { Htr.Add(item); } } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; } }
public void refreshList(int type) { Htr.Clear(); var items = History.GetAllByType(type); foreach (var item in items) { Htr.Add(item); } }