Skip to content

Commit

Permalink
version update
Browse files Browse the repository at this point in the history
  • Loading branch information
myangelkamikaze committed Sep 12, 2020
1 parent 6e75b88 commit 5262871
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions ElectronicObserver/Utility/SoftwareInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@

namespace ElectronicObserver.Utility
{

/// <summary>
/// ソフトウェアの情報を保持します。
/// </summary>
public static class SoftwareInformation
{

/// <summary>
/// ソフトウェア名(日本語)
/// </summary>
Expand All @@ -38,26 +36,23 @@ public static class SoftwareInformation
/// <summary>
/// バージョン(英語)
/// </summary>
public static string VersionEnglish => "4.6.0.2";

public static string VersionEnglish => "4.6.1";


/// <summary>
/// 更新日時
/// </summary>
public static DateTime UpdateTime => DateTimeHelper.CSVStringToTime("2020/07/23 11:30:00");


public static DateTime UpdateTime => DateTimeHelper.CSVStringToTime("2020/09/12 12:30:00");


private static System.Net.WebClient? Client { get; set; }

private static Uri Uri { get; } =
new Uri("http://raw.githubusercontent.com/gre4bee/ryuukitsune.github.io/master/Translations/en-US/update.json");
new Uri(
"http://raw.githubusercontent.com/gre4bee/ryuukitsune.github.io/master/Translations/en-US/update.json");

public static void CheckUpdate()
{

if (!Configuration.Config.Life.CheckUpdateInformation) return;

if (Client == null)
Expand Down Expand Up @@ -117,23 +112,19 @@ private static void DownloadStringCompleted(object sender, System.Net.DownloadSt
}
else if (result == System.Windows.Forms.DialogResult.Cancel)
{

Configuration.Config.Life.CheckUpdateInformation = false;
}

}
else
{
Logger.Add(3,
"You are currently using the latest version (" + date.ToString("yyyy/MM/dd") + " release).");

}
}
catch (Exception ex)
{
ErrorReporter.SendErrorReport(ex, Resources.UpdateConnectionFailed);
}

}
}
}
}

0 comments on commit 5262871

Please sign in to comment.