Exemplo n.º 1
0
 protected override void Run(ShellCommand command, ShellContext context, LsOptions options)
 {
     if (!string.IsNullOrEmpty(options.PathToUse))
     {
         var newPath = new ShellPath(options.PathToUse);
         if (!newPath.IsAbsolute)
         {
             newPath = ShellPath.Combine(in context.CurrentPath, in newPath);
         }
         Process(in newPath, context, options);
     }
     else
     {
         Process(in context.CurrentPath, context, options);
     }
 }
Exemplo n.º 2
0
        public List <IoItem> GetDesktopItems()
        {
            var list = new ProgramList(ShellPath.GetAllUsersDesktopFolderPath(), Environment.GetFolderPath(Environment.SpecialFolder.Desktop));

            return(list.IoItems);
        }