Compare commits

...

5 Commits

Author SHA1 Message Date
Robert McRackan
7d805728cb Login cvf bug fix 2021-07-11 09:51:39 -04:00
Robert McRackan
f40df002a2 Begin session logging with form feed 2021-07-09 11:34:20 -04:00
Robert McRackan
3180ea993c Startup logging: which logging levels are enabled 2021-07-09 11:06:57 -04:00
Robert McRackan
9f2fd54018 It helps if you wire-up the event. D'oh! 2021-07-09 10:20:46 -04:00
Robert McRackan
07532f7e65 "check for update" should not include pre-releases 2021-07-08 21:00:36 -04:00
4 changed files with 20 additions and 8 deletions

View File

@@ -13,7 +13,7 @@
<!-- <PublishSingleFile>true</PublishSingleFile> -->
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<Version>5.1.5.1</Version>
<Version>5.1.7.3</Version>
</PropertyGroup>
<ItemGroup>

View File

@@ -379,7 +379,7 @@ namespace LibationLauncher
// https://octokitnet.readthedocs.io/en/latest/releases/
var releases = gitHubClient.Repository.Release.GetAll("rmcrackan", "Libation").GetAwaiter().GetResult();
var latest = releases.First(r => !r.Draft);
var latest = releases.First(r => !r.Draft && !r.Prerelease);
var latestVersionString = latest.TagName.Trim('v');
if (!Version.TryParse(latestVersionString, out var latestRelease))
@@ -433,10 +433,19 @@ namespace LibationLauncher
{
var config = Configuration.Instance;
// begin logging session with a form feed
Log.Logger.Information("\r\n\f");
Log.Logger.Information("Begin Libation. {@DebugInfo}", new
{
Version = BuildVersion.ToString(),
LogLevel_Verbose_Enabled = Serilog.Log.Logger.IsEnabled(Serilog.Events.LogEventLevel.Verbose),
LogLevel_Debug_Enabled = Serilog.Log.Logger.IsEnabled(Serilog.Events.LogEventLevel.Debug),
LogLevel_Information_Enabled = Serilog.Log.Logger.IsEnabled(Serilog.Events.LogEventLevel.Information),
LogLevel_Warning_Enabled = Serilog.Log.Logger.IsEnabled(Serilog.Events.LogEventLevel.Warning),
LogLevel_Error_Enabled = Serilog.Log.Logger.IsEnabled(Serilog.Events.LogEventLevel.Error),
LogLevel_Fatal_Enabled = Serilog.Log.Logger.IsEnabled(Serilog.Events.LogEventLevel.Fatal),
config.LibationFiles,
AudibleFileStorage.BooksDirectory,

View File

@@ -44,6 +44,7 @@ namespace LibationWinForms.Dialogs.Login
this.submitBtn.TabIndex = 3;
this.submitBtn.Text = "Submit";
this.submitBtn.UseVisualStyleBackColor = true;
this.submitBtn.Click += new System.EventHandler(this.submitBtn_Click);
//
// radioButton1
//

View File

@@ -23,12 +23,9 @@ namespace LibationWinForms.Dialogs.Login
// optional string settings
if (!string.IsNullOrWhiteSpace(mfaConfig.Title))
this.Text = mfaConfig.Title;
if (!string.IsNullOrWhiteSpace(mfaConfig.Button1Text))
this.radioButton1.Text = mfaConfig.Button1Text;
if (!string.IsNullOrWhiteSpace(mfaConfig.Button2Text))
this.radioButton2.Text = mfaConfig.Button2Text;
if (!string.IsNullOrWhiteSpace(mfaConfig.Button3Text))
this.radioButton3.Text = mfaConfig.Button3Text;
setOptional(this.radioButton1, mfaConfig.Button1Text);
setOptional(this.radioButton2, mfaConfig.Button2Text);
setOptional(this.radioButton3, mfaConfig.Button3Text);
// mandatory values
radioButton1.Name = mfaConfig.Button1Name;
@@ -41,6 +38,11 @@ namespace LibationWinForms.Dialogs.Login
radioButton3.Tag = mfaConfig.Button3Value;
}
private static void setOptional(RadioButton radioButton, string text)
{
if (!string.IsNullOrWhiteSpace(text))
radioButton.Text = text;
}
public string SelectedName { get; private set; }
public string SelectedValue { get; private set; }