/// <summary>
 /// Take some action based on the command that came from Merlin.
 /// </summary>
 private void TakeAction(object obj)
 {
     //progressRing.IsActive = true;
     SysOps ops = new SysOps();
     IntegrationProvider _provider = new IntegrationProvider("http://merlinserver.jit.su", codeBox.Password);
     Command command = _provider.GetCommand();
     if (command.id == 0) //means there is not command to execute.
     {
         //_timer.Change(3, 10000);
         Console.WriteLine("No command received.");
     }
     else
     {
         switch (command.command_text)
         {
             case "lock":
                 ops.LockComputer();
                 _provider.SendConfirmation(command.id, true);
                 Console.WriteLine("Locked Computer now changing timer");
                 //_timer.Change(System.Threading.Timeout.Infinite, 5000);
                 break;
             case "send mailjohn\n":
                 ops.SendMail(null, null, null, command.file);
                 _provider.SendConfirmation(command.id, true);
                 Console.WriteLine("Mail Sent now changing timer");
                 //_timer.Change(System.Threading.Timeout.Infinite, 5000);
                 break;
             default:
                 Console.WriteLine("Invalid Command Saeen! :{)");
                 break;
         }
     }
 }
 public void SendMailTest()
 {
     SysOps target = new SysOps(); // TODO: Initialize to an appropriate value
     string to = string.Empty; // TODO: Initialize to an appropriate value
     string subj = string.Empty; // TODO: Initialize to an appropriate value
     string msg = string.Empty; // TODO: Initialize to an appropriate value
     string fileName = string.Empty; // TODO: Initialize to an appropriate value
     target.SendMail(to, subj, msg, fileName);
     //Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }