Exemple #1
0
 private void Refresh()
 {
     lock (_lock)
     {
         try
         {
             IsCurrentlyRefresh = true;
             if (null != WindowItems)
             {
                 WindowItems.Dispose();
             }
             if (Settings.ShowAllAccessible)
             {
                 WindowItems = RunningWindowTable.GetAccessibleProxyInformations(RunningWindowTable.ProxyType.All);
             }
             else
             {
                 WindowItems = RunningWindowTable.GetAccessibleProxyInformations(RunningWindowTable.ProxyType.AllSupportedOfficeApplications);
             }
         }
         catch (Exception)
         {
             throw;
         }
         finally
         {
             IsCurrentlyRefresh = false;
         }
     }
 }
Exemple #2
0
 public void Dispose()
 {
     if (null != WindowItems)
     {
         WindowItems.Dispose();
     }
 }