//ライセンス情報はAgeOnフォルダのLISENCEフォルダを参照してください
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using System.Drawing;
using System.Diagnostics;

namespace nispi
{
    class MapFormShowStyle
    {
        public MapFormShowStyle()
        {
        }

        public void ReSize()
        {
            Const.mapForm.CountryIndexTabControlParts.Size =
                new Size(Const.mapForm.mainSplitContainerParts.SplitterDistance - 2,
                    Const.mapForm.mainSplitContainerParts.Size.Height);

            Const.mapForm.MapControlTabControlParts.Size =
                new Size(Const.mapForm.mainSplitContainerParts.Size.Width - Const.mapForm.mainSplitContainerParts.SplitterDistance - 4,
                    Const.mapForm.mainSplitContainerParts.Size.Height);

            //MapMainFormConst.mapInfoMain.panelMainParts.Size =
            //    new Size(Const.mapForm.mainSplitContainerParts.SplitterDistance - 3,
            //        Const.mapForm.mainSplitContainerParts.Size.Height - Const.mapForm.subMainSplitContainerParts.SplitterDistance - 4);

            MapMainFormConst.mapInfoMain.labelInfoParts.Size =
                new Size(MapMainFormConst.mapInfoMain.panelMainParts.Size.Width - 5, 22);

            MapMainFormConst.mapInfoMain.textInfomationParts.Size =
                new Size(MapMainFormConst.mapInfoMain.panelMainParts.Size.Width - 4,
                    MapMainFormConst.mapInfoMain.panelMainParts.Size.Height - 28);

            MapMainFormConst.countryIndexTabMain.countryIndexView.countryIndexControls.treeViewParts.Size =
                new Size(Const.mapForm.CountryIndexTabControlParts.Size.Width - 4,
                    Const.mapForm.CountryIndexTabControlParts.Size.Height - 62);

            MapMainFormConst.countryIndexTabMain.japanIndexView.countryIndexControls.treeViewParts.Size =
                new Size(Const.mapForm.CountryIndexTabControlParts.Size.Width - 4,
                    Const.mapForm.CountryIndexTabControlParts.Size.Height - 62);

            MapMainFormConst.mapListTabMain.worldMapControlView.panelCommandParts.Size =
                new Size(Const.mapForm.MapControlTabControlParts.Size.Width - 4,
                    Const.mapForm.MapControlTabControlParts.Size.Height - 62);

            MapMainFormConst.mapListTabMain.japanMapControlView.panelCommandParts.Size =
                new Size(Const.mapForm.MapControlTabControlParts.Size.Width - 4,
                    Const.mapForm.MapControlTabControlParts.Size.Height - 62);

            //地図の部分

            MapMainFormConst.mapListTabMain.japanMapControlView.panelMapParts.Size =
                new Size(Const.mapForm.MapControlTabControlParts.Size.Width - 4,
                    Const.mapForm.MapControlTabControlParts.Size.Height - 67);

            MapMainFormConst.mapListTabMain.worldMapControlView.panelMapParts.Size =
                new Size(Const.mapForm.MapControlTabControlParts.Size.Width - 4,
                    Const.mapForm.MapControlTabControlParts.Size.Height - 67);

        }
    }
}