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; } } }
public void Dispose() { if (null != WindowItems) { WindowItems.Dispose(); } }