aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Oobe.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-02-05 13:09:28 -0500
committerMichael <[email protected]>2017-02-05 13:09:32 -0500
commit38ab4e570842ed866f70781d8b4f7375fb2ae92b (patch)
treed549174e6422ae21cee93cd0d8e9c80d0cb462df /ShiftOS.WinForms/Oobe.cs
parent4b46d338c01601a67ce14ae3da15b5cb67c5b5d4 (diff)
downloadshiftos_thereturn-38ab4e570842ed866f70781d8b4f7375fb2ae92b.tar.gz
shiftos_thereturn-38ab4e570842ed866f70781d8b4f7375fb2ae92b.tar.bz2
shiftos_thereturn-38ab4e570842ed866f70781d8b4f7375fb2ae92b.zip
#51 - DevX seizure
Added a wait in the TextType() method so that it doesn't fire until the current call finishes.
Diffstat (limited to 'ShiftOS.WinForms/Oobe.cs')
-rw-r--r--ShiftOS.WinForms/Oobe.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Oobe.cs b/ShiftOS.WinForms/Oobe.cs
index 2b5ac7d..bcb2ef9 100644
--- a/ShiftOS.WinForms/Oobe.cs
+++ b/ShiftOS.WinForms/Oobe.cs
@@ -63,16 +63,24 @@ namespace ShiftOS.WinForms
int hackeffect;
int percentcount;
+ private bool typing = false;
public void TextType(string texttotype)
{
+ while(typing == true)
+ {
+
+ }
+
charcount = texttotype.Length;
gtexttotype = texttotype;
currentletter = 0;
slashcount = 1;
foreach (var c in gtexttotype)
{
+ typing = true;
rtext += c;
+
this.Invoke(new Action(() =>
{
textgeninput.Text = rtext + "|";
@@ -82,6 +90,7 @@ namespace ShiftOS.WinForms
slashcount = 1;
}
rtext += Environment.NewLine;
+ typing = false;
}
public Save MySave = null;