Modernize project

This commit is contained in:
2026-02-27 12:18:46 -05:00
parent eebd23f702
commit 6001954705
36 changed files with 1338 additions and 1239 deletions

View File

@@ -1,21 +0,0 @@
using System.Reflection;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("ProcessCpuUsageStatusWindow")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Chris Kaczor")]
[assembly: AssemblyProduct("ProcessCpuUsageStatusWindow")]
[assembly: AssemblyCopyright("Copyright © Chris Kaczor 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyMetadata("SquirrelAwareVersion", "1")]

View File

@@ -19,7 +19,7 @@ namespace ProcessCpuUsageStatusWindow.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Resources {
@@ -61,11 +61,20 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
/// <summary>
/// Looks up a localized string similar to Version: {0}.
/// Looks up a localized string similar to Add.
/// </summary>
public static string About_Version {
public static string AddItemLink {
get {
return ResourceManager.GetString("About_Version", resourceCulture);
return ResourceManager.GetString("AddItemLink", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Add Item.
/// </summary>
public static string AddItemToolTip {
get {
return ResourceManager.GetString("AddItemToolTip", resourceCulture);
}
}
@@ -80,7 +89,7 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
/// <summary>
/// Looks up a localized string similar to Process CPU Usage.
/// Looks up a localized string similar to Process CPU Usage Status Window.
/// </summary>
public static string ApplicationName {
get {
@@ -88,6 +97,15 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Cancel.
/// </summary>
public static string CancelButton {
get {
return ResourceManager.GetString("CancelButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Checking for update....
/// </summary>
@@ -106,6 +124,69 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Check _Now.
/// </summary>
public static string checkVersionNowButton {
get {
return ResourceManager.GetString("checkVersionNowButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Check for a new version on startup.
/// </summary>
public static string checkVersionOnStartupCheckBox {
get {
return ResourceManager.GetString("checkVersionOnStartupCheckBox", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Close.
/// </summary>
public static string CloseButtonText {
get {
return ResourceManager.GetString("CloseButtonText", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Are you sure you want to delete the selected items?.
/// </summary>
public static string ConfirmDeleteItemss {
get {
return ResourceManager.GetString("ConfirmDeleteItemss", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Confirm Delete.
/// </summary>
public static string ConfirmDeleteTitle {
get {
return ResourceManager.GetString("ConfirmDeleteTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete.
/// </summary>
public static string DeleteItemLink {
get {
return ResourceManager.GetString("DeleteItemLink", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Delete Item.
/// </summary>
public static string DeleteItemToolTip {
get {
return ResourceManager.GetString("DeleteItemToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Downloading update....
/// </summary>
@@ -115,6 +196,24 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Edit.
/// </summary>
public static string EditItemLink {
get {
return ResourceManager.GetString("EditItemLink", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Edit Item.
/// </summary>
public static string EditItemToolTip {
get {
return ResourceManager.GetString("EditItemToolTip", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to CPU: {0,4:f1}% - Total.
/// </summary>
@@ -124,15 +223,6 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to .
/// </summary>
public static string HeaderLine {
get {
return ResourceManager.GetString("HeaderLine", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Installing update....
/// </summary>
@@ -142,6 +232,33 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Item.
/// </summary>
public static string ItemColumnHeader {
get {
return ResourceManager.GetString("ItemColumnHeader", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Add Item.
/// </summary>
public static string ItemWindowAdd {
get {
return ResourceManager.GetString("ItemWindowAdd", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Edit Item.
/// </summary>
public static string ItemWindowEdit {
get {
return ResourceManager.GetString("ItemWindowEdit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Loading....
/// </summary>
@@ -152,11 +269,11 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
/// <summary>
/// Looks up a localized string similar to No update found.
/// Looks up a localized string similar to Name.
/// </summary>
public static string NoUpdate {
public static string NameColumnHeader {
get {
return ResourceManager.GetString("NoUpdate", resourceCulture);
return ResourceManager.GetString("NameColumnHeader", resourceCulture);
}
}
@@ -169,58 +286,48 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to OK.
/// </summary>
public static string OkayButton {
get {
return ResourceManager.GetString("OkayButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to About.
/// </summary>
public static string OptionCategory_About {
public static string optionCategoryAbout {
get {
return ResourceManager.GetString("OptionCategory_About", resourceCulture);
return ResourceManager.GetString("optionCategoryAbout", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to General.
/// </summary>
public static string OptionCategory_General {
public static string optionCategoryGeneral {
get {
return ResourceManager.GetString("OptionCategory_General", resourceCulture);
return ResourceManager.GetString("optionCategoryGeneral", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cancel.
/// Looks up a localized string similar to Items.
/// </summary>
public static string OptionsWindow_CancelButton {
public static string optionCategoryItems {
get {
return ResourceManager.GetString("OptionsWindow_CancelButton", resourceCulture);
return ResourceManager.GetString("optionCategoryItems", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
/// Looks up a localized string similar to Update.
/// </summary>
public static System.Drawing.Icon OptionsWindow_Icon {
public static string optionCategoryUpdate {
get {
object obj = ResourceManager.GetObject("OptionsWindow_Icon", resourceCulture);
return ((System.Drawing.Icon)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to OK.
/// </summary>
public static string OptionsWindow_OkayButton {
get {
return ResourceManager.GetString("OptionsWindow_OkayButton", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Options.
/// </summary>
public static string OptionsWindow_Title {
get {
return ResourceManager.GetString("OptionsWindow_Title", resourceCulture);
return ResourceManager.GetString("optionCategoryUpdate", resourceCulture);
}
}
@@ -243,38 +350,69 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
/// <summary>
/// Looks up a localized string similar to Restarting application....
/// Looks up a localized string similar to Settings.
/// </summary>
public static string RestartingAfterUpdate {
public static string SettingsTitle {
get {
return ResourceManager.GetString("RestartingAfterUpdate", resourceCulture);
return ResourceManager.GetString("SettingsTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Show _process ID.
/// </summary>
public static string ShowProcessId {
public static string showProcessId {
get {
return ResourceManager.GetString("ShowProcessId", resourceCulture);
return ResourceManager.GetString("showProcessId", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to _Start when Windows starts.
/// </summary>
public static string StartWithWindows {
public static string startWithWindowsCheckBox {
get {
return ResourceManager.GetString("StartWithWindows", resourceCulture);
return ResourceManager.GetString("startWithWindowsCheckBox", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Updating application....
/// Looks up a localized string similar to You are already running the most recent version.
///
///No updates are available at this time..
/// </summary>
public static string Updating {
public static string UpdateCheckCurrent {
get {
return ResourceManager.GetString("Updating", resourceCulture);
return ResourceManager.GetString("UpdateCheckCurrent", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Version {0} is now available.
///
///Would you like to download and install it now?.
/// </summary>
public static string UpdateCheckNewVersion {
get {
return ResourceManager.GetString("UpdateCheckNewVersion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to {0} Update.
/// </summary>
public static string UpdateCheckTitle {
get {
return ResourceManager.GetString("UpdateCheckTitle", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Version {0}.
/// </summary>
public static string Version {
get {
return ResourceManager.GetString("Version", resourceCulture);
}
}
}

View File

@@ -117,77 +117,126 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="About_Version" xml:space="preserve">
<value>Version: {0}</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="ApplicationIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ApplicationIcon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="ApplicationName" xml:space="preserve">
<value>Process CPU Usage</value>
<value>Process CPU Usage Status Window</value>
</data>
<data name="CheckingForUpdate" xml:space="preserve">
<value>Checking for update...</value>
<data name="optionCategoryAbout" xml:space="preserve">
<value>About</value>
</data>
<data name="CheckUpdate" xml:space="preserve">
<value>_Check for Update</value>
</data>
<data name="DownloadingUpdate" xml:space="preserve">
<value>Downloading update...</value>
<data name="startWithWindowsCheckBox" xml:space="preserve">
<value>_Start when Windows starts</value>
</data>
<data name="FooterLine" xml:space="preserve">
<value>CPU: {0,4:f1}% - Total</value>
<data name="optionCategoryGeneral" xml:space="preserve">
<value>General</value>
</data>
<data name="HeaderLine" xml:space="preserve">
<value />
<data name="SettingsTitle" xml:space="preserve">
<value>Settings</value>
</data>
<data name="InstallingUpdate" xml:space="preserve">
<value>Installing update...</value>
<data name="CloseButtonText" xml:space="preserve">
<value>Close</value>
</data>
<data name="Version" xml:space="preserve">
<value>Version {0}</value>
</data>
<data name="optionCategoryUpdate" xml:space="preserve">
<value>Update</value>
</data>
<data name="checkVersionOnStartupCheckBox" xml:space="preserve">
<value>_Check for a new version on startup</value>
</data>
<data name="checkVersionNowButton" xml:space="preserve">
<value>Check _Now</value>
</data>
<data name="UpdateCheckTitle" xml:space="preserve">
<value>{0} Update</value>
</data>
<data name="UpdateCheckCurrent" xml:space="preserve">
<value>You are already running the most recent version.
No updates are available at this time.</value>
</data>
<data name="UpdateCheckNewVersion" xml:space="preserve">
<value>Version {0} is now available.
Would you like to download and install it now?</value>
</data>
<data name="Loading" xml:space="preserve">
<value>Loading...</value>
</data>
<data name="NoUpdate" xml:space="preserve">
<value>No update found</value>
<data name="CheckingForUpdate" xml:space="preserve">
<value>Checking for update...</value>
</data>
<data name="NumberOfProcesses" xml:space="preserve">
<value>_Number of processes:</value>
<data name="DownloadingUpdate" xml:space="preserve">
<value>Downloading update...</value>
</data>
<data name="OptionCategory_About" xml:space="preserve">
<value>About</value>
<data name="InstallingUpdate" xml:space="preserve">
<value>Installing update...</value>
</data>
<data name="OptionCategory_General" xml:space="preserve">
<value>General</value>
<data name="optionCategoryItems" xml:space="preserve">
<value>Items</value>
</data>
<data name="OptionsWindow_CancelButton" xml:space="preserve">
<value>Cancel</value>
<data name="NameColumnHeader" xml:space="preserve">
<value>Name</value>
</data>
<data name="OptionsWindow_Icon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\ApplicationIcon.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="ItemColumnHeader" xml:space="preserve">
<value>Item</value>
</data>
<data name="OptionsWindow_OkayButton" xml:space="preserve">
<data name="AddItemLink" xml:space="preserve">
<value>Add</value>
</data>
<data name="EditItemLink" xml:space="preserve">
<value>Edit</value>
</data>
<data name="DeleteItemLink" xml:space="preserve">
<value>Delete</value>
</data>
<data name="AddItemToolTip" xml:space="preserve">
<value>Add Item</value>
</data>
<data name="EditItemToolTip" xml:space="preserve">
<value>Edit Item</value>
</data>
<data name="DeleteItemToolTip" xml:space="preserve">
<value>Delete Item</value>
</data>
<data name="ConfirmDeleteTitle" xml:space="preserve">
<value>Confirm Delete</value>
</data>
<data name="ConfirmDeleteItemss" xml:space="preserve">
<value>Are you sure you want to delete the selected items?</value>
</data>
<data name="ItemWindowAdd" xml:space="preserve">
<value>Add Item</value>
</data>
<data name="ItemWindowEdit" xml:space="preserve">
<value>Edit Item</value>
</data>
<data name="OkayButton" xml:space="preserve">
<value>OK</value>
</data>
<data name="OptionsWindow_Title" xml:space="preserve">
<value>Options</value>
<data name="CancelButton" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="FooterLine" xml:space="preserve">
<value>CPU: {0,4:f1}% - Total</value>
</data>
<data name="ProcessLine" xml:space="preserve">
<value>CPU: {1,4:f1}% - {0}</value>
</data>
<data name="StartWithWindows" xml:space="preserve">
<value>_Start when Windows starts</value>
</data>
<data name="Updating" xml:space="preserve">
<value>Updating application...</value>
</data>
<data name="RestartingAfterUpdate" xml:space="preserve">
<value>Restarting application...</value>
</data>
<data name="ProcessLineWithProcessId" xml:space="preserve">
<value>CPU: {1,4:f1}% - {0} ({2})</value>
</data>
<data name="ShowProcessId" xml:space="preserve">
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="ApplicationIcon" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Application.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="showProcessId" xml:space="preserve">
<value>Show _process ID</value>
</data>
<data name="NumberOfProcesses" xml:space="preserve">
<value>_Number of processes:</value>
</data>
</root>

View File

@@ -12,7 +12,7 @@ namespace ProcessCpuUsageStatusWindow.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "18.4.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -23,30 +23,6 @@ namespace ProcessCpuUsageStatusWindow.Properties {
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("3")]
public int ProcessCount {
get {
return ((int)(this["ProcessCount"]));
}
set {
this["ProcessCount"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("00:00:02")]
public global::System.TimeSpan UpdateInterval {
get {
return ((global::System.TimeSpan)(this["UpdateInterval"]));
}
set {
this["UpdateInterval"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
@@ -74,18 +50,42 @@ namespace ProcessCpuUsageStatusWindow.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool FirstRun {
public bool CheckVersionAtStartup {
get {
return ((bool)(this["FirstRun"]));
return ((bool)(this["CheckVersionAtStartup"]));
}
set {
this["FirstRun"] = value;
this["CheckVersionAtStartup"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
[global::System.Configuration.DefaultSettingValueAttribute("[]")]
public string Items {
get {
return ((string)(this["Items"]));
}
set {
this["Items"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("3")]
public int ProcessCount {
get {
return ((int)(this["ProcessCount"]));
}
set {
this["ProcessCount"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool ShowProcessId {
get {
return ((bool)(this["ShowProcessId"]));
@@ -94,5 +94,17 @@ namespace ProcessCpuUsageStatusWindow.Properties {
this["ShowProcessId"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("00:00:02")]
public global::System.TimeSpan UpdateInterval {
get {
return ((global::System.TimeSpan)(this["UpdateInterval"]));
}
set {
this["UpdateInterval"] = value;
}
}
}
}

View File

@@ -2,23 +2,26 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="ProcessCpuUsageStatusWindow.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="ProcessCount" Type="System.Int32" Scope="User">
<Value Profile="(Default)">3</Value>
</Setting>
<Setting Name="UpdateInterval" Type="System.TimeSpan" Scope="User">
<Value Profile="(Default)">00:00:02</Value>
</Setting>
<Setting Name="WindowSettings" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="AutoStart" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="FirstRun" Type="System.Boolean" Scope="User">
<Setting Name="CheckVersionAtStartup" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="Items" Type="System.String" Scope="User">
<Value Profile="(Default)">[]</Value>
</Setting>
<Setting Name="ProcessCount" Type="System.Int32" Scope="User">
<Value Profile="(Default)">3</Value>
</Setting>
<Setting Name="ShowProcessId" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="UpdateInterval" Type="System.TimeSpan" Scope="User">
<Value Profile="(Default)">00:00:02</Value>
</Setting>
</Settings>
</SettingsFile>