public NeedsSolutionsTabEControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);
            comboBoxEditCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo1Configuration);

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";

            comboBoxEditCombo1.Properties.Items.Clear();
            comboBoxEditCombo1.Properties.Items.AddRange(CustomTabInfo.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo1.Properties.NullText =
                CustomTabInfo.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo1.Properties.NullText;

            _item1Control = new Item1Control(this);
            _item1Control.Init(
                CustomTabInfo.Tab1DefaultName,
                CustomTabInfo.SubHeader1Configuration);
            _item1Control.EditValueChanged += OnEditValueChanged;

            _item2Control = new Item2Control(this);
            _item2Control.Init(
                CustomTabInfo.Tab2DefaultName,
                CustomTabInfo.SubHeader2Configuration);
            _item2Control.EditValueChanged += OnEditValueChanged;

            _item3Control = new Item3Control(this);
            _item3Control.Init(
                CustomTabInfo.Tab3DefaultName,
                CustomTabInfo.SubHeader3Configuration);
            _item3Control.EditValueChanged += OnEditValueChanged;

            _item4Control = new Item4Control(this);
            _item4Control.Init(
                CustomTabInfo.Tab4DefaultName,
                CustomTabInfo.SubHeader4Configuration);
            _item4Control.EditValueChanged += OnEditValueChanged;

            _tabDragDropHelper           = new XtraTabDragDropHelper <ItemControl>(xtraTabControl);
            _tabDragDropHelper.TabMoved += OnTabMoved;
        }
        public ContractTabDControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditUserName.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.EditorNameConfiguration);
            textEditUserDescription.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.EditorDescriptionConfiguration);
            textEditUserEmail.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.EditorEmailConfiguration);
            textEditUserPhone.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.EditorPhoneConfiguration);

            comboBoxEditUserName.Properties.Items.Clear();
            comboBoxEditUserName.Properties.Items.AddRange(CustomTabInfo.UserList);

            clipartEditContainer2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainer2.EditValueChanged += OnEditValueChanged;
            clipartEditContainer3.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image), CustomTabInfo.Clipart3Configuration, TabPageContainer.ParentControl);
            clipartEditContainer3.EditValueChanged += OnEditValueChanged;
        }
        public CoverTabDControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);
            memoEditSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader1Configuration);
            dateEditCalendar1.AssignConfiguration(CustomTabInfo.Calendar1Configuration);

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";
            memoEditSubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? memoEditSubheader1.Properties.NullText;

            clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainer1.EditValueChanged += OnEditValueChanged;
        }
Exemplo n.º 4
0
        public ClosersTabCControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            memoEditTabCSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabCSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo4.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo5.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo6.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo7.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo8.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo9.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo10.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabCCombo11.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();

            Application.DoEvents();

            clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainer1.EditValueChanged += OnEditValueChanged;
            clipartEditContainer2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainer2.EditValueChanged += OnEditValueChanged;
            Application.DoEvents();

            memoEditTabCSubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? memoEditTabCSubheader1.Properties.NullText;
            memoEditTabCSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? memoEditTabCSubheader2.Properties.NullText;

            _usersByStation.AddRange(SlideContainer.StarInfo.UsersList.GetUsersByStation(MasterWizardManager.Instance.SelectedWizard.Name));
            comboBoxEditTabCCombo1.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo2.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo3.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo4.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo5.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo6.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo7.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo8.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo9.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo10.Properties.Items.AddRange(_usersByStation);
            comboBoxEditTabCCombo11.Properties.Items.AddRange(_usersByStation);
            Application.DoEvents();
        }
        public CoverTabAControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            memoEditSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();

            memoEditSubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? memoEditSubheader1.Properties.NullText;
            _usersByStation.AddRange(SlideContainer.StarInfo.UsersList.GetUsersByStation(MasterWizardManager.Instance.SelectedWizard.Name));
            comboBoxEditCombo1.Properties.Items.AddRange(_usersByStation);

            clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainer1.EditValueChanged += OnEditValueChanged;

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

            layoutControlItemCalendar1Toggle.MaxSize = RectangleHelper.ScaleSize(layoutControlItemCalendar1Toggle.MaxSize, scaleFactor);
            layoutControlItemCalendar1Toggle.MinSize = RectangleHelper.ScaleSize(layoutControlItemCalendar1Toggle.MinSize, scaleFactor);
        }
        public ROITabDControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            textEditTabDSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabDSubheader2.EnableSelectAll();
            textEditTabDSubheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabDSubheader4.EnableSelectAll();
            textEditTabDSubheader5.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabDSubheader6.EnableSelectAll();
            textEditTabDSubheader7.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabDSubheader8.EnableSelectAll();
            textEditTabDSubheader9.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabDSubheader10.EnableSelectAll();
            textEditTabDSubheader11.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabDSubheader12.EnableSelectAll();
            textEditTabDSubheader13.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabDSubheader14.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabDSubheader15.EnableSelectAll();
            textEditTabDSubheader16.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabDSubheader17.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            Application.DoEvents();

            clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainer1.EditValueChanged += OnEditValueChanged;
            clipartEditContainer2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainer2.EditValueChanged += OnEditValueChanged;
            clipartEditContainer3.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image), CustomTabInfo.Clipart3Configuration, TabPageContainer.ParentControl);
            clipartEditContainer3.EditValueChanged += OnEditValueChanged;

            textEditTabDSubheader1.Properties.NullText  = CustomTabInfo.SubHeader1Placeholder ?? textEditTabDSubheader1.Properties.NullText;
            textEditTabDSubheader3.Properties.NullText  = CustomTabInfo.SubHeader3Placeholder ?? textEditTabDSubheader3.Properties.NullText;
            textEditTabDSubheader5.Properties.NullText  = CustomTabInfo.SubHeader5Placeholder ?? textEditTabDSubheader5.Properties.NullText;
            textEditTabDSubheader7.Properties.NullText  = CustomTabInfo.SubHeader7Placeholder ?? textEditTabDSubheader7.Properties.NullText;
            textEditTabDSubheader9.Properties.NullText  = CustomTabInfo.SubHeader9Placeholder ?? textEditTabDSubheader9.Properties.NullText;
            textEditTabDSubheader11.Properties.NullText = CustomTabInfo.SubHeader11Placeholder ?? textEditTabDSubheader11.Properties.NullText;
            textEditTabDSubheader13.Properties.NullText = CustomTabInfo.SubHeader13Placeholder ?? textEditTabDSubheader13.Properties.NullText;
            textEditTabDSubheader14.Properties.NullText = CustomTabInfo.SubHeader14Placeholder ?? textEditTabDSubheader14.Properties.NullText;
            textEditTabDSubheader16.Properties.NullText = CustomTabInfo.SubHeader16Placeholder ?? textEditTabDSubheader16.Properties.NullText;
            textEditTabDSubheader17.Properties.NullText = CustomTabInfo.SubHeader17Placeholder ?? textEditTabDSubheader17.Properties.NullText;
            Application.DoEvents();
        }
