public DigitalProductPackageEditorControl(DigitalEditorsContainer container)
		{
			InitializeComponent();
			Text = ListManager.Instance.DefaultControlsConfiguration.SectionsProductPackageTitle ?? "Digital Package";
			_container = container;

			repositoryItemComboBoxCategory.Items.Clear();
			repositoryItemComboBoxCategory.Items.AddRange(ListManager.Instance.ProductSources
				.Where(ps => ps.Category != null)
				.Select(ps => ps.Category.Name)
				.Distinct()
				.ToArray());
			repositoryItemComboBoxLocation.Items.Clear();
			repositoryItemComboBoxLocation.Items.AddRange(ListManager.Instance.ColumnPositions);

			bandedGridColumnCategory.Caption =
				ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsCategoryTitle ??
				bandedGridColumnCategory.Caption;
			bandedGridColumnGroup.Caption =
				ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsSubCategoryTitle ??
				bandedGridColumnGroup.Caption;
			bandedGridColumnProduct.Caption =
				ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsProductTitle ??
				bandedGridColumnProduct.Caption;
			bandedGridColumnInfo.Caption = ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsInfoTitle ??
										   bandedGridColumnInfo.Caption;
			bandedGridColumnLocation.Caption =
				ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsLocationTitle ??
				bandedGridColumnLocation.Caption;
			bandedGridColumnRate.Caption = ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsRateTitle ??
										   bandedGridColumnRate.Caption;
			bandedGridColumnInvestment.Caption =
				ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsInvestmentTitle ??
				bandedGridColumnInvestment.Caption;
			bandedGridColumnImpressions.Caption =
				ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsImpressionsTitle ??
				bandedGridColumnImpressions.Caption;
			bandedGridColumnCPM.Caption = ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsCPMTitle ??
										  bandedGridColumnCPM.Caption;

			if (CreateGraphics().DpiX > 96)
			{
				var font = new Font(styleController.Appearance.Font.FontFamily, styleController.Appearance.Font.Size - 2,
					styleController.Appearance.Font.Style);
				styleController.Appearance.Font = font;
				styleController.AppearanceDisabled.Font = font;
				styleController.AppearanceDropDown.Font = font;
				styleController.AppearanceDropDownHeader.Font = font;
				styleController.AppearanceFocused.Font = font;
				styleController.AppearanceReadOnly.Font = font;
				advBandedGridView.Appearance.BandPanel.Font = font;
				advBandedGridView.Appearance.EvenRow.Font = font;
				advBandedGridView.Appearance.FocusedCell.Font = font;
				advBandedGridView.Appearance.FocusedRow.Font = font;
				advBandedGridView.Appearance.HeaderPanel.Font = new Font(font.FontFamily, font.Size, FontStyle.Bold);
				advBandedGridView.Appearance.OddRow.Font = font;
				advBandedGridView.Appearance.Row.Font = font;
				advBandedGridView.Appearance.SelectedRow.Font = font;
			}
		}
Exemple #2
0
        public DigitalProductPackageEditorControl(DigitalEditorsContainer container)
        {
            InitializeComponent();
            Text       = ListManager.Instance.DefaultControlsConfiguration.SectionsProductPackageTitle ?? "Digital Package";
            _container = container;

            repositoryItemComboBoxCategory.Items.Clear();
            repositoryItemComboBoxCategory.Items.AddRange(ListManager.Instance.ProductSources
                                                          .Where(ps => ps.Category != null)
                                                          .Select(ps => ps.Category.Name)
                                                          .Distinct()
                                                          .ToArray());
            repositoryItemComboBoxLocation.Items.Clear();
            repositoryItemComboBoxLocation.Items.AddRange(ListManager.Instance.ColumnPositions);

            bandedGridColumnCategory.Caption =
                ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsCategoryTitle ??
                bandedGridColumnCategory.Caption;
            bandedGridColumnGroup.Caption =
                ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsSubCategoryTitle ??
                bandedGridColumnGroup.Caption;
            bandedGridColumnProduct.Caption =
                ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsProductTitle ??
                bandedGridColumnProduct.Caption;
            bandedGridColumnInfo.Caption = ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsInfoTitle ??
                                           bandedGridColumnInfo.Caption;
            bandedGridColumnLocation.Caption =
                ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsLocationTitle ??
                bandedGridColumnLocation.Caption;
            bandedGridColumnRate.Caption = ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsRateTitle ??
                                           bandedGridColumnRate.Caption;
            bandedGridColumnInvestment.Caption =
                ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsInvestmentTitle ??
                bandedGridColumnInvestment.Caption;
            bandedGridColumnImpressions.Caption =
                ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsImpressionsTitle ??
                bandedGridColumnImpressions.Caption;
            bandedGridColumnCPM.Caption = ListManager.Instance.DefaultControlsConfiguration.ProductPackageColumnsCPMTitle ??
                                          bandedGridColumnCPM.Caption;

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

            gridBandId.Width = (Int32)(gridBandId.Width * scaleFactor.Width);
            bandedGridColumnImpressions.Width = (Int32)(bandedGridColumnImpressions.Width * scaleFactor.Width);
            bandedGridColumnCPM.Width         = (Int32)(bandedGridColumnCPM.Width * scaleFactor.Width);
            gridBandImpressions.Width         = (Int32)(gridBandImpressions.Width * scaleFactor.Width);
            bandedGridColumnInvestment.Width  = (Int32)(bandedGridColumnInvestment.Width * scaleFactor.Width);
            bandedGridColumnRate.Width        = (Int32)(bandedGridColumnRate.Width * scaleFactor.Width);
            gridBandInvestment.Width          = (Int32)(gridBandInvestment.Width * scaleFactor.Width);
            gridBandFormula.Width             = (Int32)(gridBandFormula.Width * scaleFactor.Width);
            emptySpaceItemTop.MaxSize         = RectangleHelper.ScaleSize(emptySpaceItemTop.MaxSize, scaleFactor);
            emptySpaceItemTop.MinSize         = RectangleHelper.ScaleSize(emptySpaceItemTop.MinSize, scaleFactor);
        }
