private void frmSim_Load(object sender, EventArgs e) { Buildings = new LinkedList <Building>(); Sentients = new LinkedList <Sentient>(); FormControls = new frmControls(); rnd = new Random(); InitializeDrawArea(); this.BackgroundImage = DrawArea; genBuildings(rnd.Next(MINBUILDINGS, MAXBUILDINGS)); genSentients(rnd.Next(MINSENTIENTS, MAXSENTIENTS)); Sentient.setLists(Sentients, Buildings); this.DoubleBuffered = true; }