diff options
| author | Michael <[email protected]> | 2017-06-23 20:20:38 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-06-23 20:20:38 -0400 |
| commit | 1661f9a5bd46dbd7d2586787c55bfc407c027629 (patch) | |
| tree | d5ff99e5cc8f3db8a9236b247886866601b915b9 /ShiftOS.WinForms/VirtualEnvironments.cs | |
| parent | 42a7829864cd6cf2dff2a21f9dbed208b154c6f7 (diff) | |
| download | shiftos_thereturn-1661f9a5bd46dbd7d2586787c55bfc407c027629.tar.gz shiftos_thereturn-1661f9a5bd46dbd7d2586787c55bfc407c027629.tar.bz2 shiftos_thereturn-1661f9a5bd46dbd7d2586787c55bfc407c027629.zip | |
hacking work
Me: [squeaky] IT'S WORKING!!
Phil: Michael... You just creeped me out...
Diffstat (limited to 'ShiftOS.WinForms/VirtualEnvironments.cs')
| -rw-r--r-- | ShiftOS.WinForms/VirtualEnvironments.cs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/VirtualEnvironments.cs b/ShiftOS.WinForms/VirtualEnvironments.cs new file mode 100644 index 0000000..5faa6ff --- /dev/null +++ b/ShiftOS.WinForms/VirtualEnvironments.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShiftOS.WinForms +{ + public static class VirtualEnvironments + { + private static List<ShiftOSEnvironment> _environments = new List<ShiftOSEnvironment>(); + + public static void Create(string sysname, List<ShiftOS.Objects.ClientSave> users, ulong cp, ShiftOS.Objects.ShiftFS.Directory fs) + { + var env = new ShiftOSEnvironment + { + SystemName = sysname, + Users = users, + Codepoints = cp, + Filesystem = fs + }; + _environments.Add(env); + } + + public static void Clear() + { + _environments.Clear(); + } + + public static ShiftOSEnvironment Get(string sysname) + { + return _environments.FirstOrDefault(x => x.SystemName == sysname); + } + } + + public class ShiftOSEnvironment + { + public string SystemName { get; set; } + public ulong Codepoints { get; set; } + public ShiftOS.Objects.ShiftFS.Directory Filesystem { get; set; } + public List<ShiftOS.Objects.ClientSave> Users { get; set; } + } +} |
