Esempio n. 1
0
        public void AddConfiguration(String configurationName, Box box)
        {
            if (configurationName == null || box == null)
                return;

            if (!Configurations.ContainsKey(configurationName))
                Configurations.Add(configurationName, box);

            if (Configurations.Count == 1)
            {
                DefaultConfiguration = configurationName;
                SetCurrentConfiguration(configurationName);
            }
        }
Esempio n. 2
0
        public MultiBox(Alignment alignment = DEFAULT_ALIGNMENT, Int32 vSize = DEFAULT_SIZE, Int32 hSize = DEFAULT_SIZE)
            : base()
        {
            Alignment = alignment;
            Size = 0;

            VSize = vSize;
            CurrentVPointer = 0;

            HSize = hSize;
            CurrentHPointer = 0;

            ExtendedItems = new List<Widget>();

            if (Alignment == BlazeraLib.Alignment.Vertical)
                MainBox = new VAutoSizeBox(true, null, 0F);
            else
                MainBox = new HAutoSizeBox(true, null, 0F);

            AddWidget(MainBox);
        }