Пример #1
0
 /// <summary>
 /// Adds an ExeModule to exes.
 /// </summary>
 /// <param name="exe">The ExeModule to add.</param>
 public void addExe(ExeModule exe);
Пример #2
0
 public void addExe(ExeModule exe)
 {
     var computer = connectedComp == null ? thisComputer : connectedComp;
     if (exe.needsProxyAccess && computer.proxyActive)
         write("Proxy Active -- Cannot Execute");
     else if (ramAvaliable >= exe.ramCost)
     {
         exe.LoadContent();
         exes.Add(exe);
     }
     else
     {
         ram.FlashMemoryWarning();
         write("Insufficient Memory");
     }
 }