Finished lock command
This commit is contained in:
parent
b2641e9cfa
commit
2f1b1e3aad
1 changed files with 7 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue