public ChildTabBaseControl(IChildTabPageContainer tabPageContainer, ShiftChildTabInfo tabInfo) : this() { TabPageContainer = tabPageContainer; TabInfo = tabInfo; if (TabInfo.CommonEditorConfiguration.FontSize.HasValue) { var fontSizeDelte = TabInfo.CommonEditorConfiguration.FontSize.Value - TextEditorConfiguration.DefaultFontSize; layoutControl.Appearance.Control.FontSizeDelta = fontSizeDelte; layoutControl.Appearance.ControlFocused.FontSizeDelta = fontSizeDelte; layoutControl.Appearance.ControlDropDown.FontSizeDelta = fontSizeDelte; layoutControl.Appearance.ControlDropDownHeader.FontSizeDelta = fontSizeDelte; layoutControl.Appearance.ControlDisabled.FontSizeDelta = fontSizeDelte; layoutControl.Appearance.ControlReadOnly.FontSizeDelta = fontSizeDelte; } if (!TabInfo.CommonEditorConfiguration.BackColor.IsEmpty) { layoutControl.Appearance.Control.BackColor = TabInfo.CommonEditorConfiguration.BackColor; layoutControl.Appearance.ControlFocused.BackColor = TabInfo.CommonEditorConfiguration.BackColor; } if (!TabInfo.CommonEditorConfiguration.ForeColor.IsEmpty) { layoutControl.Appearance.Control.ForeColor = TabInfo.CommonEditorConfiguration.ForeColor; layoutControl.Appearance.ControlFocused.ForeColor = TabInfo.CommonEditorConfiguration.ForeColor; } if (!TabInfo.CommonEditorConfiguration.DropdownForeColor.IsEmpty) { layoutControl.Appearance.ControlDropDown.ForeColor = TabInfo.CommonEditorConfiguration.DropdownForeColor; layoutControl.Appearance.ControlDropDownHeader.ForeColor = TabInfo.CommonEditorConfiguration.DropdownForeColor; } }
public GoalsTabBControl(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"; 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; memoPopupEdit1.Init(SlideContainer.ShiftInfo.ClientGoalsLists.Goals, CustomTabInfo.MemoPopup1DefaultItem, CustomTabInfo.MemoPopup1Configuration, SlideContainer.StyleConfiguration, SlideContainer.ResourceManager); memoPopupEdit1.EditValueChanged += OnEditValueChanged; memoPopupEdit2.Init(SlideContainer.ShiftInfo.ClientGoalsLists.Goals, CustomTabInfo.MemoPopup2DefaultItem, CustomTabInfo.MemoPopup2Configuration, SlideContainer.StyleConfiguration, SlideContainer.ResourceManager); memoPopupEdit2.EditValueChanged += OnEditValueChanged; memoPopupEdit3.Init(SlideContainer.ShiftInfo.ClientGoalsLists.Goals, CustomTabInfo.MemoPopup3DefaultItem, CustomTabInfo.MemoPopup3Configuration, SlideContainer.StyleConfiguration, SlideContainer.ResourceManager); memoPopupEdit3.EditValueChanged += OnEditValueChanged; }
public CBCTabBControl(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.Tab1Info), new StepControl(CustomTabInfo.Tab2Info), new StepControl(CustomTabInfo.Tab3Info), new StepControl(CustomTabInfo.Tab4Info), new StepControl(CustomTabInfo.Tab5Info), }); foreach (var stepControl in xtraTabControl.TabPages.OfType <StepControl>().ToList()) { stepControl.EditValueChanged += OnEditValueChanged; } }
public NextStepsTabDControl(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; comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration); memoEditSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader1Configuration); memoEditSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader2Configuration); memoEditSubheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader3Configuration); memoEditSubheader4.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader4Configuration); memoEditSubheader5.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader5Configuration); memoEditSubheader6.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader6Configuration); memoEditSubheader7.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader7Configuration); memoEditSubheader8.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader8Configuration); 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; memoEditSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? memoEditSubheader2.Properties.NullText; memoEditSubheader3.Properties.NullText = CustomTabInfo.SubHeader3Placeholder ?? memoEditSubheader3.Properties.NullText; memoEditSubheader4.Properties.NullText = CustomTabInfo.SubHeader4Placeholder ?? memoEditSubheader4.Properties.NullText; memoEditSubheader5.Properties.NullText = CustomTabInfo.SubHeader5Placeholder ?? memoEditSubheader5.Properties.NullText; memoEditSubheader6.Properties.NullText = CustomTabInfo.SubHeader6Placeholder ?? memoEditSubheader6.Properties.NullText; memoEditSubheader7.Properties.NullText = CustomTabInfo.SubHeader7Placeholder ?? memoEditSubheader7.Properties.NullText; memoEditSubheader8.Properties.NullText = CustomTabInfo.SubHeader8Placeholder ?? memoEditSubheader8.Properties.NullText; }
public SingleSlidesTabControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo) { InitializeComponent(); CustomTabInfo.LoadSlides(); SlideSettingsManager.Instance.SettingsChanging += OnSlideFormatSettingsChanging; SlideSettingsManager.Instance.SettingsChanged += OnSlideFormatSettingsChanged; pictureEditClipart.DoubleClick += OnOutputClick; pictureEditClipart.MouseWheel += OnClipartMouseWheel; pictureEditUp.Image = CustomTabInfo.ListUpImage; pictureEditDown.Image = CustomTabInfo.ListDownImage; pictureEditList.Image = CustomTabInfo.ListPopupImage; var scaleFactor = Utilities.GetScaleFactor(CreateGraphics().DpiX); layoutControlItemUp.MaxSize = RectangleHelper.ScaleSize(layoutControlItemUp.MaxSize, scaleFactor); layoutControlItemUp.MinSize = RectangleHelper.ScaleSize(layoutControlItemUp.MinSize, scaleFactor); layoutControlItemList.MaxSize = RectangleHelper.ScaleSize(layoutControlItemList.MaxSize, scaleFactor); layoutControlItemList.MinSize = RectangleHelper.ScaleSize(layoutControlItemList.MinSize, scaleFactor); layoutControlItemDown.MaxSize = RectangleHelper.ScaleSize(layoutControlItemDown.MaxSize, scaleFactor); layoutControlItemDown.MinSize = RectangleHelper.ScaleSize(layoutControlItemDown.MinSize, scaleFactor); }
public TilesTabControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo) { InitializeComponent(); CustomTabInfo.LoadTiles(); InitTiles(); }
public AgendaTabCControl(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); comboBoxEditCombo3.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo3Configuration); comboBoxEditCombo4.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo4Configuration); comboBoxEditCombo5.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo5Configuration); comboBoxEditCombo6.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo6Configuration); 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; clipartEditContainer1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl); clipartEditContainer1.EditValueChanged += OnEditValueChanged; }
public ChildTabPageContainerControl(MultiTabControl multiTabControl, ShiftChildTabInfo tabInfo) { ParentControl = multiTabControl; TabInfo = tabInfo; InitializeComponent(); Text = TabInfo.Title; FormatSlideHeader(); }
public ApproachTabAControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo) { InitializeComponent(); xtraTabControl.TabPages.Add(new ContentsItemControl(this)); Contents.ItemStateChanged += OnItemStateChanged; _tabDragDropHelper = new XtraTabDragDropHelper <ItemControl>(xtraTabControl); _tabDragDropHelper.TabMoved += OnTabMoved; }
public MultiSlidesTabControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo) { InitializeComponent(); CustomTabInfo.LoadSlides(); slidesEditContainer.SlideOutput += SlideContainer.OnCustomSlideOutput; slidesEditContainer.SlidePreview += SlideContainer.OnCustomSlidePreview; slidesEditContainer.Init(CustomTabInfo.Slides); slidesEditContainer.SelectionChanged += OnEditValueChanged; }
public NeedsSolutionsTabBControl(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; 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"; itemControl1.Init(CustomTabInfo.NeedsList, null, //CustomTabInfo.ItemInfoList.ElementAtOrDefault(0), CustomTabInfo.Combo1Placeholder, CustomTabInfo.Combo1Configuration, CustomTabInfo.SubHeader1Configuration, SlideContainer.StyleConfiguration); itemControl1.EditValueChanged += OnEditValueChanged; itemControl2.Init(CustomTabInfo.NeedsList, null, //CustomTabInfo.ItemInfoList.ElementAtOrDefault(1), CustomTabInfo.Combo2Placeholder, CustomTabInfo.Combo2Configuration, CustomTabInfo.SubHeader2Configuration, SlideContainer.StyleConfiguration); itemControl2.EditValueChanged += OnEditValueChanged; itemControl3.Init(CustomTabInfo.NeedsList, null, //CustomTabInfo.ItemInfoList.ElementAtOrDefault(2), CustomTabInfo.Combo3Placeholder, CustomTabInfo.Combo3Configuration, CustomTabInfo.SubHeader3Configuration, SlideContainer.StyleConfiguration); itemControl3.EditValueChanged += OnEditValueChanged; itemControl4.Init(CustomTabInfo.NeedsList, null, //CustomTabInfo.ItemInfoList.ElementAtOrDefault(0), CustomTabInfo.Combo4Placeholder, CustomTabInfo.Combo1Configuration, CustomTabInfo.SubHeader1Configuration, SlideContainer.StyleConfiguration); itemControl4.EditValueChanged += OnEditValueChanged; }
public MarketTabDControl(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); spinEditSubheader1.EnableSelectAll().AssignConfiguration(CustomTabInfo.SubHeader1Configuration); memoEditSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader2Configuration); spinEditSubheader3.EnableSelectAll().AssignConfiguration(CustomTabInfo.SubHeader3Configuration); spinEditSubheader4.EnableSelectAll().AssignConfiguration(CustomTabInfo.SubHeader4Configuration); spinEditSubheader5.EnableSelectAll().AssignConfiguration(CustomTabInfo.SubHeader5Configuration); 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; memoEditSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? memoEditSubheader2.Properties.NullText; memoPopupEdit1.Init(SlideContainer.ShiftInfo.TargetCustomersLists.HHIs, CustomTabInfo.MemoPopup1DefaultItem, CustomTabInfo.MemoPopup1Configuration, SlideContainer.StyleConfiguration, SlideContainer.ResourceManager); memoPopupEdit1.EditValueChanged += OnEditValueChanged; memoPopupEdit2.Init(SlideContainer.ShiftInfo.TargetCustomersLists.Demos, CustomTabInfo.MemoPopup2DefaultItem, CustomTabInfo.MemoPopup2Configuration, SlideContainer.StyleConfiguration, SlideContainer.ResourceManager); memoPopupEdit2.EditValueChanged += OnEditValueChanged; memoPopupEdit3.Init(SlideContainer.ShiftInfo.TargetCustomersLists.Geographies, CustomTabInfo.MemoPopup3DefaultItem, CustomTabInfo.MemoPopup3Configuration, SlideContainer.StyleConfiguration, SlideContainer.ResourceManager); memoPopupEdit3.EditValueChanged += OnEditValueChanged; }
public ROITabDControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo) { InitializeComponent(); comboBoxEditSlideHeader.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.HeadersEditorConfiguration); 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; 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"; 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(); }
public NeedsSolutionsTabFControl(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 CoverTabAControl(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; }
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; }
public IntegratedSolutionTabDControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo) { }
protected IntegratedSolutionSubTabControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo) { InitializeComponent(); xtraTabControl.TabPages.Add(new ContentsItemControl(this)); 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; }
public CommonChildTabControl(IChildTabPageContainer slideContainer, ShiftChildTabInfo tabInfo) : base(slideContainer, tabInfo) { }
public MarketTabEControl(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; 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); comboBoxEditCombo7.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo7Configuration); comboBoxEditCombo8.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo8Configuration); comboBoxEditCombo9.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo9Configuration); comboBoxEditCombo10.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo10Configuration); comboBoxEditCombo11.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo11Configuration); comboBoxEditCombo12.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo12Configuration); comboBoxEditCombo13.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.Combo13Configuration); spinEditSubheader1.EnableSelectAll().AssignConfiguration(CustomTabInfo.SubHeader1Configuration); memoEditSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().AssignConfiguration(CustomTabInfo.SubHeader2Configuration); spinEditSubheader3.EnableSelectAll().AssignConfiguration(CustomTabInfo.SubHeader3Configuration); spinEditSubheader4.EnableSelectAll().AssignConfiguration(CustomTabInfo.SubHeader4Configuration); spinEditSubheader5.EnableSelectAll().AssignConfiguration(CustomTabInfo.SubHeader5Configuration); 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; 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; comboBoxEditCombo8.Properties.Items.Clear(); comboBoxEditCombo8.Properties.Items.AddRange(CustomTabInfo.Combo8Items.Where(item => !item.IsPlaceholder).ToArray()); comboBoxEditCombo8.Properties.NullText = CustomTabInfo.Combo8Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ?? comboBoxEditCombo8.Properties.NullText; comboBoxEditCombo9.Properties.Items.Clear(); comboBoxEditCombo9.Properties.Items.AddRange(CustomTabInfo.Combo9Items.Where(item => !item.IsPlaceholder).ToArray()); comboBoxEditCombo9.Properties.NullText = CustomTabInfo.Combo9Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ?? comboBoxEditCombo9.Properties.NullText; comboBoxEditCombo10.Properties.Items.Clear(); comboBoxEditCombo10.Properties.Items.AddRange(CustomTabInfo.Combo10Items.Where(item => !item.IsPlaceholder).ToArray()); comboBoxEditCombo10.Properties.NullText = CustomTabInfo.Combo10Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ?? comboBoxEditCombo10.Properties.NullText; comboBoxEditCombo11.Properties.Items.Clear(); comboBoxEditCombo11.Properties.Items.AddRange(CustomTabInfo.Combo11Items.Where(item => !item.IsPlaceholder).ToArray()); comboBoxEditCombo11.Properties.NullText = CustomTabInfo.Combo11Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ?? comboBoxEditCombo11.Properties.NullText; comboBoxEditCombo12.Properties.Items.Clear(); comboBoxEditCombo12.Properties.Items.AddRange(CustomTabInfo.Combo12Items.Where(item => !item.IsPlaceholder).ToArray()); comboBoxEditCombo12.Properties.NullText = CustomTabInfo.Combo12Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ?? comboBoxEditCombo12.Properties.NullText; comboBoxEditCombo13.Properties.Items.Clear(); comboBoxEditCombo13.Properties.Items.AddRange(CustomTabInfo.Combo13Items.Where(item => !item.IsPlaceholder).ToArray()); comboBoxEditCombo13.Properties.NullText = CustomTabInfo.Combo13Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ?? comboBoxEditCombo13.Properties.NullText; memoEditSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? memoEditSubheader2.Properties.NullText; }
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 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; } }
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; }