Skip to content

Commit e8e8c26

Browse files
author
crc8
committed
Initial baseline
1 parent 58e7cf6 commit e8e8c26

17 files changed

+1439
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,4 @@ Generated_Code #added for RIA/Silverlight projects
106106
_UpgradeReport_Files/
107107
Backup*/
108108
UpgradeLog*.XML
109+
_temp

GitVersionTree.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual C# Express 2010
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitVersionTree", "GitVersionTree\GitVersionTree.csproj", "{DFCCEE87-7B81-4789-B915-94E1CE2E7952}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|x86 = Debug|x86
9+
Release|x86 = Release|x86
10+
EndGlobalSection
11+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
12+
{DFCCEE87-7B81-4789-B915-94E1CE2E7952}.Debug|x86.ActiveCfg = Debug|x86
13+
{DFCCEE87-7B81-4789-B915-94E1CE2E7952}.Debug|x86.Build.0 = Debug|x86
14+
{DFCCEE87-7B81-4789-B915-94E1CE2E7952}.Release|x86.ActiveCfg = Release|x86
15+
{DFCCEE87-7B81-4789-B915-94E1CE2E7952}.Release|x86.Build.0 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal

GitVersionTree/Classes/Reg.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using System;
2+
using System.Windows.Forms;
3+
using Microsoft.Win32;
4+
5+
namespace GitVersionTree
6+
{
7+
public static class Reg
8+
{
9+
private static string ProductKey = @"HKEY_CURRENT_USER\SOFTWARE\" + Application.ProductName;
10+
11+
public static string Read(string Name, string Section = "")
12+
{
13+
if (!String.IsNullOrEmpty(Section) &&
14+
!Section.StartsWith(@"\"))
15+
{
16+
Section = @"\" + Section;
17+
}
18+
return (string)Registry.GetValue(ProductKey + Section, Name, null);
19+
}
20+
21+
public static void Write(string Name, string Value, string Section = "")
22+
{
23+
if (!String.IsNullOrEmpty(Section) &&
24+
!Section.StartsWith(@"\"))
25+
{
26+
Section = @"\" + Section;
27+
}
28+
Registry.SetValue(ProductKey + Section, Name, Value);
29+
}
30+
31+
}
32+
}

GitVersionTree/Forms/MainForm.Designer.cs

Lines changed: 278 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)