Ejemplo n.º 1
0
        private void UpdateControl(int index, bool visible)
        {
            BaseChildControl childControl = this.childControls[index];

            childControl.Visible = visible;
            if (childControl.Dock != DockStyle.Fill)
            {
                childControl.Dock = DockStyle.Fill;
            }
        }
Ejemplo n.º 2
0
        private void Initialize()
        {
            this.selectedIndex = 0;
            for (int i = 0; i < 3; i++)
            {
                UpdateLabel(i, i == this.selectedIndex);
            }

            UpdateLinksButtons(false, false, false, false, false);

            for (int i = 0; i < this.childControls.Length; i++)
            {
                BaseChildControl childControl = this.childControls[i];
                childControl.InitializeControl(this);
            }
            UpdateControl(this.selectedIndex, true);
        }