Example #1
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;
        }
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.NextStepsState.TabI.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT14ICLIPART1", clipart1);
            }

            var clipart2 = SlideContainer.EditedContent.NextStepsState.TabI.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT14ICLIPART2", clipart2);
            }

            var clipart3 = SlideContainer.EditedContent.NextStepsState.TabI.Clipart3 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image);

            if (clipart3 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT14ICLIPART3", clipart3);
            }

            var slideHeader = (SlideContainer.EditedContent.NextStepsState.TabI.SlideHeader ??
                               CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value;

            var combos = new[]
            {
                (SlideContainer.EditedContent.NextStepsState.TabI.Combo1 ?? CustomTabInfo.Combo1Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.NextStepsState.TabI.Combo2 ?? CustomTabInfo.Combo2Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.NextStepsState.TabI.Combo3 ?? CustomTabInfo.Combo3Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.NextStepsState.TabI.Combo4 ?? CustomTabInfo.Combo4Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.NextStepsState.TabI.Combo5 ?? CustomTabInfo.Combo5Items.FirstOrDefault(h => h.IsDefault))?.Value,
            }
            .Where(item => !String.IsNullOrWhiteSpace(item))
            .ToList();

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftNextStepsFile("i_next_steps.pptx");

            outputDataPackage.TextItems.Add("SHIFT14IHeader".ToUpper(), slideHeader);

            outputDataPackage.TextItems.Add("SHIFT14ICOMBOMERGE1".ToUpper(), String.Join(String.Format("{0}{0}", (char)13), combos.Select(item => String.Format("- {0}", item))));

            outputDataPackage.TextItems.Add("SHIFT14ITAB1SUBHEADER1".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabI.Subheader1 ?? CustomTabInfo.SubHeader1DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14ITAB2SUBHEADER1".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabI.Subheader2 ?? CustomTabInfo.SubHeader2DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14ITAB3SUBHEADER1".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabI.Subheader3 ?? CustomTabInfo.SubHeader3DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14ITAB4SUBHEADER1".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabI.Subheader4 ?? CustomTabInfo.SubHeader4DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14ITAB5SUBHEADER1".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabI.Subheader5 ?? CustomTabInfo.SubHeader5DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14ITAB6SUBHEADER1".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabI.Subheader6 ?? CustomTabInfo.SubHeader6DefaultValue);

            return(outputDataPackage);
        }
        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;
        }
Example #4
0
        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;
        }
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart = SlideContainer.EditedContent.CoverState.TabD.Clipart1 ??
                          ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT01DCLIPART1", clipart);
            }

            var slideHeader = (SlideContainer.EditedContent.CoverState.TabD.SlideHeader ??
                               CustomTabInfo.HeadersItems.FirstOrDefault(h =>
                                                                         h.IsDefault))?.Value;
            var subHeader1 = SlideContainer.EditedContent.CoverState.TabD.Subheader1 ??
                             CustomTabInfo.SubHeader1DefaultValue;
            var calendar1 = SlideContainer.EditedContent.CoverState.TabD.Calendar1 != DateTime.MinValue
                                ? SlideContainer.EditedContent.CoverState.TabD.Calendar1 ?? _defaultDate
                                : (DateTime?)null;

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftCoverFile("004_cover_regional.pptx");

            outputDataPackage.TextItems.Add("SHIFT01DHeader".ToUpper(), slideHeader);
            outputDataPackage.TextItems.Add("SHIFT01DCalendar1".ToUpper(), calendar1?.ToString("MMMM d, yyyy") ?? String.Empty);
            outputDataPackage.TextItems.Add("SHIFT01DSubheader1".ToUpper(), subHeader1);

            return(outputDataPackage);
        }
Example #6
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;
        }
Example #7
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();
        }
