Example #1
0
        void InitializeLan()
        {
            LANList.Clear();
            Ethernet e = new Ethernet();

            e.name  = "Modem 24k";
            e.Cost  = Constance.MIN_COST * 10;
            e.speed = Constance.MIN_SPEED_LAN * 1.0f;
            LANList.Add(e);
        }
Example #2
0
 public void InstallEthernet(Ethernet _ethCard)
 {
     if (lan.name != string.Empty)
     {
         int sale = (int)(lan.Cost / PRICE_COST);
         OnSale(sale);
         lan = _ethCard;
     }
     else
     {
         lan = _ethCard;
     }
 }
Example #3
0
 public Comp()
 {
     cpu.Clear();
     for (int i = 0; i < MAX_nSOCKET; i++)
     {
         cpu.Add(new CPU());
     }
     ram.Clear();
     for (int i = 0; i < MAX_nRAM; i++)
     {
         ram.Add(new RAM());
     }
     hdd.Clear();
     for (int i = 0; i < MAX_nSATA; i++)
     {
         hdd.Add(new Hard());
     }
     mboard = new MotherBoard();
     lan    = new Ethernet();
 }