Exemplo n.º 7
0
        public MarketTabCControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditTabCCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();

            comboBoxEditTabCCombo1.Properties.Items.AddRange(CustomTabInfo.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabCCombo1.Properties.NullText =
                CustomTabInfo.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabCCombo1.Properties.NullText;

            clipartEditContainerTabC1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabC1.EditValueChanged += OnEditValueChanged;
            clipartEditContainerTabC2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabC2.EditValueChanged += OnEditValueChanged;
            clipartEditContainerTabC3.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image), CustomTabInfo.Clipart3Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabC3.EditValueChanged += OnEditValueChanged;
            clipartEditContainerTabC4.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart4Image), CustomTabInfo.Clipart4Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabC4.EditValueChanged += OnEditValueChanged;
        }
        public ClosersTabBControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditTabBCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabBCombo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabBCombo3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabBCombo4.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabBSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabBSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabBSubheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            Application.DoEvents();

            clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainer1.EditValueChanged += OnEditValueChanged;
            clipartEditContainer2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainer2.EditValueChanged += OnEditValueChanged;

            Application.DoEvents();
            memoEditTabBSubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? memoEditTabBSubheader1.Properties.NullText;
            memoEditTabBSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? memoEditTabBSubheader2.Properties.NullText;
            memoEditTabBSubheader3.Properties.NullText = CustomTabInfo.SubHeader3Placeholder ?? memoEditTabBSubheader3.Properties.NullText;

            comboBoxEditTabBCombo1.Properties.Items.AddRange(CustomTabInfo.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo1.Properties.NullText =
                CustomTabInfo.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabBCombo1.Properties.NullText;
            comboBoxEditTabBCombo2.Properties.Items.AddRange(CustomTabInfo.Combo2Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo2.Properties.NullText =
                CustomTabInfo.Combo2Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabBCombo2.Properties.NullText;
            comboBoxEditTabBCombo3.Properties.Items.AddRange(CustomTabInfo.Combo3Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo3.Properties.NullText =
                CustomTabInfo.Combo3Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabBCombo3.Properties.NullText;
            comboBoxEditTabBCombo4.Properties.Items.AddRange(CustomTabInfo.Combo4Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo4.Properties.NullText =
                CustomTabInfo.Combo4Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabBCombo4.Properties.NullText;
            Application.DoEvents();
        }
Exemplo n.º 9
0
        public MarketTabBControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            textEditTabBSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabBSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();

            textEditTabBSubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? textEditTabBSubheader1.Properties.NullText;
            memoEditTabBSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? memoEditTabBSubheader2.Properties.NullText;

            clipartEditContainerTabB1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabB1.EditValueChanged += OnEditValueChanged;
            clipartEditContainerTabB2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabB2.EditValueChanged += OnEditValueChanged;
            clipartEditContainerTabB3.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image), CustomTabInfo.Clipart3Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabB3.EditValueChanged += OnEditValueChanged;
            clipartEditContainerTabB4.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart4Image), CustomTabInfo.Clipart4Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabB4.EditValueChanged += OnEditValueChanged;
            clipartEditContainerTabB5.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart5Image), CustomTabInfo.Clipart5Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabB5.EditValueChanged += OnEditValueChanged;
        }
Exemplo n.º 10
0
        public ContractTabAControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);
            comboBoxEditCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo1Configuration);
            comboBoxEditCombo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo2Configuration);

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";

            comboBoxEditCombo1.Properties.Items.Clear();
            comboBoxEditCombo1.Properties.Items.AddRange(CustomTabInfo.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo1.Properties.NullText =
                CustomTabInfo.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo1.Properties.NullText;

            comboBoxEditCombo2.Properties.Items.Clear();
            comboBoxEditCombo2.Properties.Items.AddRange(CustomTabInfo.Combo2Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo2.Properties.NullText =
                CustomTabInfo.Combo2Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo2.Properties.NullText;

            xtraTabControl.TabPages.Add(new ContentsItemControl(this));
            Contents.ItemClicking += OnProductItemClicking;
            Contents.ItemClicked  += OnProductItemClicked;

            xtraTabControl.SelectedPageChanging += OnSelectedTabPageChanging;
            xtraTabControl.SelectedPageChanged  += OnSelectedTabPageChanged;
            xtraTabControl.CloseButtonClick     += OnTabClose;
            xtraTabControl.MouseDown            += OnTabControlMouseDown;
            xtraTabControl.MouseWheel           += OnTabControlMouseWheel;
            _tabDragDropHelper           = new XtraTabDragDropHelper <ProductItemControl>(xtraTabControl);
            _tabDragDropHelper.TabMoved += OnTabMoved;
        }
Exemplo n.º 11
0
        public CBCTabEControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";

            xtraTabControl.TabPages.AddRange(new[]
            {
                new StepControl(CustomTabInfo.Tab5Info),
            });

            foreach (var stepControl in xtraTabControl.TabPages.OfType <StepControl>().ToList())
            {
                stepControl.EditValueChanged += OnEditValueChanged;
            }
        }
