/// <summary> /// Checks the module for common errors, and logs them to a file. Handled by /// the ValidateWindow class. /// </summary> private void ValidateModule(object sender, EventArgs e) { if (MessageBox.Show("This tool will check for common errors in using ACR tools. Validating a module may take several minutes. Continue?", "Validate Module", MessageBoxButtons.OKCancel) == DialogResult.Cancel) return; try { ModuleValidator validator = new ModuleValidator(); validator.Run(); } catch (Exception exception) { MessageBox.Show(exception.ToString()); } }