Add setting to show process ID

This commit is contained in:
2023-04-02 12:43:52 -04:00
parent f93983e992
commit ebd9dc607b
8 changed files with 72 additions and 11 deletions

View File

@@ -18,6 +18,7 @@ namespace ProcessCpuUsageStatusWindow.Options
StartWithWindows.IsChecked = settings.AutoStart;
NumberOfProcesses.Text = settings.ProcessCount.ToString();
ShowProcessId.IsChecked = settings.ShowProcessId;
}
public override bool ValidatePanel()
@@ -34,6 +35,9 @@ namespace ProcessCpuUsageStatusWindow.Options
settings.ProcessCount = int.Parse(NumberOfProcesses.Text);
if (ShowProcessId.IsChecked.HasValue && settings.ShowProcessId != ShowProcessId.IsChecked.Value)
settings.ShowProcessId = ShowProcessId.IsChecked.Value;
Application.Current.SetStartWithWindows(settings.AutoStart);
}