Exemplo n.º 12
0
        private void LoadTabPage(IChildTabPageContainer tabPageContainer, bool showSplash)
        {
            if (tabPageContainer == null)
            {
                return;
            }
            if (tabPageContainer.ContentControl != null)
            {
                return;
            }

            xtraTabControl.Selecting += OnTabPageSelecting;
            if (showSplash)
            {
                FormProgress.ShowProgress("Loading data...", () =>
                {
                    tabPageContainer.LoadContent();
                    if (tabPageContainer.ContentControl != null)
                    {
                        tabPageContainer.ContentControl.LoadData();
                        tabPageContainer.ContentControl.SlideDescriptionChanged += OnSlideDescriptionChanged;
                    }
                    tabPageContainer.FormatSlideHeader();
                });
            }
            else
            {
                tabPageContainer.LoadContent();
                if (tabPageContainer.ContentControl != null)
                {
                    tabPageContainer.ContentControl.LoadData();
                    tabPageContainer.ContentControl.SlideDescriptionChanged += OnSlideDescriptionChanged;
                }
                tabPageContainer.FormatSlideHeader();
            }
            xtraTabControl.Selecting -= OnTabPageSelecting;
        }
        public CNATabBControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditTabBCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabBCombo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabBCombo3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabBCombo4.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabBCombo5.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();

            comboBoxEditTabBCombo1.Properties.Items.AddRange(SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo1.Properties.NullText =
                SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => item.IsPlaceholder).ElementAtOrDefault(0)?.Value ??
                comboBoxEditTabBCombo1.Properties.NullText;
            comboBoxEditTabBCombo2.Properties.Items.AddRange(SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo2.Properties.NullText =
                SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => item.IsPlaceholder).ElementAtOrDefault(1)?.Value ??
                comboBoxEditTabBCombo2.Properties.NullText;
            comboBoxEditTabBCombo3.Properties.Items.AddRange(SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo3.Properties.NullText =
                SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => item.IsPlaceholder).ElementAtOrDefault(2)?.Value ??
                comboBoxEditTabBCombo3.Properties.NullText;
            comboBoxEditTabBCombo4.Properties.Items.AddRange(SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo4.Properties.NullText =
                SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => item.IsPlaceholder).ElementAtOrDefault(3)?.Value ??
                comboBoxEditTabBCombo4.Properties.NullText;
            comboBoxEditTabBCombo5.Properties.Items.AddRange(SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo5.Properties.NullText =
                SlideContainer.StarInfo.ClientGoalsLists.Goals.Where(item => item.IsPlaceholder).ElementAtOrDefault(4)?.Value ??
                comboBoxEditTabBCombo5.Properties.NullText;

            clipartEditContainerTabB1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabB1.EditValueChanged += OnEditValueChanged;
            clipartEditContainerTabB2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabB2.EditValueChanged += OnEditValueChanged;
        }
