Пример #1
0
        protected void OpenDesignerLoad(string fileName, string level)
        {
            Designer.LoadLevel(fileName, level);
            int rows = Designer.GetRowCount();
            int cols = Designer.GetColumnCount();

            View.DesignerLoadLevel();

            for (int r = 0; r < rows; r++)
            {
                for (int c = 0; c < cols; c++)
                {
                    View.CreateLevelGridButton(r, c, Designer.WhatsAt(r, c));
                }
            }
        }