Example #8
0
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.InvestmentState.TabB.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT12BCLIPART1", clipart1);
            }
            var clipart2 = SlideContainer.EditedContent.InvestmentState.TabB.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT12BCLIPART2", clipart2);
            }
            var clipart3 = SlideContainer.EditedContent.InvestmentState.TabB.Clipart3 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image);

            if (clipart3 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT12BCLIPART3", clipart3);
            }
            var clipart4 = SlideContainer.EditedContent.InvestmentState.TabB.Clipart4 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart4Image);

            if (clipart4 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT12BCLIPART4", clipart4);
            }
            var clipart5 = SlideContainer.EditedContent.InvestmentState.TabB.Clipart5 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart5Image);

            if (clipart5 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT12BCLIPART5", clipart5);
            }

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftInvestmentFile("investment_b.pptx");

            outputDataPackage.TextItems.Add("SHIFT12BHEADER".ToUpper(), (SlideContainer.EditedContent.InvestmentState.TabB.SlideHeader ?? CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value);

            outputDataPackage.TextItems.Add("SHIFT12BCOMBO1".ToUpper(), (SlideContainer.EditedContent.InvestmentState.TabB.Combo1 ?? CustomTabInfo.Combo1Items.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT12BCOMBO2".ToUpper(), (SlideContainer.EditedContent.InvestmentState.TabB.Combo2 ?? CustomTabInfo.Combo2Items.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT12BCOMBO3".ToUpper(), (SlideContainer.EditedContent.InvestmentState.TabB.Combo3 ?? CustomTabInfo.Combo3Items.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT12BCOMBO4".ToUpper(), (SlideContainer.EditedContent.InvestmentState.TabB.Combo4 ?? CustomTabInfo.Combo4Items.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT12BCOMBO5".ToUpper(), (SlideContainer.EditedContent.InvestmentState.TabB.Combo5 ?? CustomTabInfo.Combo5Items.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT12BCOMBO6".ToUpper(), (SlideContainer.EditedContent.InvestmentState.TabB.Combo6 ?? CustomTabInfo.Combo6Items.FirstOrDefault(h => h.IsDefault))?.Value);

            outputDataPackage.TextItems.Add("SHIFT12BSUBHEADER1".ToUpper(), SlideContainer.EditedContent.InvestmentState.TabB.Subheader1 ?? CustomTabInfo.SubHeader1DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT12BSUBHEADER2".ToUpper(), SlideContainer.EditedContent.InvestmentState.TabB.Subheader2 ?? CustomTabInfo.SubHeader2DefaultValue);

            return(outputDataPackage);
        }
Example #9
0
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.InvestmentState.TabF.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                clipart1.OutputBackground = true;
                outputDataPackage.ClipartItems.Add("SHIFT12FCLIPART1", clipart1);
            }

            var clipart2 = SlideContainer.EditedContent.InvestmentState.TabF.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT12FCLIPART2", clipart2);
            }

            var clipart3 = SlideContainer.EditedContent.InvestmentState.TabF.Clipart3 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image);

            if (clipart3 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT12FCLIPART3", clipart3);
            }

            var slideHeader = (SlideContainer.EditedContent.InvestmentState.TabF.SlideHeader ??
                               CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value;

            var combos = new[]
            {
                (SlideContainer.EditedContent.InvestmentState.TabF.Combo1 ?? CustomTabInfo.Combo1Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.InvestmentState.TabF.Combo2 ?? CustomTabInfo.Combo2Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.InvestmentState.TabF.Combo3 ?? CustomTabInfo.Combo3Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.InvestmentState.TabF.Combo4 ?? CustomTabInfo.Combo4Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.InvestmentState.TabF.Combo5 ?? CustomTabInfo.Combo5Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.InvestmentState.TabF.Combo6 ?? CustomTabInfo.Combo6Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.InvestmentState.TabF.Combo7 ?? CustomTabInfo.Combo7Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.InvestmentState.TabF.Combo8 ?? CustomTabInfo.Combo8Items.FirstOrDefault(h => h.IsDefault))?.Value,
            }
            .Where(item => !String.IsNullOrWhiteSpace(item))
            .ToList();

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftInvestmentFile("proof_f.pptx");

            outputDataPackage.TextItems.Add("SHIFT12FHeader".ToUpper(), slideHeader);
            outputDataPackage.TextItems.Add("SHIFT12FSUBHEADER1".ToUpper(), SlideContainer.EditedContent.InvestmentState.TabF.Subheader1 ?? CustomTabInfo.SubHeader1DefaultValue);

            outputDataPackage.TextItems.Add("SHIFT12FCOMBOMERGE1".ToUpper(), String.Join(String.Format("{0}", (char)13), combos));

            return(outputDataPackage);
        }
        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 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();
        }
Example #12
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;
        }
        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;
        }
