initial checkin of yaulw (locally)

This commit is contained in:
Donald Duck
2016-02-15 12:32:26 -05:00
commit 857eda29e3
115 changed files with 27392 additions and 0 deletions

24
@integrate/Snippets.txt Normal file
View File

@@ -0,0 +1,24 @@
private string GetDefaultBrowserPath()
{
try
{
if (ApplicationSettings.appSettings().LogEvents)
{
CrossProductLogging.WriteEventLogFile("Begin GetDefaultBrowserPath");
}
string key = @"htmlfile\shell\open\command";
RegistryKey registryKey =
Registry.ClassesRoot.OpenSubKey(key, false);
// get default browser path
if (ApplicationSettings.appSettings().LogEvents)
{
CrossProductLogging.WriteEventLogFile("End GetDefaultBrowserPath");
}
return ((string)registryKey.GetValue(null, null)).Split('"')[1];
}
catch
{
return "";
}
}