/// <summary> /// Creates the text box that shows the error summary at the top /// </summary> private static ITextBox GetSimpleMessage(string message) { TextBoxVWG messageTextBox = new TextBoxVWG(); messageTextBox.Text = message; messageTextBox.Multiline = true; messageTextBox.ScrollBars = Gizmox.WebGUI.Forms.ScrollBars.Both; messageTextBox.ReadOnly = true; messageTextBox.Font = new Font(messageTextBox.Font.FontFamily, 10); return(messageTextBox); }
/// <summary> /// Sets up the panel that shows the error details /// </summary> private void SetFullDetailsPanel() { _fullDetailPanel = new PanelVWG(); _fullDetailPanel.Text = "Error Detail"; _fullDetailPanel.Height = FULL_DETAIL_HEIGHT; _fullDetailPanel.Visible = false; _errorDetails = new TextBoxVWG(); _errorDetails.Text = ExceptionUtilities.GetExceptionString(_exception, 0, false); _errorDetails.Multiline = true; _errorDetails.ScrollBars = Gizmox.WebGUI.Forms.ScrollBars.Both; _showStackTrace = new CheckBoxVWG(); _showStackTrace.Text = "&Show stack trace"; _showStackTrace.CheckedChanged += ShowStackTraceClicked; BorderLayoutManager detailsManager = new BorderLayoutManagerVWG(_fullDetailPanel, GlobalUIRegistry.ControlFactory); detailsManager.AddControl(_errorDetails, BorderLayoutManager.Position.Centre); detailsManager.AddControl(_showStackTrace, BorderLayoutManager.Position.South); }
/// <summary> /// Creates the text box that shows the error summary at the top /// </summary> private static ITextBox GetSimpleMessage(string message) { TextBoxVWG messageTextBox = new TextBoxVWG(); messageTextBox.Text = message; messageTextBox.Multiline = true; messageTextBox.ScrollBars = Gizmox.WebGUI.Forms.ScrollBars.Both; messageTextBox.ReadOnly = true; messageTextBox.Font = new Font(messageTextBox.Font.FontFamily, 10); return messageTextBox; }