FogBugz » FogBugz for Visual Studio Read More
Clone URL:  
RegistryHelper.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System; using System.Collections.Generic; using System.Text; using Microsoft.Win32; namespace FogBugzForVisualStudio { static class RegistryHelper { public static RegistryKey FogBugzVSKey { get { return Registry.CurrentUser.CreateSubKey(@"Software\Fog Creek Software\FogBugz For Visual Studio"); } } public static RegistryKey FogBugzVSMachineKey { get { return Registry.LocalMachine.CreateSubKey(@"Software\Fog Creek Software\FogBugz For Visual Studio"); } } public static bool? GetBool(RegistryKey obj, String key) { var result = obj.GetValue(key, null); if (result == null) { return null; } return Convert.ToBoolean(result); } } }