mirror of
https://github.com/ckaczor/ProcessCpuUsageStatusWindow.git
synced 2026-01-14 01:25:41 -05:00
Start setting up for build and update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user