Skip to content

Commit

Permalink
Merge pull request #45 from mukunku/v2.3.5
Browse files Browse the repository at this point in the history
V2.3.5
  • Loading branch information
mukunku authored Sep 10, 2021
2 parents cbfefce + e0fc7c3 commit abc1933
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 72 deletions.
39 changes: 29 additions & 10 deletions src/ParquetFileViewer/AppSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,30 @@ public static bool UseISODateFormat
{
get
{
using (RegistryKey registryKey = Registry.CurrentUser.CreateSubKey("ParquetViewer"))
try
{
bool value = false;
bool.TryParse(registryKey.GetValue(UseISODateFormatKey)?.ToString(), out value);
return value;
using (RegistryKey registryKey = Registry.CurrentUser.CreateSubKey("ParquetViewer"))
{
bool value = false;
bool.TryParse(registryKey.GetValue(UseISODateFormatKey)?.ToString(), out value);
return value;
}
}
catch
{
return false;
}
}
set
{
using (RegistryKey registryKey = Registry.CurrentUser.CreateSubKey("ParquetViewer"))
try
{
registryKey.SetValue(UseISODateFormatKey, value.ToString());
using (RegistryKey registryKey = Registry.CurrentUser.CreateSubKey("ParquetViewer"))
{
registryKey.SetValue(UseISODateFormatKey, value.ToString());
}
}
catch { }
}
}

Expand All @@ -48,10 +59,14 @@ public static bool AlwaysSelectAllFields
}
set
{
using (RegistryKey registryKey = Registry.CurrentUser.CreateSubKey("ParquetViewer"))
try
{
registryKey.SetValue(AlwaysSelectAllFieldsKey, value.ToString());
using (RegistryKey registryKey = Registry.CurrentUser.CreateSubKey("ParquetViewer"))
{
registryKey.SetValue(AlwaysSelectAllFieldsKey, value.ToString());
}
}
catch { }
}
}

Expand All @@ -77,10 +92,14 @@ public static ParquetEngine ReadingEngine
}
set
{
using (RegistryKey registryKey = Registry.CurrentUser.CreateSubKey("ParquetViewer"))
try
{
registryKey.SetValue(ParquetReadingEngineKey, value.ToString());
using (RegistryKey registryKey = Registry.CurrentUser.CreateSubKey("ParquetViewer"))
{
registryKey.SetValue(ParquetReadingEngineKey, value.ToString());
}
}
catch { }
}
}
}
Expand Down
69 changes: 51 additions & 18 deletions src/ParquetFileViewer/FieldSelectionDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit abc1933

Please sign in to comment.