diff options
| author | Michael <[email protected]> | 2017-06-01 17:45:59 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-01 17:45:59 -0400 |
| commit | d001b613fba71bcee04163492940f17a0027daa7 (patch) | |
| tree | db59cebdf95e761cb47f177bc206603a2f471b3e /ShiftOS.WinForms/Applications/GraphicPicker.cs | |
| parent | 03cf891c53cc648bb1ed4ea3d78755c1a440a713 (diff) | |
| download | shiftos_thereturn-d001b613fba71bcee04163492940f17a0027daa7.tar.gz shiftos_thereturn-d001b613fba71bcee04163492940f17a0027daa7.tar.bz2 shiftos_thereturn-d001b613fba71bcee04163492940f17a0027daa7.zip | |
Fix Graphic Picker UI.
Diffstat (limited to 'ShiftOS.WinForms/Applications/GraphicPicker.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/GraphicPicker.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/GraphicPicker.cs b/ShiftOS.WinForms/Applications/GraphicPicker.cs index 85f95bd..f299f0d 100644 --- a/ShiftOS.WinForms/Applications/GraphicPicker.cs +++ b/ShiftOS.WinForms/Applications/GraphicPicker.cs @@ -45,6 +45,12 @@ namespace ShiftOS.WinForms.Applications { InitializeComponent(); SelectedLayout = layout; + Image = old; + using(var ms = new System.IO.MemoryStream()) + { + Image.Save(ms, System.Drawing.Imaging.ImageFormat.Png); + ImageAsBinary = ms.ToArray(); + } Callback = cb; lblobjecttoskin.Text = name; @@ -123,10 +129,12 @@ namespace ShiftOS.WinForms.Applications public void OnLoad() { + Setup(); } public void OnSkinLoad() { + Setup(); } public bool OnUnload() @@ -136,6 +144,7 @@ namespace ShiftOS.WinForms.Applications public void OnUpgrade() { + Setup(); } } } |
