public List <ExplorerWindow> GetExplorerWindows() { var fullName = ExplorerWindow.ExplorerFullName(); return(GetExplorerWindows((web, list) => { if (web.FullName.ToUpper() == fullName && web.LocationURL != "") { list.Add(new ExplorerWindow() { Path = new Uri(web.LocationURL).LocalPath, Name = FolderInfo.GetName(new Uri(web.LocationURL).LocalPath), }); } return false; })); }
public WindowChecker(ILogWriter logWriter) { FileName_EXPLORER = ExplorerWindow.ExplorerFullName(); _logWriter = logWriter ?? throw new ArgumentNullException(nameof(logWriter)); }