public SimpleSummaryItemControl(SimpleSummaryItemContainer parent)
		{
			InitializeComponent();
			Dock = DockStyle.Top;
			_parent = parent;
			if ((CreateGraphics()).DpiX > 96)
			{
				laTotal.Font = new Font(laTotal.Font.FontFamily, laTotal.Font.Size - 2, laTotal.Font.Style);
			}
			textEditItem.EnableSelectAll();
			spinEditMonthly.EnableSelectAll();
			spinEditTotal.EnableSelectAll();
			memoEditDetails.EnableSelectAll();

			pbUp.Buttonize();
			pbDown.Buttonize();
			pbDelete.Buttonize();
		}
        public SimpleSummaryItemControl(SimpleSummaryItemContainer parent)
        {
            InitializeComponent();
            Dock    = DockStyle.Top;
            _parent = parent;
            textEditItem.EnableSelectAll();
            spinEditMonthly.EnableSelectAll();
            spinEditTotal.EnableSelectAll();
            memoEditDetails.EnableSelectAll();


            var scaleFactor = Utilities.GetScaleFactor(CreateGraphics().DpiX);

            simpleLabelItemNumber.MaxSize          = RectangleHelper.ScaleSize(simpleLabelItemNumber.MaxSize, scaleFactor);
            simpleLabelItemNumber.MinSize          = RectangleHelper.ScaleSize(simpleLabelItemNumber.MinSize, scaleFactor);
            layoutControlItemUp.MaxSize            = RectangleHelper.ScaleSize(layoutControlItemUp.MaxSize, scaleFactor);
            layoutControlItemUp.MinSize            = RectangleHelper.ScaleSize(layoutControlItemUp.MinSize, scaleFactor);
            layoutControlItemDown.MaxSize          = RectangleHelper.ScaleSize(layoutControlItemDown.MaxSize, scaleFactor);
            layoutControlItemDown.MinSize          = RectangleHelper.ScaleSize(layoutControlItemDown.MinSize, scaleFactor);
            layoutControlItemTitleToggle.MaxSize   = RectangleHelper.ScaleSize(layoutControlItemTitleToggle.MaxSize, scaleFactor);
            layoutControlItemTitleToggle.MinSize   = RectangleHelper.ScaleSize(layoutControlItemTitleToggle.MinSize, scaleFactor);
            layoutControlItemTitleValue.MaxSize    = RectangleHelper.ScaleSize(layoutControlItemTitleValue.MaxSize, scaleFactor);
            layoutControlItemTitleValue.MinSize    = RectangleHelper.ScaleSize(layoutControlItemTitleValue.MinSize, scaleFactor);
            layoutControlItemMonthlyToggle.MaxSize = RectangleHelper.ScaleSize(layoutControlItemMonthlyToggle.MaxSize, scaleFactor);
            layoutControlItemMonthlyToggle.MinSize = RectangleHelper.ScaleSize(layoutControlItemMonthlyToggle.MinSize, scaleFactor);
            layoutControlItemMonthlyValue.MaxSize  = RectangleHelper.ScaleSize(layoutControlItemMonthlyValue.MaxSize, scaleFactor);
            layoutControlItemMonthlyValue.MinSize  = RectangleHelper.ScaleSize(layoutControlItemMonthlyValue.MinSize, scaleFactor);
            layoutControlItemTotalToggle.MaxSize   = RectangleHelper.ScaleSize(layoutControlItemTotalToggle.MaxSize, scaleFactor);
            layoutControlItemTotalToggle.MinSize   = RectangleHelper.ScaleSize(layoutControlItemTotalToggle.MinSize, scaleFactor);
            layoutControlItemTotalValue.MaxSize    = RectangleHelper.ScaleSize(layoutControlItemTotalValue.MaxSize, scaleFactor);
            layoutControlItemTotalValue.MinSize    = RectangleHelper.ScaleSize(layoutControlItemTotalValue.MinSize, scaleFactor);
            layoutControlItemDetailsToggle.MaxSize = RectangleHelper.ScaleSize(layoutControlItemDetailsToggle.MaxSize, scaleFactor);
            layoutControlItemDetailsToggle.MinSize = RectangleHelper.ScaleSize(layoutControlItemDetailsToggle.MinSize, scaleFactor);
            layoutControlItemDelete.MaxSize        = RectangleHelper.ScaleSize(layoutControlItemDelete.MaxSize, scaleFactor);
            layoutControlItemDelete.MinSize        = RectangleHelper.ScaleSize(layoutControlItemDelete.MinSize, scaleFactor);
        }