diff options
| author | Richie Moch <[email protected]> | 2018-12-22 15:24:55 -0600 |
|---|---|---|
| committer | Richie Moch <[email protected]> | 2018-12-22 15:24:55 -0600 |
| commit | d94c79dbf5183230e5fd3342848408f776de60ea (patch) | |
| tree | e679a6ebd541e4c84ef39fdc2af78229eebea363 /ShiftOS.Main/ShiftOS/Apps/TextPad.cs | |
| parent | 9d9958e18bda9142cb118f13332f2649a530f27f (diff) | |
| download | shiftos-rewind-d94c79dbf5183230e5fd3342848408f776de60ea.tar.gz shiftos-rewind-d94c79dbf5183230e5fd3342848408f776de60ea.tar.bz2 shiftos-rewind-d94c79dbf5183230e5fd3342848408f776de60ea.zip | |
Various changes, began working on the texture skinning.
Diffstat (limited to 'ShiftOS.Main/ShiftOS/Apps/TextPad.cs')
| -rw-r--r-- | ShiftOS.Main/ShiftOS/Apps/TextPad.cs | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/ShiftOS.Main/ShiftOS/Apps/TextPad.cs b/ShiftOS.Main/ShiftOS/Apps/TextPad.cs deleted file mode 100644 index 66863cf..0000000 --- a/ShiftOS.Main/ShiftOS/Apps/TextPad.cs +++ /dev/null @@ -1,40 +0,0 @@ -using ShiftOS.Engine.ShiftFS.FileGUI; -using ShiftOS.Engine.WindowManager; -using System; -using System.IO; -using System.Windows.Forms; - -namespace ShiftOS.Main.ShiftOS.Apps -{ - public partial class TextPad : UserControl - { - readonly string _editedText; - - public TextPad() - { - InitializeComponent(); - _editedText = textBox.Text; - } - - bool IsEdited() => _editedText != textBox.Text; - - void openToolStripMenuItem_Click(object sender, EventArgs e) - { - if (openFileDialog1.ShowDialog() != DialogResult.OK) return; - - var sr = new StreamReader(openFileDialog1.FileName); - textBox.Text = sr.ReadToEnd(); - sr.Close(); - } - - void newToolStripMenuItem_Click(object sender, EventArgs e) - { - if (IsEdited()) - { - MessageBox.Show("yay it works"); - } - var f = new FileOpener(); - ShiftWM.Init(f, "testing", null); - } - } -}
\ No newline at end of file |
