public PageError ( string Message, object page ) : void | ||
Message | string | |
page | object | |
return | void |
void DialogClose(object sender, DialogCloseEventArgs e) { if (e.Result == DialogResult.OK) { if (enableLoggingCheckBox.Checked) { if (!System.IO.Directory.Exists(savePathTextBox.Text)) { e.PageError("Invalid directory.\n\nThe log file directory is invalid. Please provide a valid directory for the log files or disable logging.", this); e.ErrorControl = savePathTextBox; e.SelectAll = true; return; } } e.SaveRequired = true; e.RestartRequired = _noTempFileStartingValue != Settings.Default.noTempFile; } }
void DialogClose(object sender, DialogCloseEventArgs e) { if (e.Result == DialogResult.OK) { if (enableLoggingCheckBox.Checked) { if (!System.IO.Directory.Exists(savePathTextBox.Text)) { e.PageError("Invalid directory.\n\nThe log file directory is invalid. Please provide a valid directory for the log files or disable logging.", this); e.ErrorControl = savePathTextBox; e.SelectAll = true; return; } } e.SaveRequired = true; e.RestartRequired = _noTempFileStartingValue != Settings.Default.noTempFile; } }