Example #14
0
        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;
        }
Example #15
0
        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();
        }
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.GoalsState.TabB.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                clipart1.OutputBackground = true;
                outputDataPackage.ClipartItems.Add("SHIFT04BCLIPART1", clipart1);
            }
            var clipart2 = SlideContainer.EditedContent.GoalsState.TabB.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT04BCLIPART2", clipart2);
            }
            var clipart3 = SlideContainer.EditedContent.GoalsState.TabB.Clipart3 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image);

            if (clipart3 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT04BCLIPART3", clipart3);
            }

            var slideHeader = (SlideContainer.EditedContent.GoalsState.TabB.SlideHeader ??
                               CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value;
            var combos = new[]
            {
                (SlideContainer.EditedContent.GoalsState.TabB.MemoPopup1 ?? CustomTabInfo.MemoPopup1DefaultItem)?.Value,
                (SlideContainer.EditedContent.GoalsState.TabB.MemoPopup2 ?? CustomTabInfo.MemoPopup2DefaultItem)?.Value,
                (SlideContainer.EditedContent.GoalsState.TabB.MemoPopup3 ?? CustomTabInfo.MemoPopup3DefaultItem)?.Value,
            }
            .Where(item => !String.IsNullOrWhiteSpace(item))
            .ToList();

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftGoalsFile("014_goals_ihm.pptx");

            outputDataPackage.TextItems.Add("SHIFT04BHeader".ToUpper(), slideHeader);
            outputDataPackage.TextItems.Add("SHIFT04BMULTIBOX1".ToUpper(), combos.ElementAtOrDefault(0));
            outputDataPackage.TextItems.Add("SHIFT04BMULTIBOX2".ToUpper(), combos.ElementAtOrDefault(1));
            outputDataPackage.TextItems.Add("SHIFT04BMULTIBOX3".ToUpper(), combos.ElementAtOrDefault(2));

            return(outputDataPackage);
        }
        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;
        }
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.CBCState.TabF.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT08FCLIPART1", clipart1);
            }
            var clipart2 = SlideContainer.EditedContent.CBCState.TabF.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT08FCLIPART2", clipart2);
            }

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftCBCFile("054a_cbc_west_palm.pptx");

            outputDataPackage.TextItems.Add("SHIFT08FHEADER".ToUpper(), (SlideContainer.EditedContent.CBCState.TabF.SlideHeader ?? CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT08FCOMBO1".ToUpper(), (SlideContainer.EditedContent.CBCState.TabF.Combo1 ?? CustomTabInfo.Combo1Items.FirstOrDefault(item => item.IsDefault && !item.IsPlaceholder))?.Value);

            var subheaders = new[]
            {
                SlideContainer.EditedContent.CBCState.TabF.Subheader1 ?? CustomTabInfo.SubHeader1DefaultValue,
                SlideContainer.EditedContent.CBCState.TabF.Subheader2 ?? CustomTabInfo.SubHeader2DefaultValue,
                SlideContainer.EditedContent.CBCState.TabF.Subheader3 ?? CustomTabInfo.SubHeader3DefaultValue,
                SlideContainer.EditedContent.CBCState.TabF.Subheader4 ?? CustomTabInfo.SubHeader4DefaultValue,
                SlideContainer.EditedContent.CBCState.TabF.Subheader5 ?? CustomTabInfo.SubHeader5DefaultValue
            }
            .Where(item => !String.IsNullOrWhiteSpace(item))
            .ToList();

            for (int i = 0; i < 5; i++)
            {
                outputDataPackage.TextItems.Add(String.Format("SHIFT08FSUBHEADER{0}", i + 1).ToUpper(), subheaders.ElementAtOrDefault(i));
            }

            return(outputDataPackage);
        }
Example #19
0
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.IntroState.TabC.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT02CCLIPART1", clipart1);
            }
            var clipart2 = SlideContainer.EditedContent.IntroState.TabC.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT02CCLIPART2", clipart2);
            }
            var clipart3 = SlideContainer.EditedContent.IntroState.TabC.Clipart3 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image);

            if (clipart3 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT02CCLIPART3", clipart3);
            }
            var clipart4 = SlideContainer.EditedContent.IntroState.TabC.Clipart4 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart4Image);

            if (clipart4 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT02CCLIPART4", clipart4);
            }

            var slideHeader = (SlideContainer.EditedContent.IntroState.TabC.SlideHeader ??
                               CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value;

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftIntroFile("007_intro_boutique.pptx");

            outputDataPackage.TextItems.Add("SHIFT02CHeader".ToUpper(), slideHeader);

            return(outputDataPackage);
        }
