diff options
| author | a1xd <[email protected]> | 2020-09-28 01:32:02 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-09-28 01:32:02 -0400 |
| commit | e49d06cae37765bb614c1740f9495a8c1d3100ac (patch) | |
| tree | 6ca7d9612db7a139b60ccfd7407c338e4a0109f7 /grapher/Models/AccelGUI.cs | |
| parent | Merge pull request #26 from a1xd/argcheck (diff) | |
| parent | Fix legacy offset bugs (diff) | |
| download | rawaccel-e49d06cae37765bb614c1740f9495a8c1d3100ac.tar.xz rawaccel-e49d06cae37765bb614c1740f9495a8c1d3100ac.zip | |
Merge pull request #27 from JacobPalecki/GUI
GUI Error Handling
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
| -rw-r--r-- | grapher/Models/AccelGUI.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs index 5b37e81..15a0c0e 100644 --- a/grapher/Models/AccelGUI.cs +++ b/grapher/Models/AccelGUI.cs @@ -3,7 +3,6 @@ using grapher.Models.Mouse; using grapher.Models.Options; using grapher.Models.Serialized; using System; -using System.Drawing; using System.Windows.Forms; namespace grapher @@ -97,7 +96,7 @@ namespace grapher } else { - WriteButton.Text = "bad args"; + throw new Exception($"Bad arguments: \n {SettingsManager.ErrorStringFrom(errors)}"); } } @@ -151,12 +150,14 @@ namespace grapher { WriteButton.Text = Constants.WriteButtonDefaultText; WriteButton.Enabled = true; + WriteButton.Update(); } private void SetWriteButtonDelay() { WriteButton.Enabled = false; WriteButton.Text = $"{Constants.WriteButtonDelayText} : {ButtonTimer.Interval} ms"; + WriteButton.Update(); } private void OnScaleMenuItemClick(object sender, EventArgs e) |