Ejemplo n.º 1
0
        public CreateNewProjectModelLevel getMyCopy()
        {
            CreateNewProjectModelLevel myCopy = new CreateNewProjectModelLevel();

            for (int s = 0; s < sheets.Count; s++)
            {
                Tuple <string, int> curTuple = sheets[s];
                myCopy.sheets.Add(new Tuple <string, int>(string.Copy(curTuple.Item1), curTuple.Item2));
            }

            return(myCopy);
        }
Ejemplo n.º 2
0
        public void addLevels(int levelsNumber, int startNumber)
        {
            for (int l = 0; l < levelsNumber; l++)
            {
                int norLevelNumber = 1 + otherLevels.Count;
                CreateNewProjectModelLevel norLevel = new CreateNewProjectModelLevel();

                for (int s = 0; s < firstLevel.sheets.Count; s++)
                {
                    int    norIndex  = norLevelNumber + startNumber;
                    string norString = "" + firstLevel.sheets[s].Item1 + " (" + norIndex.ToString() + ")";
                    int    norInt    = firstLevel.sheets[s].Item2;

                    norLevel.sheets.Add(new Tuple <string, int>(norString, norInt));
                }

                otherLevels.Add(norLevel);
            }
        }