protected BaseDigitalInfoSettingsControl() { InitializeComponent(); Text = "Info"; buttonXCategory.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.DigitalInfoSettingsCategoryTitle ?? buttonXCategory.Text); buttonXSubCategory.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.DigitalInfoSettingsSubCategoryTitle ?? buttonXSubCategory.Text); buttonXProduct.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.DigitalInfoSettingsProductTitle ?? buttonXProduct.Text); buttonXInfo.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.DigitalInfoSettingsInfoTitle ?? buttonXInfo.Text); buttonXLogo.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.DigitalInfoSettingsLogosTitle ?? buttonXLogo.Text); buttonXMonthlyInvestment.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.DigitalInfoSettingsMontlyInvestmentTitle ?? buttonXMonthlyInvestment.Text); buttonXTotalInvestment.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.DigitalInfoSettingsTotalInvestmentTitle ?? buttonXTotalInvestment.Text); var scaleFactor = Utilities.GetScaleFactor(CreateGraphics().DpiX); layoutControlItemCategory.MaxSize = RectangleHelper.ScaleSize(layoutControlItemCategory.MaxSize, scaleFactor); layoutControlItemCategory.MinSize = RectangleHelper.ScaleSize(layoutControlItemCategory.MinSize, scaleFactor); layoutControlItemSubCategory.MaxSize = RectangleHelper.ScaleSize(layoutControlItemSubCategory.MaxSize, scaleFactor); layoutControlItemSubCategory.MinSize = RectangleHelper.ScaleSize(layoutControlItemSubCategory.MinSize, scaleFactor); layoutControlItemProduct.MaxSize = RectangleHelper.ScaleSize(layoutControlItemProduct.MaxSize, scaleFactor); layoutControlItemProduct.MinSize = RectangleHelper.ScaleSize(layoutControlItemProduct.MinSize, scaleFactor); layoutControlItemInfo.MaxSize = RectangleHelper.ScaleSize(layoutControlItemInfo.MaxSize, scaleFactor); layoutControlItemInfo.MinSize = RectangleHelper.ScaleSize(layoutControlItemInfo.MinSize, scaleFactor); layoutControlItemLogo.MaxSize = RectangleHelper.ScaleSize(layoutControlItemLogo.MaxSize, scaleFactor); layoutControlItemLogo.MinSize = RectangleHelper.ScaleSize(layoutControlItemLogo.MinSize, scaleFactor); layoutControlItemMonthlyInvestment.MaxSize = RectangleHelper.ScaleSize(layoutControlItemMonthlyInvestment.MaxSize, scaleFactor); layoutControlItemMonthlyInvestment.MinSize = RectangleHelper.ScaleSize(layoutControlItemMonthlyInvestment.MinSize, scaleFactor); layoutControlItemTotalInvestment.MaxSize = RectangleHelper.ScaleSize(layoutControlItemTotalInvestment.MaxSize, scaleFactor); layoutControlItemTotalInvestment.MinSize = RectangleHelper.ScaleSize(layoutControlItemTotalInvestment.MinSize, scaleFactor); }
public DigitalListSettingsControl() { InitializeComponent(); Text = "Info"; BarButton = new ButtonInfo { Logo = BusinessObjects.Instance.ImageResourcesManager.DigitalRetractableBarListImage ?? Properties.Resources.DigitalSettingsList, Tooltip = String.Format("Open {0} Schedule Settings", MediaMetaData.Instance.DataTypeString), Action = () => { TabControl.SelectedTabPage = this; } }; buttonXDimensions.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.ListSettingsDimensionTitle ?? buttonXDimensions.Text); buttonXRichMedia.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.ListSettingsRichMediaTitle ?? buttonXRichMedia.Text); buttonXStrategy.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.ListSettingsStrategyTitle ?? buttonXStrategy.Text); buttonXLocation.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.ListSettingsLocationTitle ?? buttonXLocation.Text); buttonXTargeting.Text = DigitalControlsConfiguration.WrapTitle(ListManager.Instance.DefaultControlsConfiguration.ListSettingsTargetingTitle ?? buttonXTargeting.Text); var scaleFactor = Utilities.GetScaleFactor(CreateGraphics().DpiX); layoutControlItemDimensions.MaxSize = RectangleHelper.ScaleSize(layoutControlItemDimensions.MaxSize, scaleFactor); layoutControlItemDimensions.MinSize = RectangleHelper.ScaleSize(layoutControlItemDimensions.MinSize, scaleFactor); layoutControlItemRichMedia.MaxSize = RectangleHelper.ScaleSize(layoutControlItemRichMedia.MaxSize, scaleFactor); layoutControlItemRichMedia.MinSize = RectangleHelper.ScaleSize(layoutControlItemRichMedia.MinSize, scaleFactor); layoutControlItemStrategy.MaxSize = RectangleHelper.ScaleSize(layoutControlItemStrategy.MaxSize, scaleFactor); layoutControlItemStrategy.MinSize = RectangleHelper.ScaleSize(layoutControlItemStrategy.MinSize, scaleFactor); layoutControlItemLocation.MaxSize = RectangleHelper.ScaleSize(layoutControlItemLocation.MaxSize, scaleFactor); layoutControlItemLocation.MinSize = RectangleHelper.ScaleSize(layoutControlItemLocation.MinSize, scaleFactor); layoutControlItemTargeting.MaxSize = RectangleHelper.ScaleSize(layoutControlItemTargeting.MaxSize, scaleFactor); layoutControlItemTargeting.MinSize = RectangleHelper.ScaleSize(layoutControlItemTargeting.MinSize, scaleFactor); }