From c1cd6664a4479ff2210d2461dac5ad84c514bb75 Mon Sep 17 00:00:00 2001
From: a1xd <68629610+a1xd@users.noreply.github.com>
Date: Thu, 14 Jan 2021 12:44:57 -0500
Subject: show custom dialog on bad input (#63)
* show custom dialog on bad input
fixes #62
* Update MessageDialog constructor args
---
grapher/MessageDialog.Designer.cs | 98 +++++++++++++++++++++++++++++++++++++++
1 file changed, 98 insertions(+)
create mode 100644 grapher/MessageDialog.Designer.cs
(limited to 'grapher/MessageDialog.Designer.cs')
diff --git a/grapher/MessageDialog.Designer.cs b/grapher/MessageDialog.Designer.cs
new file mode 100644
index 0000000..f7fa8d6
--- /dev/null
+++ b/grapher/MessageDialog.Designer.cs
@@ -0,0 +1,98 @@
+
+namespace grapher
+{
+ partial class MessageDialog
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.tableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
+ this.okButton = new System.Windows.Forms.Button();
+ this.messageLabel = new System.Windows.Forms.Label();
+ this.tableLayoutPanel.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // tableLayoutPanel
+ //
+ this.tableLayoutPanel.AutoSize = true;
+ this.tableLayoutPanel.ColumnCount = 1;
+ this.tableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel.Controls.Add(this.okButton, 0, 1);
+ this.tableLayoutPanel.Controls.Add(this.messageLabel, 0, 0);
+ this.tableLayoutPanel.ForeColor = System.Drawing.SystemColors.ControlText;
+ this.tableLayoutPanel.Location = new System.Drawing.Point(0, 0);
+ this.tableLayoutPanel.Name = "tableLayoutPanel";
+ this.tableLayoutPanel.Padding = new System.Windows.Forms.Padding(5);
+ this.tableLayoutPanel.RowCount = 2;
+ this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
+ this.tableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
+ this.tableLayoutPanel.Size = new System.Drawing.Size(224, 61);
+ this.tableLayoutPanel.TabIndex = 2;
+ //
+ // okButton
+ //
+ this.okButton.Anchor = System.Windows.Forms.AnchorStyles.Bottom;
+ this.okButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+ this.okButton.Location = new System.Drawing.Point(74, 30);
+ this.okButton.Name = "okButton";
+ this.okButton.Size = new System.Drawing.Size(75, 23);
+ this.okButton.TabIndex = 4;
+ this.okButton.Text = "&OK";
+ this.okButton.UseVisualStyleBackColor = true;
+ //
+ // messageLabel
+ //
+ this.messageLabel.AutoSize = true;
+ this.messageLabel.Location = new System.Drawing.Point(8, 5);
+ this.messageLabel.Name = "messageLabel";
+ this.messageLabel.Size = new System.Drawing.Size(35, 13);
+ this.messageLabel.TabIndex = 3;
+ this.messageLabel.Text = "label1";
+ //
+ // MessageDialog
+ //
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.AutoSize = true;
+ this.CancelButton = this.okButton;
+ this.ClientSize = new System.Drawing.Size(224, 61);
+ this.Controls.Add(this.tableLayoutPanel);
+ this.Name = "MessageDialog";
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+ this.tableLayoutPanel.ResumeLayout(false);
+ this.tableLayoutPanel.PerformLayout();
+ this.ResumeLayout(false);
+ this.PerformLayout();
+
+ }
+
+ #endregion
+
+ private System.Windows.Forms.TableLayoutPanel tableLayoutPanel;
+ private System.Windows.Forms.Button okButton;
+ private System.Windows.Forms.Label messageLabel;
+ }
+}
\ No newline at end of file
--
cgit v1.2.3