Example #20
0
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.AgendaState.TabB.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT03BCLIPART1", clipart1);
            }

            var slideHeader = (SlideContainer.EditedContent.AgendaState.TabB.SlideHeader ??
                               CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value;
            var combos = new[]
            {
                (SlideContainer.EditedContent.AgendaState.TabB.Combo1 ?? CustomTabInfo.Combo1Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.AgendaState.TabB.Combo2 ?? CustomTabInfo.Combo2Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.AgendaState.TabB.Combo3 ?? CustomTabInfo.Combo3Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.AgendaState.TabB.Combo4 ?? CustomTabInfo.Combo4Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.AgendaState.TabB.Combo5 ?? CustomTabInfo.Combo5Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.AgendaState.TabB.Combo6 ?? CustomTabInfo.Combo6Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.AgendaState.TabB.Combo7 ?? CustomTabInfo.Combo7Items.FirstOrDefault(h => h.IsDefault))?.Value,
                (SlideContainer.EditedContent.AgendaState.TabB.Combo8 ?? CustomTabInfo.Combo8Items.FirstOrDefault(h => h.IsDefault))?.Value,
            }
            .Where(item => !String.IsNullOrWhiteSpace(item))
            .ToList();

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftAgendaFile("010_agenda_ihm.pptx");

            outputDataPackage.TextItems.Add("SHIFT03BHeader".ToUpper(), slideHeader);
            outputDataPackage.TextItems.Add("SHIFT03BCOMBO1".ToUpper(), combos.ElementAtOrDefault(0));
            outputDataPackage.TextItems.Add("SHIFT03BCOMBO2".ToUpper(), combos.ElementAtOrDefault(1));
            outputDataPackage.TextItems.Add("SHIFT03BCOMBO3".ToUpper(), combos.ElementAtOrDefault(2));
            outputDataPackage.TextItems.Add("SHIFT03BCOMBO4".ToUpper(), combos.ElementAtOrDefault(3));
            outputDataPackage.TextItems.Add("SHIFT03BCOMBO5".ToUpper(), combos.ElementAtOrDefault(4));
            outputDataPackage.TextItems.Add("SHIFT03BCOMBO6".ToUpper(), combos.ElementAtOrDefault(5));
            outputDataPackage.TextItems.Add("SHIFT03BCOMBO7".ToUpper(), combos.ElementAtOrDefault(6));
            outputDataPackage.TextItems.Add("SHIFT03BCOMBO8".ToUpper(), combos.ElementAtOrDefault(7));

            return(outputDataPackage);
        }
Example #21
0
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = TabPageContainer.ParentControl.SelectedTheme;

            var clipart = SlideContainer.EditedContent.FishingState.TabA.Clipart1 ?? ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart != null)
            {
                outputDataPackage.ClipartItems.Add("CP03ACLIPART1", clipart);
            }

            var slideHeader = (SlideContainer.EditedContent.FishingState.TabA.SlideHeader ?? CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value;
            var subHeaders  = new[]
            {
                SlideContainer.EditedContent.FishingState.TabA.Subheader1 ?? CustomTabInfo.SubHeader1DefaultValue,
                SlideContainer.EditedContent.FishingState.TabA.Subheader2 ?? CustomTabInfo.SubHeader2DefaultValue
            }
            .Where(item => !String.IsNullOrWhiteSpace(item))
            .ToList();

            switch (subHeaders.Count)
            {
            case 1:
                outputDataPackage.TemplateName = MasterWizardManager.Instance.SelectedWizard.GetStarFishingFile("CP03A-1.pptx");
                break;

            case 2:
                outputDataPackage.TemplateName = MasterWizardManager.Instance.SelectedWizard.GetStarFishingFile("CP03A-2.pptx");
                break;

            default:
                outputDataPackage.TemplateName = MasterWizardManager.Instance.SelectedWizard.GetStarFishingFile("CP03A-1.pptx");
                break;
            }

            outputDataPackage.TextItems.Add("CP03AHEADER".ToUpper(), slideHeader);
            outputDataPackage.TextItems.Add("HEADER".ToUpper(), slideHeader);
            outputDataPackage.TextItems.Add("CP03ASubheader1".ToUpper(), subHeaders.ElementAtOrDefault(0));
            outputDataPackage.TextItems.Add("CP03ASubheader2".ToUpper(), subHeaders.ElementAtOrDefault(1));

            return(outputDataPackage);
        }
