Exemple #1
0
        public void prepareForLoad()
        {
            this.blocksArray = new List <BlockPanel>();

            for (int x = 0; x < this.stringBlocksArray.Count; x++)
            {
                Type       type     = Type.GetType(this.stringBlocksArray[x][0]);
                BlockPanel newBlock = (BlockPanel)Activator.CreateInstance(type);
                newBlock.applyProperties(this.stringBlocksArray[x]);

                this.blocksArray.Add(newBlock);
            }
        }