summaryrefslogtreecommitdiff
path: root/grapher/MessageDialog.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2021-01-14 12:44:57 -0500
committerGitHub <[email protected]>2021-01-14 12:44:57 -0500
commitc1cd6664a4479ff2210d2461dac5ad84c514bb75 (patch)
treeaf13c3a7cd3f2a3f4d1f88121b06db259c0a9bf1 /grapher/MessageDialog.cs
parentMerge pull request #64 from Tatsujinichi/master (diff)
downloadrawaccel-c1cd6664a4479ff2210d2461dac5ad84c514bb75.tar.xz
rawaccel-c1cd6664a4479ff2210d2461dac5ad84c514bb75.zip
show custom dialog on bad input (#63)
* show custom dialog on bad input fixes #62 * Update MessageDialog constructor args
Diffstat (limited to 'grapher/MessageDialog.cs')
-rw-r--r--grapher/MessageDialog.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/grapher/MessageDialog.cs b/grapher/MessageDialog.cs
new file mode 100644
index 0000000..0e153f8
--- /dev/null
+++ b/grapher/MessageDialog.cs
@@ -0,0 +1,24 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace grapher
+{
+ public partial class MessageDialog : Form
+ {
+ public MessageDialog(string message, string title = "")
+ {
+ InitializeComponent();
+ Icon = Icon.ExtractAssociatedIcon(Application.ExecutablePath);
+ Text = title;
+ messageLabel.Text = message;
+ }
+
+ }
+}