Exemple #1
0
        private void LoadFlyweightTiles()
        {
            if (this.Tool == Tool.Tile)
            {
                List <BaseTile>  flyweightTiles = TileFactory.GetFlyweightTiles();
                List <IIconable> tools          = new List <IIconable>();

                foreach (IIconable flyweightTile in flyweightTiles)
                {
                    tools.Add(flyweightTile);
                }

                LoadTools(tools);
            }
        }