diff options
| author | Michael <[email protected]> | 2017-06-28 08:19:44 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-28 08:19:44 -0400 |
| commit | 00cd41ea928781ad760cff3d14bd78d60758679d (patch) | |
| tree | 1ce9714d71831cef82ebfd161827a4db54d90405 /ShiftOS.WinForms/Applications/Artpad.cs | |
| parent | cd2190f6caa16e8d909aa1d662996d690772a67f (diff) | |
| download | shiftos_thereturn-00cd41ea928781ad760cff3d14bd78d60758679d.tar.gz shiftos_thereturn-00cd41ea928781ad760cff3d14bd78d60758679d.tar.bz2 shiftos_thereturn-00cd41ea928781ad760cff3d14bd78d60758679d.zip | |
Slight... very slight... fileskimmer mods
Diffstat (limited to 'ShiftOS.WinForms/Applications/Artpad.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Artpad.cs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/Artpad.cs b/ShiftOS.WinForms/Applications/Artpad.cs index e4d16bd..b584ac8 100644 --- a/ShiftOS.WinForms/Applications/Artpad.cs +++ b/ShiftOS.WinForms/Applications/Artpad.cs @@ -42,13 +42,17 @@ using System.Diagnostics; namespace ShiftOS.WinForms.Applications { + [FileHandler("Artpad Picture", ".pic", "fileiconpicture")] + [FileHandler("JPEG Picture", ".jpg", "fileiconpicture")] + [FileHandler("PNG Picture", ".png", "fileiconpicture")] + [FileHandler("Bitmap Picture", ".bmp", "fileiconpicture")] [MultiplayerOnly] [Launcher("{TIITLE_ARTPAD}", true, "al_artpad", "{AL_GRAPHICS}")] [RequiresUpgrade("artpad")] [WinOpen("{WO_ARTPAD}")] [DefaultIcon("iconArtpad")] [DefaultTitle("{TITLE_ARTPAD}")] - public partial class Artpad : UserControl, IShiftOSWindow + public partial class Artpad : UserControl, IShiftOSWindow, IFileHandler { /// <summary> /// artpad_'s GUI. @@ -1589,6 +1593,12 @@ namespace ShiftOS.WinForms.Applications setmagnification(); } + + public void OpenFile(string file) + { + AppearanceManager.SetupWindow(this); + LoadPicture(file); + } } public class undo |
