-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
crc8
committed
Aug 17, 2013
1 parent
58e7cf6
commit e8e8c26
Showing
17 changed files
with
1,439 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,3 +106,4 @@ Generated_Code #added for RIA/Silverlight projects | |
_UpgradeReport_Files/ | ||
Backup*/ | ||
UpgradeLog*.XML | ||
_temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual C# Express 2010 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitVersionTree", "GitVersionTree\GitVersionTree.csproj", "{DFCCEE87-7B81-4789-B915-94E1CE2E7952}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x86 = Debug|x86 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{DFCCEE87-7B81-4789-B915-94E1CE2E7952}.Debug|x86.ActiveCfg = Debug|x86 | ||
{DFCCEE87-7B81-4789-B915-94E1CE2E7952}.Debug|x86.Build.0 = Debug|x86 | ||
{DFCCEE87-7B81-4789-B915-94E1CE2E7952}.Release|x86.ActiveCfg = Release|x86 | ||
{DFCCEE87-7B81-4789-B915-94E1CE2E7952}.Release|x86.Build.0 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using System; | ||
using System.Windows.Forms; | ||
using Microsoft.Win32; | ||
|
||
namespace GitVersionTree | ||
{ | ||
public static class Reg | ||
{ | ||
private static string ProductKey = @"HKEY_CURRENT_USER\SOFTWARE\" + Application.ProductName; | ||
|
||
public static string Read(string Name, string Section = "") | ||
{ | ||
if (!String.IsNullOrEmpty(Section) && | ||
!Section.StartsWith(@"\")) | ||
{ | ||
Section = @"\" + Section; | ||
} | ||
return (string)Registry.GetValue(ProductKey + Section, Name, null); | ||
} | ||
|
||
public static void Write(string Name, string Value, string Section = "") | ||
{ | ||
if (!String.IsNullOrEmpty(Section) && | ||
!Section.StartsWith(@"\")) | ||
{ | ||
Section = @"\" + Section; | ||
} | ||
Registry.SetValue(ProductKey + Section, Name, Value); | ||
} | ||
|
||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.