Skip to content

Commit

Permalink
Initial baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
crc8 committed Aug 17, 2013
1 parent 58e7cf6 commit e8e8c26
Show file tree
Hide file tree
Showing 17 changed files with 1,439 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,4 @@ Generated_Code #added for RIA/Silverlight projects
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
_temp
20 changes: 20 additions & 0 deletions GitVersionTree.sln
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
32 changes: 32 additions & 0 deletions GitVersionTree/Classes/Reg.cs
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);
}

}
}
278 changes: 278 additions & 0 deletions GitVersionTree/Forms/MainForm.Designer.cs

Large diffs are not rendered by default.

Loading

0 comments on commit e8e8c26

Please sign in to comment.