Exemplo n.º 14
0
        public ContractTabBControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            _table1Column1Editors.AddRange(new[]
            {
                comboBoxEditTable1Combo1A,
                comboBoxEditTable1Combo2A,
                comboBoxEditTable1Combo3A,
                comboBoxEditTable1Combo4A,
                comboBoxEditTable1Combo5A,
                comboBoxEditTable1Combo6A,
                comboBoxEditTable1Combo7A,
                comboBoxEditTable1Combo8A,
                comboBoxEditTable1Combo9A,
                comboBoxEditTable1Combo10A
            });

            _table1Column2Editors.AddRange(new[]
            {
                spinEditTable1Editor1B,
                spinEditTable1Editor2B,
                spinEditTable1Editor3B,
                spinEditTable1Editor4B,
                spinEditTable1Editor5B,
                spinEditTable1Editor6B,
                spinEditTable1Editor7B,
                spinEditTable1Editor8B,
                spinEditTable1Editor9B,
                spinEditTable1Editor10B,
            });

            _table1Column3Editors.AddRange(new[]
            {
                comboBoxEditTable1Combo1C,
                comboBoxEditTable1Combo2C,
                comboBoxEditTable1Combo3C,
                comboBoxEditTable1Combo4C,
                comboBoxEditTable1Combo5C,
                comboBoxEditTable1Combo6C,
                comboBoxEditTable1Combo7C,
                comboBoxEditTable1Combo8C,
                comboBoxEditTable1Combo9C,
                comboBoxEditTable1Combo10C
            });

            _table2Column1Editors.AddRange(new[]
            {
                comboBoxEditTable2Combo1A,
                comboBoxEditTable2Combo2A,
                comboBoxEditTable2Combo3A,
                comboBoxEditTable2Combo4A,
                comboBoxEditTable2Combo5A,
                comboBoxEditTable2Combo6A,
                comboBoxEditTable2Combo7A,
                comboBoxEditTable2Combo8A,
                comboBoxEditTable2Combo9A,
                comboBoxEditTable2Combo10A
            });

            _table2Column2Editors.AddRange(new[]
            {
                spinEditTable2Editor1B,
                spinEditTable2Editor2B,
                spinEditTable2Editor3B,
                spinEditTable2Editor4B,
                spinEditTable2Editor5B,
                spinEditTable2Editor6B,
                spinEditTable2Editor7B,
                spinEditTable2Editor8B,
                spinEditTable2Editor9B,
                spinEditTable2Editor10B,
            });

            _table2Column3Editors.AddRange(new[]
            {
                comboBoxEditTable2Combo1C,
                comboBoxEditTable2Combo2C,
                comboBoxEditTable2Combo3C,
                comboBoxEditTable2Combo4C,
                comboBoxEditTable2Combo5C,
                comboBoxEditTable2Combo6C,
                comboBoxEditTable2Combo7C,
                comboBoxEditTable2Combo8C,
                comboBoxEditTable2Combo9C,
                comboBoxEditTable2Combo10C
            });

            xtraTabPageTable1.Text            = CustomTabInfo.Table1Configuration.HeaderName;
            simpleLabelItemTable1HeaderA.Text = String.Format("<size=+2><color=gray>{0}</color></size>",
                                                              CustomTabInfo.Table1Configuration.Column1Name);
            simpleLabelItemTable1HeaderB.Text = String.Format("<size=+2><color=gray>{0}</color></size>",
                                                              CustomTabInfo.Table1Configuration.Column2Name);
            simpleLabelItemTable1HeaderC.Text = String.Format("<size=+2><color=gray>{0}</color></size>",
                                                              CustomTabInfo.Table1Configuration.Column3Name);

            xtraTabPageTable2.Text            = CustomTabInfo.Table2Configuration.HeaderName;
            simpleLabelItemTable2HeaderA.Text = String.Format("<size=+2><color=gray>{0}</color></size>",
                                                              CustomTabInfo.Table2Configuration.Column1Name);
            simpleLabelItemTable2HeaderB.Text = String.Format("<size=+2><color=gray>{0}</color></size>",
                                                              CustomTabInfo.Table2Configuration.Column2Name);
            simpleLabelItemTable2HeaderC.Text = String.Format("<size=+2><color=gray>{0}</color></size>",
                                                              CustomTabInfo.Table2Configuration.Column3Name);

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);
            comboBoxEditSummary2Combo.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SummaryConfiguration);
            spinEditSummary1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SummaryConfiguration);
            spinEditSummary3.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SummaryConfiguration);

            foreach (var editor in _table1Column1Editors)
            {
                editor.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.TableComboConfiguration);
            }
            foreach (var editor in _table1Column2Editors)
            {
                editor.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.TableComboConfiguration);
            }
            foreach (var editor in _table1Column3Editors)
            {
                editor.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.TableComboConfiguration);
            }
            foreach (var editor in _table2Column1Editors)
            {
                editor.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.TableComboConfiguration);
            }
            foreach (var editor in _table2Column2Editors)
            {
                editor.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.TableComboConfiguration);
            }
            foreach (var editor in _table2Column3Editors)
            {
                editor.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.TableComboConfiguration);
            }

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";

            comboBoxEditSummary2Combo.Properties.Items.Clear();
            comboBoxEditSummary2Combo.Properties.Items.AddRange(CustomTabInfo.SummaryCombo2Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSummary2Combo.Properties.NullText =
                CustomTabInfo.SummaryCombo2Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditSummary2Combo.Properties.NullText;

            for (var i = 0; i < CustomTabInfo.Table1Column1Lists.Count; i++)
            {
                var items  = CustomTabInfo.Table1Column1Lists[i];
                var editor = _table1Column1Editors[i];

                editor.Properties.Items.Clear();
                editor.Properties.Items.AddRange(items.Where(item => !item.IsPlaceholder).ToArray());
                editor.Properties.NullText =
                    items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                    editor.Properties.NullText;
            }

            for (var i = 0; i < CustomTabInfo.Table1Column3Lists.Count; i++)
            {
                var items  = CustomTabInfo.Table1Column3Lists[i];
                var editor = _table1Column3Editors[i];

                editor.Properties.Items.Clear();
                editor.Properties.Items.AddRange(items.Where(item => !item.IsPlaceholder).ToArray());
                editor.Properties.NullText =
                    items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                    editor.Properties.NullText;
            }

            for (var i = 0; i < CustomTabInfo.Table2Column1Lists.Count; i++)
            {
                var items  = CustomTabInfo.Table2Column1Lists[i];
                var editor = _table2Column1Editors[i];

                editor.Properties.Items.Clear();
                editor.Properties.Items.AddRange(items.Where(item => !item.IsPlaceholder).ToArray());
                editor.Properties.NullText =
                    items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                    editor.Properties.NullText;
            }

            for (var i = 0; i < CustomTabInfo.Table2Column3Lists.Count; i++)
            {
                var items  = CustomTabInfo.Table2Column3Lists[i];
                var editor = _table2Column3Editors[i];

                editor.Properties.Items.Clear();
                editor.Properties.Items.AddRange(items.Where(item => !item.IsPlaceholder).ToArray());
                editor.Properties.NullText =
                    items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                    editor.Properties.NullText;
            }

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

            simpleLabelItemTable1HeaderA.MaxSize   = RectangleHelper.ScaleSize(simpleLabelItemTable1HeaderA.MaxSize, scaleFactor);
            simpleLabelItemTable1HeaderA.MinSize   = RectangleHelper.ScaleSize(simpleLabelItemTable1HeaderA.MinSize, scaleFactor);
            simpleLabelItemTable1HeaderB.MaxSize   = RectangleHelper.ScaleSize(simpleLabelItemTable1HeaderB.MaxSize, scaleFactor);
            simpleLabelItemTable1HeaderB.MinSize   = RectangleHelper.ScaleSize(simpleLabelItemTable1HeaderB.MinSize, scaleFactor);
            simpleLabelItemTable1HeaderC.MaxSize   = RectangleHelper.ScaleSize(simpleLabelItemTable1HeaderC.MaxSize, scaleFactor);
            simpleLabelItemTable1HeaderC.MinSize   = RectangleHelper.ScaleSize(simpleLabelItemTable1HeaderC.MinSize, scaleFactor);
            simpleLabelItemTable2HeaderA.MaxSize   = RectangleHelper.ScaleSize(simpleLabelItemTable2HeaderA.MaxSize, scaleFactor);
            simpleLabelItemTable2HeaderA.MinSize   = RectangleHelper.ScaleSize(simpleLabelItemTable2HeaderA.MinSize, scaleFactor);
            simpleLabelItemTable2HeaderB.MaxSize   = RectangleHelper.ScaleSize(simpleLabelItemTable2HeaderB.MaxSize, scaleFactor);
            simpleLabelItemTable2HeaderB.MinSize   = RectangleHelper.ScaleSize(simpleLabelItemTable2HeaderB.MinSize, scaleFactor);
            simpleLabelItemTable2HeaderC.MaxSize   = RectangleHelper.ScaleSize(simpleLabelItemTable2HeaderC.MaxSize, scaleFactor);
            simpleLabelItemTable2HeaderC.MinSize   = RectangleHelper.ScaleSize(simpleLabelItemTable2HeaderC.MinSize, scaleFactor);
            layoutControlItemSummary1Value.MaxSize = RectangleHelper.ScaleSize(layoutControlItemSummary1Value.MaxSize, scaleFactor);
            layoutControlItemSummary1Value.MinSize = RectangleHelper.ScaleSize(layoutControlItemSummary1Value.MinSize, scaleFactor);
            simpleLabelItemSummary1Suffix.MaxSize  = RectangleHelper.ScaleSize(simpleLabelItemSummary1Suffix.MaxSize, scaleFactor);
            simpleLabelItemSummary1Suffix.MinSize  = RectangleHelper.ScaleSize(simpleLabelItemSummary1Suffix.MinSize, scaleFactor);
            layoutControlItemSummary2Combo.MaxSize = RectangleHelper.ScaleSize(layoutControlItemSummary2Combo.MaxSize, scaleFactor);
            layoutControlItemSummary2Combo.MinSize = RectangleHelper.ScaleSize(layoutControlItemSummary2Combo.MinSize, scaleFactor);
            layoutControlItemSummary3Value.MaxSize = RectangleHelper.ScaleSize(layoutControlItemSummary3Value.MaxSize, scaleFactor);
            layoutControlItemSummary3Value.MinSize = RectangleHelper.ScaleSize(layoutControlItemSummary3Value.MinSize, scaleFactor);
            simpleLabelItemSummary3Suffix.MaxSize  = RectangleHelper.ScaleSize(simpleLabelItemSummary3Suffix.MaxSize, scaleFactor);
            simpleLabelItemSummary3Suffix.MinSize  = RectangleHelper.ScaleSize(simpleLabelItemSummary3Suffix.MinSize, scaleFactor);
        }
 public CommonChildTabControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
 {
 }
