private void LoadSettings() { IsStartupApplication = Properties.Settings.Default.IsStartupApplication; CheckInterval = Properties.Settings.Default.CheckInterval; CheckIntervalTextBox.Text = CheckInterval + ""; ProcessName = Properties.Settings.Default.ProcessName; ProcessPath = Properties.Settings.Default.ProcessPath; UseProcessNameContains = Properties.Settings.Default.UseProcessNameContains; ManualCheckOnly = Properties.Settings.Default.ManualCheckOnly; ShowBalloonMessageOnStart = Properties.Settings.Default.ShowBalloonMessageOnStart; // Set and check path if true, remove if false ConfigureStartupApplicationSettings(); // Set the checking process if (UseProcessNameContains) { CheckProcessStatus = CheckProcessStatusContains; } else { CheckProcessStatus = CheckProcessStatusExact; } // If manual, it cannot be paused PauseMenuItem.IsEnabled = !ManualCheckOnly; }
private void LoadSettings() { IsStartupApplication = Properties.Settings.Default.IsStartupApplication; CheckInterval = Properties.Settings.Default.CheckInterval; CheckIntervalTextBox.Text = CheckInterval + ""; ProcessName = Properties.Settings.Default.ProcessName; UseProcessNameContains = Properties.Settings.Default.UseProcessNameContains; ManualCheckOnly = Properties.Settings.Default.ManualCheckOnly; ShowBalloonMessageOnStart = Properties.Settings.Default.ShowBalloonMessageOnStart; // Set and check path if true, remove if false ConfigureStartupApplicationSettings(); // Set the checking process if (UseProcessNameContains) { CheckProcessStatus = CheckProcessStatusContains; } else { CheckProcessStatus = CheckProcessStatusExact; } // If manual, it cannot be paused PauseMenuItem.IsEnabled = !ManualCheckOnly; }