aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/GraphicPicker.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-01 17:45:59 -0400
committerMichael <[email protected]>2017-06-01 17:45:59 -0400
commitd001b613fba71bcee04163492940f17a0027daa7 (patch)
treedb59cebdf95e761cb47f177bc206603a2f471b3e /ShiftOS.WinForms/Applications/GraphicPicker.cs
parent03cf891c53cc648bb1ed4ea3d78755c1a440a713 (diff)
downloadshiftos_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.cs9
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();
}
}
}