Exemplo n.º 16
0
        public InvestmentTabBControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainer1.EditValueChanged += OnEditValueChanged;
            clipartEditContainer2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainer2.EditValueChanged += OnEditValueChanged;
            clipartEditContainer3.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image), CustomTabInfo.Clipart3Configuration, TabPageContainer.ParentControl);
            clipartEditContainer3.EditValueChanged += OnEditValueChanged;
            clipartEditContainer4.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart4Image), CustomTabInfo.Clipart4Configuration, TabPageContainer.ParentControl);
            clipartEditContainer4.EditValueChanged += OnEditValueChanged;
            clipartEditContainer5.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart5Image), CustomTabInfo.Clipart5Configuration, TabPageContainer.ParentControl);
            clipartEditContainer5.EditValueChanged += OnEditValueChanged;

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);
            comboBoxEditCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo1Configuration);
            comboBoxEditCombo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo2Configuration);
            comboBoxEditCombo3.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo3Configuration);
            comboBoxEditCombo4.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo4Configuration);
            comboBoxEditCombo5.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo5Configuration);
            comboBoxEditCombo6.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo6Configuration);
            textEditSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader1Configuration);
            memoEditSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader2Configuration);

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";

            comboBoxEditCombo1.Properties.Items.Clear();
            comboBoxEditCombo1.Properties.Items.AddRange(CustomTabInfo.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo1.Properties.NullText =
                CustomTabInfo.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo1.Properties.NullText;
            comboBoxEditCombo2.Properties.Items.Clear();
            comboBoxEditCombo2.Properties.Items.AddRange(CustomTabInfo.Combo2Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo2.Properties.NullText =
                CustomTabInfo.Combo2Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo2.Properties.NullText;
            comboBoxEditCombo3.Properties.Items.Clear();
            comboBoxEditCombo3.Properties.Items.AddRange(CustomTabInfo.Combo3Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo3.Properties.NullText =
                CustomTabInfo.Combo3Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo3.Properties.NullText;
            comboBoxEditCombo4.Properties.Items.Clear();
            comboBoxEditCombo4.Properties.Items.AddRange(CustomTabInfo.Combo4Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo4.Properties.NullText =
                CustomTabInfo.Combo4Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo4.Properties.NullText;
            comboBoxEditCombo5.Properties.Items.Clear();
            comboBoxEditCombo5.Properties.Items.AddRange(CustomTabInfo.Combo5Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo5.Properties.NullText =
                CustomTabInfo.Combo5Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo5.Properties.NullText;
            comboBoxEditCombo6.Properties.Items.Clear();
            comboBoxEditCombo6.Properties.Items.AddRange(CustomTabInfo.Combo6Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo6.Properties.NullText =
                CustomTabInfo.Combo6Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo6.Properties.NullText;

            textEditSubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? textEditSubheader1.Properties.NullText;
            memoEditSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? memoEditSubheader2.Properties.NullText;
        }
        public AgendaTabEControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            layoutControlGroupTab1.Text = CustomTabInfo.Tab1Title;
            layoutControlGroupTab2.Text = CustomTabInfo.Tab2Title;
            layoutControlGroupTab3.Text = CustomTabInfo.Tab3Title;

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);
            comboBoxEditCombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.ComboConfiguration);
            comboBoxEditCombo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.ComboConfiguration);
            comboBoxEditCombo3.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.ComboConfiguration);
            comboBoxEditCombo4.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.ComboConfiguration);
            comboBoxEditCombo5.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.ComboConfiguration);
            comboBoxEditCombo6.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.ComboConfiguration);
            comboBoxEditCombo7.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.ComboConfiguration);

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";

            memoPopupEdit1.Init(
                CustomTabInfo.MemoPopup1Items.Where(item => !item.IsPlaceholder).ToList(),
                CustomTabInfo.MemoPopup1Items.FirstOrDefault(item => !item.IsPlaceholder && item.IsDefault),
                CustomTabInfo.MemoPopup1Configuration,
                SlideContainer.StyleConfiguration,
                SlideContainer.ResourceManager);
            memoPopupEdit1.EditValueChanged += OnEditValueChanged;

            memoPopupEdit2.Init(
                CustomTabInfo.MemoPopup2Items.Where(item => !item.IsPlaceholder).ToList(),
                CustomTabInfo.MemoPopup2Items.FirstOrDefault(item => !item.IsPlaceholder && item.IsDefault),
                CustomTabInfo.MemoPopup2Configuration,
                SlideContainer.StyleConfiguration,
                SlideContainer.ResourceManager);
            memoPopupEdit2.EditValueChanged += OnEditValueChanged;

            memoPopupEdit3.Init(
                CustomTabInfo.MemoPopup3Items.Where(item => !item.IsPlaceholder).ToList(),
                CustomTabInfo.MemoPopup3Items.FirstOrDefault(item => !item.IsPlaceholder && item.IsDefault),
                CustomTabInfo.MemoPopup3Configuration,
                SlideContainer.StyleConfiguration,
                SlideContainer.ResourceManager);
            memoPopupEdit3.EditValueChanged += OnEditValueChanged;

            memoPopupEdit4.Init(
                CustomTabInfo.MemoPopup4Items.Where(item => !item.IsPlaceholder).ToList(),
                CustomTabInfo.MemoPopup4Items.FirstOrDefault(item => !item.IsPlaceholder && item.IsDefault),
                CustomTabInfo.MemoPopup4Configuration,
                SlideContainer.StyleConfiguration,
                SlideContainer.ResourceManager);
            memoPopupEdit4.EditValueChanged += OnEditValueChanged;

            memoPopupEdit5.Init(
                CustomTabInfo.MemoPopup5Items.Where(item => !item.IsPlaceholder).ToList(),
                CustomTabInfo.MemoPopup5Items.FirstOrDefault(item => !item.IsPlaceholder && item.IsDefault),
                CustomTabInfo.MemoPopup5Configuration,
                SlideContainer.StyleConfiguration,
                SlideContainer.ResourceManager);
            memoPopupEdit5.EditValueChanged += OnEditValueChanged;

            memoPopupEdit6.Init(
                CustomTabInfo.MemoPopup6Items.Where(item => !item.IsPlaceholder).ToList(),
                CustomTabInfo.MemoPopup6Items.FirstOrDefault(item => !item.IsPlaceholder && item.IsDefault),
                CustomTabInfo.MemoPopup6Configuration,
                SlideContainer.StyleConfiguration,
                SlideContainer.ResourceManager);
            memoPopupEdit6.EditValueChanged += OnEditValueChanged;

            comboBoxEditCombo1.Properties.Items.Clear();
            comboBoxEditCombo1.Properties.Items.AddRange(CustomTabInfo.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo1.Properties.NullText =
                CustomTabInfo.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo1.Properties.NullText;

            comboBoxEditCombo2.Properties.Items.Clear();
            comboBoxEditCombo2.Properties.Items.AddRange(CustomTabInfo.Combo2Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo2.Properties.NullText =
                CustomTabInfo.Combo2Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo2.Properties.NullText;

            comboBoxEditCombo3.Properties.Items.Clear();
            comboBoxEditCombo3.Properties.Items.AddRange(CustomTabInfo.Combo3Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo3.Properties.NullText =
                CustomTabInfo.Combo3Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo3.Properties.NullText;

            comboBoxEditCombo4.Properties.Items.Clear();
            comboBoxEditCombo4.Properties.Items.AddRange(CustomTabInfo.Combo4Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo4.Properties.NullText =
                CustomTabInfo.Combo4Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo4.Properties.NullText;

            comboBoxEditCombo5.Properties.Items.Clear();
            comboBoxEditCombo5.Properties.Items.AddRange(CustomTabInfo.Combo5Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo5.Properties.NullText =
                CustomTabInfo.Combo5Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo5.Properties.NullText;

            comboBoxEditCombo6.Properties.Items.Clear();
            comboBoxEditCombo6.Properties.Items.AddRange(CustomTabInfo.Combo6Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo6.Properties.NullText =
                CustomTabInfo.Combo6Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo6.Properties.NullText;

            comboBoxEditCombo7.Properties.Items.Clear();
            comboBoxEditCombo7.Properties.Items.AddRange(CustomTabInfo.Combo7Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditCombo7.Properties.NullText =
                CustomTabInfo.Combo7Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditCombo7.Properties.NullText;

            clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainer1.EditValueChanged += OnEditValueChanged;

            clipartEditContainer2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainer2.EditValueChanged += OnEditValueChanged;

            clipartEditContainer3.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image), CustomTabInfo.Clipart3Configuration, TabPageContainer.ParentControl);
            clipartEditContainer3.EditValueChanged += OnEditValueChanged;
        }
Exemplo n.º 18
0
 public ChildTabBaseControl(IChildTabPageContainer tabPageContainer, StarChildTabInfo tabInfo) : this()
 {
     TabPageContainer = tabPageContainer;
     TabInfo          = tabInfo;
 }
Exemplo n.º 19
0
        public ROITabBControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);

            textEditTabBSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabBSubheader2.EnableSelectAll();
            textEditTabBSubheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader4.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabBSubheader5.EnableSelectAll();
            textEditTabBSubheader6.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader7.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabBSubheader8.EnableSelectAll();
            textEditTabBSubheader9.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader10.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabBSubheader11.EnableSelectAll();
            textEditTabBSubheader12.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader13.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader14.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader15.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader16.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabBSubheader17.EnableSelectAll();
            textEditTabBSubheader18.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader19.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader20.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader21.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader22.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader23.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabBSubheader24.EnableSelectAll();
            textEditTabBSubheader25.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            Application.DoEvents();

            clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainer1.EditValueChanged += OnEditValueChanged;
            clipartEditContainer2.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image), CustomTabInfo.Clipart2Configuration, TabPageContainer.ParentControl);
            clipartEditContainer2.EditValueChanged += OnEditValueChanged;
            clipartEditContainer3.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image), CustomTabInfo.Clipart3Configuration, TabPageContainer.ParentControl);
            clipartEditContainer3.EditValueChanged += OnEditValueChanged;

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";

            textEditTabBSubheader1.Properties.NullText  = CustomTabInfo.SubHeader1Placeholder ?? textEditTabBSubheader1.Properties.NullText;
            textEditTabBSubheader3.Properties.NullText  = CustomTabInfo.SubHeader3Placeholder ?? textEditTabBSubheader3.Properties.NullText;
            textEditTabBSubheader4.Properties.NullText  = CustomTabInfo.SubHeader4Placeholder ?? textEditTabBSubheader4.Properties.NullText;
            textEditTabBSubheader6.Properties.NullText  = CustomTabInfo.SubHeader6Placeholder ?? textEditTabBSubheader6.Properties.NullText;
            textEditTabBSubheader7.Properties.NullText  = CustomTabInfo.SubHeader7Placeholder ?? textEditTabBSubheader7.Properties.NullText;
            textEditTabBSubheader9.Properties.NullText  = CustomTabInfo.SubHeader9Placeholder ?? textEditTabBSubheader9.Properties.NullText;
            textEditTabBSubheader10.Properties.NullText = CustomTabInfo.SubHeader10Placeholder ?? textEditTabBSubheader10.Properties.NullText;
            textEditTabBSubheader12.Properties.NullText = CustomTabInfo.SubHeader12Placeholder ?? textEditTabBSubheader12.Properties.NullText;
            textEditTabBSubheader13.Properties.NullText = CustomTabInfo.SubHeader13Placeholder ?? textEditTabBSubheader13.Properties.NullText;
            textEditTabBSubheader14.Properties.NullText = CustomTabInfo.SubHeader14Placeholder ?? textEditTabBSubheader14.Properties.NullText;
            textEditTabBSubheader15.Properties.NullText = CustomTabInfo.SubHeader15Placeholder ?? textEditTabBSubheader15.Properties.NullText;
            textEditTabBSubheader16.Properties.NullText = CustomTabInfo.SubHeader16Placeholder ?? textEditTabBSubheader16.Properties.NullText;
            textEditTabBSubheader18.Properties.NullText = CustomTabInfo.SubHeader18Placeholder ?? textEditTabBSubheader18.Properties.NullText;
            textEditTabBSubheader19.Properties.NullText = CustomTabInfo.SubHeader19Placeholder ?? textEditTabBSubheader19.Properties.NullText;
            textEditTabBSubheader20.Properties.NullText = CustomTabInfo.SubHeader20Placeholder ?? textEditTabBSubheader20.Properties.NullText;
            textEditTabBSubheader21.Properties.NullText = CustomTabInfo.SubHeader21Placeholder ?? textEditTabBSubheader21.Properties.NullText;
            textEditTabBSubheader22.Properties.NullText = CustomTabInfo.SubHeader22Placeholder ?? textEditTabBSubheader22.Properties.NullText;
            textEditTabBSubheader23.Properties.NullText = CustomTabInfo.SubHeader23Placeholder ?? textEditTabBSubheader23.Properties.NullText;
            textEditTabBSubheader25.Properties.NullText = CustomTabInfo.SubHeader25Placeholder ?? textEditTabBSubheader25.Properties.NullText;
            Application.DoEvents();
        }
 public IntegratedSolutionTabDControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
 {
 }