Exemple #3
0
        public DigitalSummaryEditorControl(DigitalEditorsContainer container)
        {
            InitializeComponent();
            Text       = ListManager.Instance.DefaultControlsConfiguration.SectionsSummaryTitle ?? "Digital Summary";
            _container = container;

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

            layoutControlItemStatementToggle.MaxSize  = RectangleHelper.ScaleSize(layoutControlItemStatementToggle.MaxSize, scaleFactor);
            layoutControlItemStatementToggle.MinSize  = RectangleHelper.ScaleSize(layoutControlItemStatementToggle.MinSize, scaleFactor);
            emptySpaceItemInvestemtsSeparator.MaxSize = RectangleHelper.ScaleSize(emptySpaceItemInvestemtsSeparator.MaxSize, scaleFactor);
            emptySpaceItemInvestemtsSeparator.MinSize = RectangleHelper.ScaleSize(emptySpaceItemInvestemtsSeparator.MinSize, scaleFactor);
        }
		public DigitalSummaryEditorControl(DigitalEditorsContainer container)
		{
			InitializeComponent();
			Text = ListManager.Instance.DefaultControlsConfiguration.SectionsSummaryTitle ?? "Digital Summary";
			_container = container;
			if (CreateGraphics().DpiX > 96)
			{
				var font = new Font(styleController.Appearance.Font.FontFamily, styleController.Appearance.Font.Size - 2,
					styleController.Appearance.Font.Style);
				styleController.Appearance.Font = font;
				styleController.AppearanceDisabled.Font = font;
				styleController.AppearanceDropDown.Font = font;
				styleController.AppearanceDropDownHeader.Font = font;
				styleController.AppearanceFocused.Font = font;
				styleController.AppearanceReadOnly.Font = font;
			}
		}
		public DigitalProductEditorControl(DigitalEditorsContainer container)
		{
			InitializeComponent();
			Text = ListManager.Instance.DefaultControlsConfiguration.SectionsProductTitle ?? "Digital Onesheets";
			_container = container;
			if (CreateGraphics().DpiX > 96)
			{
				var font = new Font(styleController.Appearance.Font.FontFamily, styleController.Appearance.Font.Size - 2, styleController.Appearance.Font.Style);
				styleController.Appearance.Font = font;
				styleController.AppearanceDisabled.Font = font;
				styleController.AppearanceDropDown.Font = font;
				styleController.AppearanceDropDownHeader.Font = font;
				styleController.AppearanceFocused.Font = font;
				styleController.AppearanceReadOnly.Font = font;
				checkEditDuration.Font = font;
				checkEditMonths.Font = font;
				checkEditWeeks.Font = font;
			}
			spinEditDuration.EnableSelectAll();
			AssignCloseActiveEditorsOnOutsideClick(pnHeader);
		}