Example #22
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);
        }
Example #24
0
        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;
        }
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftContractFile("d_agreement_closing.pptx");

            var clipart2 = SlideContainer.EditedContent.ContractState.TabD.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT15DCLIPART2", clipart2);
            }
            var clipart3 = SlideContainer.EditedContent.ContractState.TabD.Clipart3 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image);

            if (clipart3 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT15DCLIPART3", clipart3);
            }

            var userData = SlideContainer.EditedContent.ContractState.TabD.User ?? CustomTabInfo.UserList.FirstOrDefault();

            if (userData != null)
            {
                var clipart1 = ImageClipartObject.FromFile(userData?.ImageFilePath);
                if (clipart1 != null)
                {
                    outputDataPackage.ClipartItems.Add("SHIFT15DCLIPART1", clipart1);
                }

                outputDataPackage.TextItems.Add("SHIFT15DHeader".ToUpper(), userData.Name);
                outputDataPackage.TextItems.Add("SHIFT15DLinkText1".ToUpper(), userData.Description);
                outputDataPackage.TextItems.Add("SHIFT15DLinkText2".ToUpper(), userData.Email);
                outputDataPackage.TextItems.Add("SHIFT15DLinkText3".ToUpper(), userData.Phone);
            }

            return(outputDataPackage);
        }
Example #26
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;
        }
Example #27
0
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.NextStepsState.TabC.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT14CCLIPART1", clipart1);
            }
            var clipart2 = SlideContainer.EditedContent.NextStepsState.TabC.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT14CCLIPART2", clipart2);
            }

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftNextStepsFile("c_partnership.pptx");

            outputDataPackage.TextItems.Add("SHIFT14CHEADER".ToUpper(), (SlideContainer.EditedContent.NextStepsState.TabC.SlideHeader ?? CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value);

            outputDataPackage.TextItems.Add("SHIFT14CCOMBO1".ToUpper(), (SlideContainer.EditedContent.NextStepsState.TabC.Combo1 ?? CustomTabInfo.Combo1Items.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT14CCOMBO2".ToUpper(), (SlideContainer.EditedContent.NextStepsState.TabC.Combo2 ?? CustomTabInfo.Combo2Items.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT14CCOMBO3".ToUpper(), (SlideContainer.EditedContent.NextStepsState.TabC.Combo3 ?? CustomTabInfo.Combo3Items.FirstOrDefault(h => h.IsDefault))?.Value);
            outputDataPackage.TextItems.Add("SHIFT14CCOMBO4".ToUpper(), (SlideContainer.EditedContent.NextStepsState.TabC.Combo4 ?? CustomTabInfo.Combo4Items.FirstOrDefault(h => h.IsDefault))?.Value);

            outputDataPackage.TextItems.Add("SHIFT14CSUBHEADER1".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabC.Subheader1 ?? CustomTabInfo.SubHeader1DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14CSUBHEADER2".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabC.Subheader2 ?? CustomTabInfo.SubHeader2DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14CSUBHEADER3".ToUpper(), String.Empty);
            outputDataPackage.TextItems.Add("SHIFT14CSUBHEADER4".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabC.Subheader4 ?? CustomTabInfo.SubHeader4DefaultValue);

            return(outputDataPackage);
        }
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.TemplateName = MasterWizardManager.Instance.SelectedWizard.GetStarROIFile("CP06C-1.pptx");
            outputDataPackage.Theme        = TabPageContainer.ParentControl.SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.ROIState.TabC.Clipart1 ?? ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                outputDataPackage.ClipartItems.Add("CP06CCLIPART1", clipart1);
            }

            var clipart2 = SlideContainer.EditedContent.ROIState.TabC.Clipart2 ?? ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("CP06CCLIPART2", clipart2);
            }

            var clipart3 = SlideContainer.EditedContent.ROIState.TabC.Clipart3 ?? ImageClipartObject.FromImage(CustomTabInfo.Clipart3Image);

            if (clipart3 != null)
            {
                outputDataPackage.ClipartItems.Add("CP06CCLIPART3", clipart3);
            }

            outputDataPackage.TextItems = GetOutputDataTextItems();

            var slideHaeder = (SlideContainer.EditedContent.ROIState.TabC.SlideHeader ?? CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value;

            outputDataPackage.TextItems.Add("CP06CHEADER", slideHaeder);
            outputDataPackage.TextItems.Add("HEADER", slideHaeder);

            return(outputDataPackage);
        }
