aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/SaveDialogs
diff options
context:
space:
mode:
authorMichael Webb <[email protected]>2019-04-04 22:00:10 -0500
committerMichael Webb <[email protected]>2019-04-04 22:00:10 -0500
commit7a17bdcb24e580a357bb1f9b8a925315eac33e64 (patch)
treec0629b347bb95fc4aec0657ae5c581fd975a937b /Histacom2/SaveDialogs
parent95345b4f04925194782512155cfd97210c244ad1 (diff)
downloadhistacom2-7a17bdcb24e580a357bb1f9b8a925315eac33e64.tar.gz
histacom2-7a17bdcb24e580a357bb1f9b8a925315eac33e64.tar.bz2
histacom2-7a17bdcb24e580a357bb1f9b8a925315eac33e64.zip
HUGE list of changes; see Discord for more info
Diffstat (limited to 'Histacom2/SaveDialogs')
-rw-r--r--Histacom2/SaveDialogs/NewGameDialog.Designer.cs1
-rw-r--r--Histacom2/SaveDialogs/NewGameDialog.cs8
2 files changed, 9 insertions, 0 deletions
diff --git a/Histacom2/SaveDialogs/NewGameDialog.Designer.cs b/Histacom2/SaveDialogs/NewGameDialog.Designer.cs
index 266061b..7cc9076 100644
--- a/Histacom2/SaveDialogs/NewGameDialog.Designer.cs
+++ b/Histacom2/SaveDialogs/NewGameDialog.Designer.cs
@@ -43,6 +43,7 @@
this.txtProfName.Name = "txtProfName";
this.txtProfName.Size = new System.Drawing.Size(314, 20);
this.txtProfName.TabIndex = 0;
+ this.txtProfName.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtProfName_KeyPress);
//
// label1
//
diff --git a/Histacom2/SaveDialogs/NewGameDialog.cs b/Histacom2/SaveDialogs/NewGameDialog.cs
index e3ecd00..ab3fbbf 100644
--- a/Histacom2/SaveDialogs/NewGameDialog.cs
+++ b/Histacom2/SaveDialogs/NewGameDialog.cs
@@ -95,5 +95,13 @@ namespace Histacom2
MessageBox.Show("DevMode (Development Mode) is a special mode that lets you test features without having a large amount of accounts just to test a new feature. How it works is simple:" +
"\n1. It checks for a profile of the same name.\n2. If so, it deletes the profile and starts a new game.\n3. If not, then it starts a new game.");
}
+
+ private void txtProfName_KeyPress(object sender, KeyPressEventArgs e)
+ {
+ if (e.KeyChar == (char)Keys.Enter)
+ {
+ btnOk_Click(null, null);
+ }
+ }
}
}