From 2f1b1e3aadee383934e62b6de5de56a3d3b14344 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 30 Dec 2014 20:55:50 +0000 Subject: [PATCH] Finished lock command --- decode.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/decode.cs b/decode.cs index 1e5c4c4..5947cea 100644 --- a/decode.cs +++ b/decode.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; - +using System.Drawing; namespace Pithos { class decode @@ -14,12 +14,17 @@ namespace Pithos text = text.Replace("$user", Environment.UserName); return text; } + + public void command(string text) { string[] args = text.Substring(1).Split(' ');//splits string and removed character + if (args[0] == "lock") { - + Program.MW.display("Locking Software...", Color.Red); + Program.MW.Hide(); + Program.UL.Show(); } } }