public RunSetActionHTMLReportEditPage(RunSetActionHTMLReport RunSetActionHTMLReport) { InitializeComponent(); this.runSetActionHTMLReport = RunSetActionHTMLReport; HTMLReportFolderTextBox.Init(new Context() { Environment = WorkSpace.Instance.RunsetExecutor.RunsetExecutionEnvironment }, runSetActionHTMLReport, nameof(RunSetActionHTMLReport.HTMLReportFolderName), true, true, UCValueExpression.eBrowserType.Folder, "*.*", null); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(UseAlternativeHTMLReportFolderCbx, CheckBox.IsCheckedProperty, RunSetActionHTMLReport, RunSetActionHTMLReport.Fields.isHTMLReportFolderNameUsed); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(UsePermanentHTMLReportFolderCbx, CheckBox.IsCheckedProperty, RunSetActionHTMLReport, RunSetActionHTMLReport.Fields.isHTMLReportPermanentFolderNameUsed); CurrentTemplatePickerCbx_Binding(); }
private void Init() { GingerCore.General.ObjFieldBinding(DefaultTemplatePickerCbx, ComboBox.SelectedValueProperty, mEmailAttachment, EmailHtmlReportAttachment.Fields.SelectedHTMLReportTemplateID); HTMLReportFolderTextBox.Init(mEmailAttachment, EmailAttachment.Fields.ExtraInformation, true, true, UCValueExpression.eBrowserType.Folder, "*.*", null); GingerCore.General.ObjFieldBinding(UseAlternativeHTMLReportFolderCbx, CheckBox.IsCheckedProperty, mEmailAttachment, EmailHtmlReportAttachment.Fields.IsAlternameFolderUsed); RadioButtonInit(mEmailAttachment.IsLinkEnabled); DefaultTemplatePickerCbx.ItemsSource = null; if ((App.UserProfile.Solution != null) && (App.LocalRepository.GetSolutionHTMLReportConfigurations() != null) && (App.LocalRepository.GetSolutionHTMLReportConfigurations().Count > 0)) { DefaultTemplatePickerCbx.ItemsSource = App.LocalRepository.GetSolutionHTMLReportConfigurations(); DefaultTemplatePickerCbx.DisplayMemberPath = HTMLReportConfiguration.Fields.Name; DefaultTemplatePickerCbx.SelectedValuePath = HTMLReportConfiguration.Fields.ID; } }
private void Init() { GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(DefaultTemplatePickerCbx, ComboBox.SelectedValueProperty, mEmailAttachment, EmailHtmlReportAttachment.Fields.SelectedHTMLReportTemplateID); HTMLReportFolderTextBox.Init(null, mEmailAttachment, EmailAttachment.Fields.ExtraInformation, true, true, UCValueExpression.eBrowserType.Folder, "*.*", null); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(UseAlternativeHTMLReportFolderCbx, CheckBox.IsCheckedProperty, mEmailAttachment, EmailHtmlReportAttachment.Fields.IsAlternameFolderUsed); RadioButtonInit(mEmailAttachment.IsLinkEnabled); DefaultTemplatePickerCbx.ItemsSource = null; ObservableList <HTMLReportConfiguration> HTMLReportConfigurations = WorkSpace.Instance.SolutionRepository.GetAllRepositoryItems <HTMLReportConfiguration>(); if (WorkSpace.Instance.Solution != null && HTMLReportConfigurations.Count > 0) { DefaultTemplatePickerCbx.ItemsSource = HTMLReportConfigurations; DefaultTemplatePickerCbx.DisplayMemberPath = HTMLReportConfiguration.Fields.Name; DefaultTemplatePickerCbx.SelectedValuePath = HTMLReportConfiguration.Fields.ID; } }