public PanelBuildingInfo(VisualControl parent, int shiftX, int shiftY) : base(parent, shiftX, shiftY)
        {
            panelProducts    = new PanelWithPanelEntity(4);
            panelInhabitants = new PanelWithPanelEntity(4);
            panelWarehouse   = new PanelWithPanelEntity(4);

            lblGold            = new VCLabel(this, FormMain.Config.GridSize, TopForControls(), FormMain.Config.FontCost, Color.White, 16, "");
            lblGold.Width      = 80;
            lblGold.BitmapList = Program.formMain.ilGui16;
            lblGold.ImageIndex = FormMain.GUI_16_GOLD;

            separator.ShiftY   = lblGold.NextTop();
            pageControl.ShiftY = separator.NextTop();
            pageControl.AddTab("Товары", FormMain.GUI_GOODS, panelProducts);
            pageControl.AddTab("Склад", FormMain.GUI_INVENTORY, panelWarehouse);
            pageControl.AddTab("Жители", FormMain.GUI_HOME, panelInhabitants);
            pageControl.AddTab("История", FormMain.GUI_BOOK, null);

            pageControl.ApplyMinSize();
            Width = pageControl.Width + FormMain.Config.GridSize * 2;
        }
        public PanelCreatureInfo(VisualControl parent, int shiftX, int shiftY) : base(parent, shiftX, shiftY)
        {
            panelAbilitiesAndSecSkills = new VisualControl();
            panelInventory             = new PanelWithPanelEntity(4);
            panelAbilities             = new PanelWithPanelEntity(4);
            panelSecondarySkills       = new PanelWithPanelEntity(4);

            lblKindHero = new VCLabelM2(this, FormMain.Config.GridSize, TopForControls(), Program.formMain.fontMedCaptionC, FormMain.Config.CommonCaptionPage, 16, "");
            lblKindHero.StringFormat.Alignment = StringAlignment.Near;

            bmpStateBackground           = new VCBitmap(this, FormMain.Config.GridSize, lblKindHero.NextTop(), Program.formMain.bmpBandStateCreature);
            bmpStateBackground.ShowHint += BmpState_ShowHint;
            bmpState = new VCBitmap(bmpStateBackground, 6, 5, Program.formMain.ilStateHero.GetImage(0, true, false));
            bmpState.ShowHintParent = true;
            labelNameState          = new VCLabelM2(bmpStateBackground, 36, 8, Program.formMain.fontSmallC, Color.White, 16, "");
            labelNameState.StringFormat.Alignment     = StringAlignment.Near;
            labelNameState.StringFormat.LineAlignment = StringAlignment.Center;
            labelNameState.ShowHintParent             = true;

            panelSpecialization = new VCCell(this, imgIcon.NextLeft(), imgIcon.ShiftY);
            panelWeapon         = new VCCell(this, FormMain.Config.GridSize, bmpStateBackground.NextTop());
            panelArmour         = new VCCell(this, panelWeapon.NextLeft(), panelWeapon.ShiftY);

            lvGold            = new VCLabelValue(this, FormMain.Config.GridSize, panelWeapon.NextTop(), Color.White);
            lvGold.ImageIndex = FormMain.GUI_16_GOLD;

            separator.ShiftY   = lvGold.NextTop();
            pageControl.ShiftY = separator.NextTop();
            pageControl.AddTab("Статистика", FormMain.GUI_SCROLL, null);
            pageControl.AddTab("Инвентарь", FormMain.GUI_INVENTORY, panelInventory);
            pageControl.AddTab("Способности и навыки", FormMain.GUI_TARGET, panelAbilitiesAndSecSkills);
            pageControl.AddTab("История", FormMain.GUI_BOOK, null);

            panelAbilitiesAndSecSkills.AddControl(panelAbilities);
            panelAbilitiesAndSecSkills.AddControl(panelSecondarySkills);
            panelSecondarySkills.ShiftY = panelAbilities.NextTop();// Это для расчета минимальной высоты
            panelAbilitiesAndSecSkills.ArrangeControl(panelSecondarySkills);

            pageControl.ApplyMinSize();
            Width  = pageControl.Width + FormMain.Config.GridSize * 2;
            Height = pageControl.NextTop();

            lblKindHero.Width = Width - lblKindHero.ShiftX - FormMain.Config.GridSize;

            return;

            /*lblLevel = GuiUtils.CreateLabel(this, Config.GRID_SIZE, TopForControls());
             * lblHealth = GuiUtils.CreateLabel(this, Config.GRID_SIZE, lblLevel.Top + lblLevel.Height + Config.GRID_SIZE);
             * lblMana = GuiUtils.CreateLabel(this, Config.GRID_SIZE, lblHealth.Top + lblHealth.Height + Config.GRID_SIZE);
             *
             * lblStrength = GuiUtils.CreateLabelParameter(this, Config.GRID_SIZE, lblMana.Top + lblMana.Height + Config.GRID_SIZE, FormMain.GUI_PARAMETER_STRENGTH);
             * lblDexterity = GuiUtils.CreateLabelParameter(this, Config.GRID_SIZE, lblStrength.Top + lblStrength.Height + Config.GRID_SIZE, FormMain.GUI_PARAMETER_DEXTERITY);
             * lblMagic = GuiUtils.CreateLabelParameter(this, Config.GRID_SIZE, lblDexterity.Top + lblDexterity.Height + Config.GRID_SIZE, FormMain.GUI_PARAMETER_MAGIC);
             * lblVitality = GuiUtils.CreateLabelParameter(this, Config.GRID_SIZE, lblMagic.Top + lblMagic.Height + Config.GRID_SIZE, FormMain.GUI_PARAMETER_VITALITY);
             * lblSpeed = GuiUtils.CreateLabelParameter(this, Config.GRID_SIZE, lblVitality.Top + lblVitality.Height + Config.GRID_SIZE, FormMain.GUI_PARAMETER_SPEED_ATTACK);
             *
             * //            lblStamina = GuiUtils.CreateLabelParameter(this, Config.GRID_SIZE, lblWisdom.Top + lblWisdom.Height + Config.GRID_SIZE, FormMain.GUI_PARAMETER_STAMINA);
             * lblAttackMelee = GuiUtils.CreateLabelParameter(this, lblStrength.Left + lblStrength.Width + Config.GRID_SIZE, lblStrength.Top, FormMain.GUI_PARAMETER_ATTACK_MELEE);
             * lblAttackRange = GuiUtils.CreateLabelParameter(this, lblDexterity.Left + lblDexterity.Width + Config.GRID_SIZE, lblDexterity.Top, FormMain.GUI_PARAMETER_ATTACK_RANGE);
             * lblAttackMagic = GuiUtils.CreateLabelParameter(this, lblMagic.Left + lblMagic.Width + Config.GRID_SIZE, lblMagic.Top, FormMain.GUI_PARAMETER_ATTACK_MAGIC);
             *
             * lblDefenseMelee = GuiUtils.CreateLabelParameter(this, lblAttackMelee.Left + lblAttackMelee.Width + Config.GRID_SIZE, lblAttackMelee.Top, FormMain.GUI_PARAMETER_DEFENSE_MELEE);
             * lblDefenseRange = GuiUtils.CreateLabelParameter(this, lblAttackRange.Left + lblAttackRange.Width + Config.GRID_SIZE, lblAttackRange.Top, FormMain.GUI_PARAMETER_DEFENSE_RANGE);
             * lblDefenseMagic = GuiUtils.CreateLabelParameter(this, lblAttackMagic.Left + lblAttackMagic.Width + Config.GRID_SIZE, lblAttackMagic.Top, FormMain.GUI_PARAMETER_DEFENSE_MAGIC);
             *
             * // Слоты инвентаря
             * PanelEntity pb;
             * for (int y = 0; y < FormMain.SLOTS_LINES; y++)
             * {
             *  for (int x = 0; x < FormMain.SLOTS_IN_LINE; x++)
             *  {
             *      pb = new PanelEntity();
             *      pb.Parent = this;
             *      pb.Left = Config.GRID_SIZE + ((pb.Width + Config.GRID_SIZE) * x);
             *      pb.Top = GuiUtils.NextTop(lblSpeed) + ((pb.Height + Config.GRID_SIZE) * y);
             *
             *      slots[x + y * FormMain.SLOTS_IN_LINE] = pb;
             *  }
             * }*/
        }