diff options
Diffstat (limited to 'ShiftOS.WinForms/Applications/Installer.cs')
| -rw-r--r-- | ShiftOS.WinForms/Applications/Installer.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ShiftOS.WinForms/Applications/Installer.cs b/ShiftOS.WinForms/Applications/Installer.cs index 284ac2c..ec93735 100644 --- a/ShiftOS.WinForms/Applications/Installer.cs +++ b/ShiftOS.WinForms/Applications/Installer.cs @@ -19,7 +19,8 @@ namespace ShiftOS.WinForms.Applications [MultiplayerOnly] [DefaultTitle("{TITLE_INSTALLER}")] [Launcher("{TITLE_INSTALLER}", true, "al_installer", "{AL_UTILITIES}")] - public partial class Installer : UserControl, IShiftOSWindow + [FileHandler("Name Pack", ".names", "fileiconnames")] + public partial class Installer : UserControl, IShiftOSWindow, IFileHandler { public Installer() { @@ -27,6 +28,13 @@ namespace ShiftOS.WinForms.Applications lbtitle.Text = "Select file"; } + public void OpenFile(string path) + { + var stpInstall = new StpInstallation(path); + AppearanceManager.SetupWindow(this); + InitiateInstall(stpInstall); + } + public void InitiateInstall(Installation install) { pnlselectfile.Hide(); |