Example #29
0
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = SelectedTheme;

            var clipart1 = SlideContainer.EditedContent.NextStepsState.TabD.Clipart1 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart1 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT14DCLIPART1", clipart1);
            }
            var clipart2 = SlideContainer.EditedContent.NextStepsState.TabD.Clipart2 ??
                           ImageClipartObject.FromImage(CustomTabInfo.Clipart2Image);

            if (clipart2 != null)
            {
                outputDataPackage.ClipartItems.Add("SHIFT14DCLIPART2", clipart2);
            }

            outputDataPackage.TemplateName =
                MasterWizardManager.Instance.SelectedWizard.GetShiftNextStepsFile("d_grow_business.pptx");

            outputDataPackage.TextItems.Add("SHIFT14DHEADER".ToUpper(), (SlideContainer.EditedContent.NextStepsState.TabD.SlideHeader ?? CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value);

            outputDataPackage.TextItems.Add("SHIFT14DSUBHEADER1".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabD.Subheader1 ?? CustomTabInfo.SubHeader1DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14DSUBHEADER2".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabD.Subheader2 ?? CustomTabInfo.SubHeader2DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14DSUBHEADER3".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabD.Subheader3 ?? CustomTabInfo.SubHeader3DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14DSUBHEADER4".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabD.Subheader4 ?? CustomTabInfo.SubHeader4DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14DSUBHEADER5".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabD.Subheader5 ?? CustomTabInfo.SubHeader5DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14DSUBHEADER6".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabD.Subheader6 ?? CustomTabInfo.SubHeader6DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14DSUBHEADER7".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabD.Subheader7 ?? CustomTabInfo.SubHeader7DefaultValue);
            outputDataPackage.TextItems.Add("SHIFT14DSUBHEADER8".ToUpper(), SlideContainer.EditedContent.NextStepsState.TabD.Subheader8 ?? CustomTabInfo.SubHeader8DefaultValue);

            return(outputDataPackage);
        }
Example #30
0
        protected override OutputDataPackage GetOutputData()
        {
            var outputDataPackage = new OutputDataPackage();

            outputDataPackage.Theme = TabPageContainer.ParentControl.SelectedTheme;

            var clipart = SlideContainer.EditedContent.VideoState.TabA.Clipart1 ?? ImageClipartObject.FromImage(CustomTabInfo.Clipart1Image);

            if (clipart != null)
            {
                outputDataPackage.ClipartItems.Add("CP08ACLIPART1", clipart);
            }

            var slideHeader = (SlideContainer.EditedContent.VideoState.TabA.SlideHeader ?? CustomTabInfo.HeadersItems.FirstOrDefault(h => h.IsDefault))?.Value;
            var subHeader1  = SlideContainer.EditedContent.VideoState.TabA.Subheader1 ?? CustomTabInfo.SubHeader1DefaultValue;

            outputDataPackage.TemplateName = MasterWizardManager.Instance.SelectedWizard.GetStarVideoFile("CP08A-1.pptx");

            outputDataPackage.TextItems.Add("CP08AHEADER".ToUpper(), slideHeader);
            outputDataPackage.TextItems.Add("HEADER".ToUpper(), slideHeader);
            outputDataPackage.TextItems.Add("CP08ASubheader1".ToUpper(), subHeader1);

            return(outputDataPackage);
        }