/// <summary>
 /// Initializes a new instance of the <see cref="PreviewDictionary"/> class.
 /// </summary>
 /// <param name="user">The user.</param>
 /// <remarks>Documented by Dev03, 2009-03-23</remarks>
 public PreviewDictionary(IUser user)
 {
     parent = new ParentClass(user, this);
     cards = new PreviewCards(parent.GetChildParentClass(this));
     userSettings = new PreviewSettings(parent.GetChildParentClass(this));
     allowedSettings = new PreviewSettings(parent.GetChildParentClass(this));
     defaultSettings = new PreviewSettings(parent.GetChildParentClass(this));
     statistics = new PreviewStatistics();
 }
Esempio n. 2
0
        internal XmlBoxes(XmlDictionary dictionary, ParentClass parent)
        {
            Parent = parent;
            m_Dictionary = dictionary;

            m_Box = new List<IBox>(dictionary.NumberOfBoxes + 1);
            for (int i = 0; i < dictionary.NumberOfBoxes + 1; i++) //including pool and box 10
            {
                m_Box.Add(new XmlBox(m_Dictionary, i, Parent.GetChildParentClass(this)));
            }
            m_Box[0].MaximalSize = Int32.MaxValue;
            m_Box[dictionary.NumberOfBoxes].MaximalSize = Int32.MaxValue;
        }