예제 #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;
     }
 }
예제 #2
0
        public void refreshList(int type)
        {
            Htr.Clear();
            var items = History.GetAllByType(type);

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