Update to latest status window library version

This commit is contained in:
2017-08-24 09:20:41 -04:00
parent 5e44b5d9d4
commit d389f14c03

View File

@@ -27,6 +27,11 @@ namespace SystemTemperatureStatusWindow
} }
private void HandleTimerElapsed(object sender, ElapsedEventArgs e) private void HandleTimerElapsed(object sender, ElapsedEventArgs e)
{
Update();
}
private void Update()
{ {
try try
{ {
@@ -114,22 +119,25 @@ namespace SystemTemperatureStatusWindow
_refreshTimer.Start(); _refreshTimer.Start();
} }
public string Name public string Name => "System Temperature";
public System.Drawing.Icon Icon => Resources.ApplicationIcon;
public void ShowSettings()
{ {
get { return "System Temperature"; }
} }
public System.Drawing.Icon Icon public void Refresh()
{ {
get { return Resources.ApplicationIcon; } Update();
} }
public bool HasSettingsMenu => false;
public bool HasRefreshMenu => true;
public string WindowSettings public string WindowSettings
{ {
get get => Settings.Default.WindowSettings;
{
return Settings.Default.WindowSettings;
}
set set
{ {
Settings.Default.WindowSettings = value; Settings.Default.WindowSettings = value;