diff options
| author | william341 <[email protected]> | 2016-07-23 17:33:26 -0700 |
|---|---|---|
| committer | william341 <[email protected]> | 2016-07-23 17:33:26 -0700 |
| commit | 98c2351b4ae2b824e34a7224c6d20064d45bad0b (patch) | |
| tree | c99e8447ed2a695c87c34886c5dc3c16dd855808 /source/WindowsFormsApplication1/Apps/TextPad.cs | |
| parent | 1fe97b69490c6f26e22d3944d1ce55144b25ec66 (diff) | |
| download | shiftos-c--98c2351b4ae2b824e34a7224c6d20064d45bad0b.tar.gz shiftos-c--98c2351b4ae2b824e34a7224c6d20064d45bad0b.tar.bz2 shiftos-c--98c2351b4ae2b824e34a7224c6d20064d45bad0b.zip | |
Fix TextPad
Diffstat (limited to 'source/WindowsFormsApplication1/Apps/TextPad.cs')
| -rw-r--r-- | source/WindowsFormsApplication1/Apps/TextPad.cs | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/source/WindowsFormsApplication1/Apps/TextPad.cs b/source/WindowsFormsApplication1/Apps/TextPad.cs index 3d1d54a..639bcca 100644 --- a/source/WindowsFormsApplication1/Apps/TextPad.cs +++ b/source/WindowsFormsApplication1/Apps/TextPad.cs @@ -16,7 +16,7 @@ namespace ShiftOS private bool codepointscooldown = false; private int codepointsearned = 0; private bool needtosave = false; - + public TextPad() { InitializeComponent(); @@ -37,7 +37,8 @@ namespace ShiftOS pnloptions.Show(); txtuserinput.Size = new Size(txtuserinput.Size.Width, txtuserinput.Size.Height - pnloptions.Height); } - else { + else + { pnlbreak.BackgroundImage = Properties.Resources.uparrow; pnloptions.Hide(); txtuserinput.Size = new Size(txtuserinput.Size.Width, txtuserinput.Size.Height + pnloptions.Height); @@ -53,7 +54,7 @@ namespace ShiftOS API.InfoboxSession.FormClosing += (object s, FormClosingEventArgs a) => { string result = API.GetInfoboxResult(); - switch(result) + switch (result) { case "Yes": codepointsearned = 0; @@ -65,7 +66,8 @@ namespace ShiftOS } }; } - else { + else + { makenewdoc(); } } @@ -156,23 +158,25 @@ namespace ShiftOS if (res2 != "fail") { string fContents = File.ReadAllText(res2); - + txtuserinput.Text = fContents; } break; } }; } - else { + else + { string res = API.GetFSResult(); if (res != "fail") { - try { + try + { string fContents = File.ReadAllText(res); txtuserinput.Text = fContents; } - catch(Exception ex) + catch (Exception ex) { txtuserinput.Text = ex.Message; } @@ -206,7 +210,8 @@ namespace ShiftOS if (codepointscooldown == true) { } - else { + else + { codepointsearned = codepointsearned + 1; codepointscooldown = true; tmrcodepointcooldown.Start(); @@ -236,4 +241,4 @@ namespace ShiftOS tmrshowearnedcodepoints.Stop(); } } -} +}
\ No newline at end of file |