Exemple #6
0
        public DigitalStandalonePackageEditorControl(DigitalEditorsContainer container)
        {
            InitializeComponent();

            Text       = ListManager.Instance.DefaultControlsConfiguration.SectionsStandalonePackageTitle ?? "Speed Builder";
            _container = container;

            repositoryItemComboBoxCategory.Items.Clear();
            repositoryItemComboBoxCategory.Items.AddRange(ListManager.Instance.ProductSources
                                                          .Where(ps => ps.Category != null)
                                                          .Select(ps => ps.Category.Name)
                                                          .Distinct()
                                                          .ToArray());
            repositoryItemComboBoxLocation.Items.Clear();
            repositoryItemComboBoxLocation.Items.AddRange(ListManager.Instance.ColumnPositions);

            bandedGridColumnCategory.Caption    = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsCategoryTitle ?? bandedGridColumnCategory.Caption;
            bandedGridColumnGroup.Caption       = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsSubCategoryTitle ?? bandedGridColumnGroup.Caption;
            bandedGridColumnProduct.Caption     = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsProductTitle ?? bandedGridColumnProduct.Caption;
            bandedGridColumnInfo.Caption        = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsInfoTitle ?? bandedGridColumnInfo.Caption;
            bandedGridColumnLocation.Caption    = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsLocationTitle ?? bandedGridColumnLocation.Caption;
            bandedGridColumnRate.Caption        = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsRateTitle ?? bandedGridColumnRate.Caption;
            bandedGridColumnInvestment.Caption  = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsInvestmentTitle ?? bandedGridColumnInvestment.Caption;
            bandedGridColumnImpressions.Caption = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsImpressionsTitle ?? bandedGridColumnImpressions.Caption;
            bandedGridColumnCPM.Caption         = ListManager.Instance.DefaultControlsConfiguration.StandalonePackageColumnsCPMTitle ?? bandedGridColumnCPM.Caption;

            pictureEditDefaultLogo.Image = BusinessObjects.Instance.ImageResourcesManager.DigitalStandalonePackageNoRecordsLogo ?? pictureEditDefaultLogo.Image;

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

            gridBandId.Width = (Int32)(gridBandId.Width * scaleFactor.Width);
            bandedGridColumnImpressions.Width = (Int32)(bandedGridColumnImpressions.Width * scaleFactor.Width);
            bandedGridColumnCPM.Width         = (Int32)(bandedGridColumnCPM.Width * scaleFactor.Width);
            gridBandImpressions.Width         = (Int32)(gridBandImpressions.Width * scaleFactor.Width);
            bandedGridColumnInvestment.Width  = (Int32)(bandedGridColumnInvestment.Width * scaleFactor.Width);
            bandedGridColumnRate.Width        = (Int32)(bandedGridColumnRate.Width * scaleFactor.Width);
            gridBandInvestment.Width          = (Int32)(gridBandInvestment.Width * scaleFactor.Width);
            gridBandFormula.Width             = (Int32)(gridBandFormula.Width * scaleFactor.Width);
        }
Exemple #7
0
        public DigitalProductEditorControl(DigitalEditorsContainer container)
        {
            InitializeComponent();
            Text       = ListManager.Instance.DefaultControlsConfiguration.SectionsProductTitle ?? "Digital Onesheets";
            _container = container;

            spinEditDuration.EnableSelectAll();

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

            emptySpaceItemTop.MaxSize = RectangleHelper.ScaleSize(emptySpaceItemTop.MaxSize, scaleFactor);
            emptySpaceItemTop.MinSize = RectangleHelper.ScaleSize(emptySpaceItemTop.MinSize, scaleFactor);
            layoutControlItemFlightDatesToggle.MaxSize = RectangleHelper.ScaleSize(layoutControlItemFlightDatesToggle.MaxSize, scaleFactor);
            layoutControlItemFlightDatesToggle.MinSize = RectangleHelper.ScaleSize(layoutControlItemFlightDatesToggle.MinSize, scaleFactor);
            layoutControlItemDurationToggle.MaxSize    = RectangleHelper.ScaleSize(layoutControlItemDurationToggle.MaxSize, scaleFactor);
            layoutControlItemDurationToggle.MinSize    = RectangleHelper.ScaleSize(layoutControlItemDurationToggle.MinSize, scaleFactor);
            layoutControlItemDurationEditor.MaxSize    = RectangleHelper.ScaleSize(layoutControlItemDurationEditor.MaxSize, scaleFactor);
            layoutControlItemDurationEditor.MinSize    = RectangleHelper.ScaleSize(layoutControlItemDurationEditor.MinSize, scaleFactor);
            layoutControlItemWeeksToggle.MaxSize       = RectangleHelper.ScaleSize(layoutControlItemWeeksToggle.MaxSize, scaleFactor);
            layoutControlItemWeeksToggle.MinSize       = RectangleHelper.ScaleSize(layoutControlItemWeeksToggle.MinSize, scaleFactor);
            layoutControlItemMonthsToggle.MaxSize      = RectangleHelper.ScaleSize(layoutControlItemMonthsToggle.MaxSize, scaleFactor);
            layoutControlItemMonthsToggle.MinSize      = RectangleHelper.ScaleSize(layoutControlItemMonthsToggle.MinSize, scaleFactor);
        }
Exemple #8
0
 public DigitalListEditorControl(DigitalEditorsContainer container)
 {
     InitializeComponent();
     Text       = Business.Online.Dictionaries.ListManager.Instance.DefaultControlsConfiguration.SectionsListTitle ?? "Digital Strategy";
     _container = container;
 }
		public DigitalListEditorControl(DigitalEditorsContainer container)
		{
			InitializeComponent();
			Text = Business.Online.Dictionaries.ListManager.Instance.DefaultControlsConfiguration.SectionsListTitle ?? "Digital Strategy";
			_container = container;
		}