private void OnSettingsDialogHandleCreated(object sender, System.EventArgs e) { MainDialog main_dialog = Owner as MainDialog; main_dialog.SetStatusBarText(SingleInstanceCheckBox, "Allow only one instance of OpenRoC to run on this computer."); main_dialog.SetStatusBarText(StartMinimizedCheckBox, "Start OpenRoC minimized, in task-bar next time it launches."); main_dialog.SetStatusBarText(SensuInterfaceEnabledCheckBox, "Enable Sensu 'client socket' support (applicable next time OpenRoC launches)."); main_dialog.SetStatusBarText(SensuHostTextBox, "Sensu UDP 'client' host (applicable next time OpenRoC launches)."); main_dialog.SetStatusBarText(SensuPortTextBox, "Sensu UDP 'client' port (applicable next time OpenRoC launches)."); main_dialog.SetStatusBarText(SensuTTLTextBox, "Sensu checks TTL in seconds. Interval is 80% of TTL and timeout is equal to TTL."); SyncCheckedStates(); }
private void OnProcessOptionsSaveButtonClick(object sender, EventArgs e) { MainDialog main = Owner as MainDialog; if (main != null) { if (main.ProcessManager.Contains(Options.Path)) { main.ProcessManager.Get(Options.Path).ProcessOptions = Options; } else { main.ProcessManager.Add(Options); } main.UpdateProcessList(); } Close(); }
private void OnProcessDialogHandleCreated(object sender, EventArgs e) { if (!(Owner is MainDialog)) { Log.e("Owner of Process Window is not the right type."); return; } MainDialog main_dialog = Owner as MainDialog; main_dialog.SetStatusBarText(ProcessOptionPathControl, "Path to process executable. Only executables (*.exe) are valid."); main_dialog.SetStatusBarText(ProcessOptionWorkingDirectoryControl, "Working directory of the chosen process executable"); main_dialog.SetStatusBarText(ProcessOptionCrashedIfNotRunningControl, "Assume process is crashed if it's not running (no effect when monitoring is disabled)."); main_dialog.SetStatusBarText(ProcessOptionCrashedIfUnresponsiveControl, "Assume crash if main Window is unresponsive (no effect when monitoring is disabled)."); main_dialog.SetStatusBarText(ProcessOptionDoubleCheckEnabledControl, "Enable crash double check."); main_dialog.SetStatusBarText(ProcessOptionDoubleCheckDurationControl, "Crash double check duration. After a crash, double check before killing the process"); main_dialog.SetStatusBarText(ProcessOptionGracePeriodEnabledControl, "Enable a grace period between relaunches of the process."); main_dialog.SetStatusBarText(ProcessOptionGracePeriodDurationControl, "Grace period duration. After a crash, a restart happens when grace period ends."); main_dialog.SetStatusBarText(ProcessOptionPreLaunchScriptEnabledControl, "Enable before launch script execution."); main_dialog.SetStatusBarText(ProcessOptionPreLaunchScriptPathControl, "Execute and wait for this script before starting the process."); main_dialog.SetStatusBarText(ProcessOptionAggressiveCleanupEnabledControl, "Enable aggressive cleanup after process crashes."); main_dialog.SetStatusBarText(ProcessOptionPostCrashScriptEnabledControl, "Enable after crash script execution."); main_dialog.SetStatusBarText(ProcessOptionPostCrashScriptPathControl, "Execute and wait for this script after process crashed."); main_dialog.SetStatusBarText(ProcessOptionScreenshotEnabledControl, "Take a screen-shot of the main display when process crashes."); main_dialog.SetStatusBarText(ProcessOptionAlwaysOnTopEnabledControl, "Keep main Window on-top (aggressive, conflicts with other always-on-top Windows)."); main_dialog.SetStatusBarText(ProcessOptionCommandLineEnabledControl, "Enable passing command line to the process."); main_dialog.SetStatusBarText(ProcessOptionCommandLineControl, "Command line to pass to the process executable."); main_dialog.SetStatusBarText(ProcessOptionEnvironmentVariablesEnabledControl, "Enable merging environment variables."); main_dialog.SetStatusBarText(ProcessOptionEnvironmentVariablesControl, "Environment variable list. Format: var1=val1;var2=val2;..."); main_dialog.SetStatusBarText(StartupStateStoppedControl, "Stop the process when it is added to the process list for the first time."); main_dialog.SetStatusBarText(StartupStateRunningControl, "Run the process when it is added to the process list for the first time."); main_dialog.SetStatusBarText(StartupStateDisabledControl, "Do not monitor the process when it is added to the process list for the first time."); SetupDataBindings(); SyncCheckedStates(); }