Exemplo n.º 21
0
        public ROITabEControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            xtraTabPageTab1.Text = CustomTabInfo.Tab1.Title;
            xtraTabPageTab2.Text = CustomTabInfo.Tab2.Title;
            xtraTabPageTab3.Text = CustomTabInfo.Tab3.Title;

            comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration);

            comboBoxEditTab1Combo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab1.Combo1Configuration);
            comboBoxEditTab1Combo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab1.Combo2Configuration);

            spinEditTab2Subheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab2.Subheader1Configuration);
            spinEditTab2Subheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab2.Subheader2Configuration);
            textEditTab2Subheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab2.Subheader3Configuration);

            comboBoxEditTab3Combo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab3.Combo1Configuration);
            comboBoxEditTab3Combo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab3.Combo2Configuration);
            comboBoxEditTab3Combo3.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab3.Combo1Configuration);
            comboBoxEditTab3Combo4.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab3.Combo2Configuration);
            spinEditTab3Subheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab3.Subheader1Configuration);
            spinEditTab3Subheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab3.Subheader2Configuration);
            spinEditTab3Subheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab3.Subheader3Configuration);
            spinEditTab3Subheader4.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Tab3.Subheader4Configuration);

            repositoryItemSpinEditTab1Cost.EnableSelectAll();
            repositoryItemSpinEditTab1Impressions.EnableSelectAll();

            comboBoxEditSlideHeader.Properties.Items.Clear();
            comboBoxEditSlideHeader.Properties.Items.AddRange(CustomTabInfo.HeadersItems
                                                              .Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditSlideHeader.Properties.NullText =
                CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsPlaceholder)?.Value ??
                "Select or type";

            textEditTab2Subheader3.Properties.NullText = CustomTabInfo.Tab2.SubHeader3DefaultValue ?? textEditTab2Subheader3.Properties.NullText;

            comboBoxEditTab1Combo1.Properties.Items.Clear();
            comboBoxEditTab1Combo1.Properties.Items.AddRange(CustomTabInfo.Tab1.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTab1Combo1.Properties.NullText =
                CustomTabInfo.Tab1.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTab1Combo1.Properties.NullText;

            comboBoxEditTab1Combo2.Properties.Items.Clear();
            comboBoxEditTab1Combo2.Properties.Items.AddRange(CustomTabInfo.Tab1.Combo2Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTab1Combo2.Properties.NullText =
                CustomTabInfo.Tab1.Combo2Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTab1Combo2.Properties.NullText;

            comboBoxEditTab3Combo1.Properties.Items.Clear();
            comboBoxEditTab3Combo1.Properties.Items.AddRange(CustomTabInfo.Tab3.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTab3Combo1.Properties.NullText =
                CustomTabInfo.Tab3.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTab3Combo1.Properties.NullText;

            comboBoxEditTab3Combo2.Properties.Items.Clear();
            comboBoxEditTab3Combo2.Properties.Items.AddRange(CustomTabInfo.Tab3.Combo2Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTab3Combo2.Properties.NullText =
                CustomTabInfo.Tab3.Combo2Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTab3Combo2.Properties.NullText;

            comboBoxEditTab3Combo3.Properties.Items.Clear();
            comboBoxEditTab3Combo3.Properties.Items.AddRange(CustomTabInfo.Tab3.Combo3Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTab3Combo3.Properties.NullText =
                CustomTabInfo.Tab3.Combo3Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTab3Combo3.Properties.NullText;

            comboBoxEditTab3Combo4.Properties.Items.Clear();
            comboBoxEditTab3Combo4.Properties.Items.AddRange(CustomTabInfo.Tab3.Combo4Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTab3Combo4.Properties.NullText =
                CustomTabInfo.Tab3.Combo4Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTab3Combo4.Properties.NullText;

            _scaleFactor = Utilities.GetScaleFactor(CreateGraphics().DpiX);
            layoutControlItemTab1Combo1.MaxSize     = RectangleHelper.ScaleSize(layoutControlItemTab1Combo1.MaxSize, _scaleFactor);
            layoutControlItemTab1Combo1.MinSize     = RectangleHelper.ScaleSize(layoutControlItemTab1Combo1.MinSize, _scaleFactor);
            layoutControlItemTab1Combo2.MaxSize     = RectangleHelper.ScaleSize(layoutControlItemTab1Combo2.MaxSize, _scaleFactor);
            layoutControlItemTab1Combo2.MinSize     = RectangleHelper.ScaleSize(layoutControlItemTab1Combo2.MinSize, _scaleFactor);
            simpleLabelItemTab1Checkbox2.MaxSize    = RectangleHelper.ScaleSize(simpleLabelItemTab1Checkbox2.MaxSize, _scaleFactor);
            simpleLabelItemTab1Checkbox2.MinSize    = RectangleHelper.ScaleSize(simpleLabelItemTab1Checkbox2.MinSize, _scaleFactor);
            layoutControlItemTab2Subheader1.MaxSize = RectangleHelper.ScaleSize(layoutControlItemTab2Subheader1.MaxSize, _scaleFactor);
            layoutControlItemTab2Subheader1.MinSize = RectangleHelper.ScaleSize(layoutControlItemTab2Subheader1.MinSize, _scaleFactor);
            layoutControlItemTab2Subheader2.MaxSize = RectangleHelper.ScaleSize(layoutControlItemTab2Subheader2.MaxSize, _scaleFactor);
            layoutControlItemTab2Subheader2.MinSize = RectangleHelper.ScaleSize(layoutControlItemTab2Subheader2.MinSize, _scaleFactor);
            layoutControlItemTab2Subheader3.MaxSize = RectangleHelper.ScaleSize(layoutControlItemTab2Subheader3.MaxSize, _scaleFactor);
            layoutControlItemTab2Subheader3.MinSize = RectangleHelper.ScaleSize(layoutControlItemTab2Subheader3.MinSize, _scaleFactor);
            simpleLabelItemTab3Header.MaxSize       = RectangleHelper.ScaleSize(simpleLabelItemTab3Header.MaxSize, _scaleFactor);
            simpleLabelItemTab3Header.MinSize       = RectangleHelper.ScaleSize(simpleLabelItemTab3Header.MinSize, _scaleFactor);

            gridBandRowTitles.Width = (Int32)(gridBandRowTitles.Width * _scaleFactor.Width);
            gridBandPrelaunch.Width = (Int32)(gridBandPrelaunch.Width * _scaleFactor.Width);
            gridBandTotals.Width    = (Int32)(gridBandTotals.Width * _scaleFactor.Width);

            if (!CustomTabInfo.Tab1.HeaderForeColor.IsEmpty)
            {
                bandedGridViewTab1.Appearance.HeaderPanel.ForeColor = CustomTabInfo.Tab1.HeaderForeColor;
            }

            if (!CustomTabInfo.Tab1.ValueCellsForeColor.IsEmpty)
            {
                bandedGridViewTab1.Appearance.Row.ForeColor = CustomTabInfo.Tab1.ValueCellsForeColor;
            }

            if (!CustomTabInfo.Tab1.ValueCellsForeColor.IsEmpty)
            {
                bandedGridViewTab1.Appearance.Row.ForeColor = CustomTabInfo.Tab1.ValueCellsForeColor;
            }

            if (!CustomTabInfo.Tab1.GridLineColor.IsEmpty)
            {
                bandedGridViewTab1.Appearance.HorzLine.BackColor  = CustomTabInfo.Tab1.GridLineColor;
                bandedGridViewTab1.Appearance.VertLine.BackColor  = CustomTabInfo.Tab1.GridLineColor;
                bandedGridViewTab1.Appearance.FixedLine.BackColor = CustomTabInfo.Tab1.GridLineColor;
            }
        }