Exemplo n.º 1
0
 // 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;
     }
 }
Exemplo n.º 2
0
        public void refreshList(int type)
        {
            Htr.Clear();
            var items = History.GetAllByType(type);

            foreach (var item in items)
            {
                Htr.Add(item);
            }
        }