Start setting up for build and update

This commit is contained in:
2018-02-21 17:12:06 -05:00
parent 1dadbd3950
commit c9fd79e4db
7 changed files with 84 additions and 17 deletions

View File

@@ -6,6 +6,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Squirrel;
namespace ProcessCpuUsageStatusWindow
{
@@ -23,8 +24,18 @@ namespace ProcessCpuUsageStatusWindow
var dispatcher = Dispatcher.CurrentDispatcher;
Task.Factory.StartNew(() => _processCpuUsageWatcher.Initialize(Settings.Default.UpdateInterval, UpdateDisplay, dispatcher));
//CheckUpdate();
}
//private static async void CheckUpdate()
//{
// using (var updateManager = UpdateManager.GitHubUpdateManager("https://github.com/ckaczor/ProcessCpuUsageStatusWindow"))
// {
// await updateManager.Result.UpdateApp();
// }
//}
public void Dispose()
{
_processCpuUsageWatcher.Terminate();
@@ -35,33 +46,22 @@ namespace ProcessCpuUsageStatusWindow
public void ShowSettings()
{
throw new NotImplementedException();
}
public void Refresh()
{
throw new NotImplementedException();
}
public string Name
{
get { return "Process CPU Usage"; }
}
public string Name => Resources.ApplicationName;
public System.Drawing.Icon Icon
{
get { return Resources.ApplicationIcon; }
}
public System.Drawing.Icon Icon => Resources.ApplicationIcon;
public bool HasSettingsMenu => false;
public bool HasRefreshMenu => false;
public string WindowSettings
{
get
{
return Settings.Default.WindowSettings;
}
get => Settings.Default.WindowSettings;
set
{
Settings.Default.WindowSettings = value;