public PanelConstruction(VisualControl parent, int shiftX, int shiftY) : base(parent, shiftX, shiftY)
        {
            btnBuyOrUpgrade           = new VCIconButton(this, imgMapObject.NextLeft(), imgMapObject.ShiftY, Program.formMain.ilGui, FormMain.GUI_BUILD);
            btnBuyOrUpgrade.Click    += BtnBuyOrUprgade_Click;
            btnBuyOrUpgrade.ShowHint += BtnBuyOrUpgrade_ShowHint;

            btnHeroes = new VCIconButton(this, imgMapObject.ShiftX, imgMapObject.NextTop(), Program.formMain.imListObjectsCell, -1);

            //if ((TypeConstruction.TrainedHero != null) && !(TypeConstruction is TypeEconomicConstruction))
            //{
            btnHireHero           = new VCIconButton(this, imgMapObject.NextLeft(), btnBuyOrUpgrade.NextTop(), Program.formMain.imListObjectsCell, -1);
            btnHireHero.Click    += BtnHireHero_Click;
            btnHireHero.ShowHint += BtnHireHero_ShowHint;
            //}
            //else
            //    btnHeroes.Visible = false;

            //if (TypeConstruction is TypeEconomicConstruction)
            //{
            lblIncome                        = new VCLabelValue(this, imgMapObject.NextLeft() - (FormMain.Config.GridSize * 4), imgMapObject.NextTop(), Color.Green);
            lblIncome.ImageIndex             = FormMain.GUI_16_INCOME;
            lblIncome.StringFormat.Alignment = StringAlignment.Near;
            //}

            Height = btnHeroes.NextTop();
            Width  = btnBuyOrUpgrade.NextLeft();
            lblNameMapObject.Width = Width - (lblNameMapObject.ShiftX * 2);
        }
        public PanelLair(VisualControl parent, int shiftX, int shiftY) : base(parent, shiftX, shiftY)
        {
            btnAction           = new VCIconButton(this, imgMapObject.NextLeft(), imgMapObject.ShiftY, Program.formMain.ilGui, FormMain.GUI_BATTLE);
            btnAction.Click    += BtnAction_Click;
            btnAction.ShowHint += BtnAction_ShowHint;

            btnCancel           = new VCIconButton(this, btnAction.ShiftX, btnAction.NextTop(), Program.formMain.ilGui, FormMain.GUI_FLAG_CANCEL);
            btnCancel.Click    += BtnCancel_Click;
            btnCancel.ShowHint += BtnCancel_ShowHint;

            btnInhabitants           = new VCIconButton(this, imgMapObject.ShiftX, imgMapObject.NextTop(), Program.formMain.ilGui, FormMain.GUI_HOME);
            btnInhabitants.Click    += BtnInhabitants_Click;
            btnInhabitants.ShowHint += BtnInhabitants_ShowHint;

            btnHeroes           = new VCIconButton(this, btnInhabitants.NextLeft(), btnInhabitants.ShiftY, Program.formMain.ilGui, FormMain.GUI_TARGET);
            btnHeroes.Click    += BtnHeroes_Click;
            btnHeroes.ShowHint += BtnHeroes_ShowHint;

            Height = btnInhabitants.NextTop();
            Width  = btnAction.NextLeft();
        }