diff options
| author | AShifter <[email protected]> | 2017-10-01 09:53:13 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-10-01 09:53:13 -0600 |
| commit | fa6be3015633dbcf4250c3fe213d284d067016bd (patch) | |
| tree | 55e0f988107830ffb809acef6d5ac8c25722ef7b /ShiftOS.Main/ShiftOS/Apps/TestForm.cs | |
| parent | aa44f27eab230f464e9778a4256c330a056a7b3c (diff) | |
| parent | b45df71168d5fa3f817c45194e4019d15b3a2aa0 (diff) | |
| download | shiftos-rewind-fa6be3015633dbcf4250c3fe213d284d067016bd.tar.gz shiftos-rewind-fa6be3015633dbcf4250c3fe213d284d067016bd.tar.bz2 shiftos-rewind-fa6be3015633dbcf4250c3fe213d284d067016bd.zip | |
Merge pull request #6 from AShifter/master
Master
Diffstat (limited to 'ShiftOS.Main/ShiftOS/Apps/TestForm.cs')
| -rw-r--r-- | ShiftOS.Main/ShiftOS/Apps/TestForm.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ShiftOS.Main/ShiftOS/Apps/TestForm.cs b/ShiftOS.Main/ShiftOS/Apps/TestForm.cs index 1fd3b18..389f8d1 100644 --- a/ShiftOS.Main/ShiftOS/Apps/TestForm.cs +++ b/ShiftOS.Main/ShiftOS/Apps/TestForm.cs @@ -17,12 +17,8 @@ namespace ShiftOS.Main private void Button1_Click(object sender, EventArgs e) { - ShiftDemo demo = new ShiftDemo {label1 = {Text = textBox2.Text}}; - - var item = typeof(SystemIcons).GetProperties() - .First(p => p.Name == comboBox1.SelectedItem as string); - - ShiftWM.Init(demo, textBox1.Text, (item.GetMethod.Invoke(null, new object[0]) as Icon)); + ShiftDemo demo = new ShiftDemo(); + ShiftWM.Init(demo, textBox1.Text, null); ShiftWM.StartInfoboxSession(textBox1.Text, textBox2.Text, InfoboxTemplate.ButtonType.Ok); } |
