Пример #1
0
        public FishingTabBControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

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

            comboBoxEditTabBCombo1.Properties.Items.AddRange(SlideContainer.StarInfo.TargetCustomersLists.CombinedList.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo1.Properties.NullText =
                SlideContainer.StarInfo.TargetCustomersLists.CombinedList.Where(item => item.IsPlaceholder).ElementAtOrDefault(0)?.Value ??
                comboBoxEditTabBCombo1.Properties.NullText;
            comboBoxEditTabBCombo2.Properties.Items.AddRange(SlideContainer.StarInfo.TargetCustomersLists.CombinedList.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo2.Properties.NullText =
                SlideContainer.StarInfo.TargetCustomersLists.CombinedList.Where(item => item.IsPlaceholder).ElementAtOrDefault(1)?.Value ??
                comboBoxEditTabBCombo2.Properties.NullText;
            comboBoxEditTabBCombo3.Properties.Items.AddRange(SlideContainer.StarInfo.TargetCustomersLists.CombinedList.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo3.Properties.NullText =
                SlideContainer.StarInfo.TargetCustomersLists.CombinedList.Where(item => item.IsPlaceholder).ElementAtOrDefault(2)?.Value ??
                comboBoxEditTabBCombo3.Properties.NullText;
            comboBoxEditTabBCombo4.Properties.Items.AddRange(SlideContainer.StarInfo.TargetCustomersLists.CombinedList.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabBCombo4.Properties.NullText =
                SlideContainer.StarInfo.TargetCustomersLists.CombinedList.Where(item => item.IsPlaceholder).ElementAtOrDefault(3)?.Value ??
                comboBoxEditTabBCombo4.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;
        }
Пример #2
0
        public AudienceTabBControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            textEditTabBSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabBSubheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabBSubheader4.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabBSubheader5.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabBSubheader6.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();

            textEditTabBSubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? textEditTabBSubheader1.Properties.NullText;
            textEditTabBSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? textEditTabBSubheader2.Properties.NullText;
            textEditTabBSubheader3.Properties.NullText = CustomTabInfo.SubHeader3Placeholder ?? textEditTabBSubheader3.Properties.NullText;
            memoEditTabBSubheader4.Properties.NullText = CustomTabInfo.SubHeader4Placeholder ?? memoEditTabBSubheader4.Properties.NullText;
            memoEditTabBSubheader5.Properties.NullText = CustomTabInfo.SubHeader5Placeholder ?? memoEditTabBSubheader5.Properties.NullText;
            memoEditTabBSubheader6.Properties.NullText = CustomTabInfo.SubHeader6Placeholder ?? memoEditTabBSubheader6.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;
        }
        public SingleSlidesTabControl(IChildTabPageContainer slideContainer, StarChildTabInfo 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);
        }
Пример #4
0
        public ROITabBControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            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;

            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 TilesTabControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            CustomTabInfo.LoadTiles();

            InitTiles();
        }
        public ShareTabEControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            comboBoxEditTabECombo1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabECombo2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabECombo3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            comboBoxEditTabECombo4.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabESubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabESubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabESubheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabESubheader4.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabESubheader5.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabESubheader6.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            spinEditTabESubheader7.EnableSelectAll();
            textEditTabESubheader8.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabESubheader9.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            textEditTabESubheader10.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;
            Application.DoEvents();

            textEditTabESubheader1.Properties.NullText  = CustomTabInfo.SubHeader1Placeholder ?? textEditTabESubheader1.Properties.NullText;
            textEditTabESubheader2.Properties.NullText  = CustomTabInfo.SubHeader2Placeholder ?? textEditTabESubheader2.Properties.NullText;
            textEditTabESubheader3.Properties.NullText  = CustomTabInfo.SubHeader3Placeholder ?? textEditTabESubheader3.Properties.NullText;
            textEditTabESubheader4.Properties.NullText  = CustomTabInfo.SubHeader4Placeholder ?? textEditTabESubheader4.Properties.NullText;
            textEditTabESubheader5.Properties.NullText  = CustomTabInfo.SubHeader5Placeholder ?? textEditTabESubheader5.Properties.NullText;
            textEditTabESubheader6.Properties.NullText  = CustomTabInfo.SubHeader6Placeholder ?? textEditTabESubheader6.Properties.NullText;
            textEditTabESubheader8.Properties.NullText  = CustomTabInfo.SubHeader8Placeholder ?? textEditTabESubheader8.Properties.NullText;
            textEditTabESubheader9.Properties.NullText  = CustomTabInfo.SubHeader9Placeholder ?? textEditTabESubheader9.Properties.NullText;
            textEditTabESubheader10.Properties.NullText = CustomTabInfo.SubHeader10Placeholder ?? textEditTabESubheader10.Properties.NullText;

            comboBoxEditTabECombo1.Properties.Items.AddRange(CustomTabInfo.Combo1Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabECombo1.Properties.NullText =
                CustomTabInfo.Combo1Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabECombo1.Properties.NullText;
            comboBoxEditTabECombo2.Properties.Items.AddRange(CustomTabInfo.Combo2Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabECombo2.Properties.NullText =
                CustomTabInfo.Combo2Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabECombo2.Properties.NullText;
            comboBoxEditTabECombo3.Properties.Items.AddRange(CustomTabInfo.Combo3Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabECombo3.Properties.NullText =
                CustomTabInfo.Combo3Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabECombo3.Properties.NullText;
            comboBoxEditTabECombo4.Properties.Items.AddRange(CustomTabInfo.Combo4Items.Where(item => !item.IsPlaceholder).ToArray());
            comboBoxEditTabECombo4.Properties.NullText =
                CustomTabInfo.Combo4Items.FirstOrDefault(item => item.IsPlaceholder)?.Value ??
                comboBoxEditTabECombo4.Properties.NullText;
            Application.DoEvents();
        }
        public ChildTabPageContainerControl(MultiTabControl multiTabControl, StarChildTabInfo tabInfo)
        {
            ParentControl = multiTabControl;
            TabInfo       = tabInfo;
            InitializeComponent();

            Text = TabInfo.Title;

            FormatSlideHeader();
        }
Пример #8
0
        public MultiSlidesTabControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            CustomTabInfo.LoadSlides();
            slidesEditContainer.SlideOutput  += SlideContainer.OnCustomSlideOutput;
            slidesEditContainer.SlidePreview += SlideContainer.OnCustomSlidePreview;
            slidesEditContainer.Init(CustomTabInfo.Slides);
            slidesEditContainer.SelectionChanged += OnEditValueChanged;
        }
Пример #9
0
        public VideoTabAControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            memoEditTabASubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();

            memoEditTabASubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? memoEditTabASubheader1.Properties.NullText;

            clipartEditContainerTabA1.Init(ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image), CustomTabInfo.Clipart1Configuration, TabPageContainer.ParentControl);
            clipartEditContainerTabA1.EditValueChanged += OnEditValueChanged;
        }
Пример #10
0
        public FishingTabCControl(IChildTabPageContainer slideContainer, StarChildTabInfo tabInfo) : base(slideContainer, tabInfo)
        {
            InitializeComponent();

            memoEditTabCSubheader1.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabCSubheader2.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();
            memoEditTabCSubheader3.EnableSelectAll().RaiseNullValueIfEditorEmpty().RaiseChangePlaceholderColor();

            memoEditTabCSubheader1.Properties.NullText = CustomTabInfo.SubHeader1Placeholder ?? memoEditTabCSubheader1.Properties.NullText;
            memoEditTabCSubheader2.Properties.NullText = CustomTabInfo.SubHeader2Placeholder ?? memoEditTabCSubheader2.Properties.NullText;
            memoEditTabCSubheader3.Properties.NullText = CustomTabInfo.SubHeader3Placeholder ?? memoEditTabCSubheader3.Properties.NullText;
        }
        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);
        }
Пример #12
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();
        }
Пример #13
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;
        }
Пример #14
0
 public ChildTabBaseControl(IChildTabPageContainer tabPageContainer, StarChildTabInfo tabInfo) : this()
 {
     TabPageContainer = tabPageContainer;
     TabInfo          = tabInfo;
 }