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)); }
public override ShellIcon GetIcon(bool open) { return(ShellIcon.CreateFromFile(@"C:\Windows\System32\Shell32.dll", n, true, false)); }
public override ShellIcon GetIcon(bool open) { return(ShellIcon.CreateFromFile(@"C:\Windows\System32\Shell32.dll", (int)(open ? Shell32Icon.OpenFolder : Shell32Icon.Folder), true, false)); }