Example #1
0
        public override ShellIcon GetIcon(bool open)
        {
            if (val == null)
            {
                using (RegistryKey key = OpenKey())
                {
                    val = key.GetValue(valueName);
                }
            }

            return(ShellIcon.CreateFromFile(
                       @"C:\Windows\Regedit.exe",
                       val is string? - 205 : -206,
                       true,
                       false));
        }
Example #2
0
 public override ShellIcon GetIcon(bool open)
 {
     return(ShellIcon.CreateFromFile(@"C:\Windows\System32\Shell32.dll", n, true, false));
 }
Example #3
0
 public override ShellIcon GetIcon(bool open)
 {
     return(ShellIcon.CreateFromFile(@"C:\Windows\System32\Shell32.dll", (int)(open ? Shell32Icon.OpenFolder : Shell32Icon.Folder), true, false));
 }