Exemplo n.º 1
0
        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;
            }));
        }
Exemplo n.º 2
0
 public WindowChecker(ILogWriter logWriter)
 {
     FileName_EXPLORER = ExplorerWindow.ExplorerFullName();
     _logWriter        = logWriter ?? throw new ArgumentNullException(nameof(logWriter));
 }