Пример #1
0
        public void AddScore(int score)
        {
            IFrame openFrame = Frames.Find(fr => fr.IsClosed == false);

            if (openFrame == null)
            {
                openFrame = AddNewFrame();
                openFrame.AddScore(score);
            }
            else
            {
                openFrame.AddScore(score);
            }
        }