private void RefreshPreview() { _previousCursor = Mouse.OverrideCursor; Mouse.OverrideCursor = Cursors.Wait; HTMLReportsConfiguration currentConf = WorkSpace.Instance.Solution.HTMLReportsConfigurationSetList.Where(x => (x.IsSelected == true)).FirstOrDefault(); //changing the solution because report should not be created in installtion folder due to permissions issues + it can be multiple users will run same Ginger on server if (Directory.Exists(mPreviewDummyReportPath)) { ClearDirectoryContent(mPreviewDummyReportPath); } else { PrepareDummyReportData(); } Ginger.Reports.GingerExecutionReport.ExtensionMethods.CreateGingerExecutionReport(new ReportInfo(mPreviewDummyReportDataPath), false, _HTMLReportConfiguration, mPreviewDummyReportPath, false, currentConf.HTMLReportConfigurationMaximalFolderSize); WBP = new WebBrowserPage(); frmBrowser.Content = WBP; browser = WBP.GetBrowser(); browser.Navigate(System.IO.Path.Combine(mPreviewDummyReportPath, "GingerExecutionReport.html")); Mouse.OverrideCursor = _previousCursor; }
public HTMLReportTemplatesListPage() { InitializeComponent(); SetGridView(); SetGridData(); _selectedHTMLReportConfiguration = WorkSpace.Instance.Solution.HTMLReportsConfigurationSetList.Where(x => (x.IsSelected == true)).FirstOrDefault(); }
private void Init() { mHTMLReportConfiguration = App.UserProfile.Solution.HTMLReportsConfigurationSetList.Where(x => (x.IsSelected == true)).FirstOrDefault(); GingerWPF.BindingLib.ControlsBinding.ObjFieldBinding(LimitReportFolder, CheckBox.IsCheckedProperty, mHTMLReportConfiguration, nameof(mHTMLReportConfiguration.LimitReportFolderSize)); if (LimitReportFolder.IsChecked == true) { FolderMaxSize.Visibility = Visibility.Visible; GingerWPF.BindingLib.ControlsBinding.ObjFieldBinding(SizeTextBox, TextBox.TextProperty, mHTMLReportConfiguration, nameof(mHTMLReportConfiguration.HTMLReportConfigurationMaximalFolderSize)); } else { FolderMaxSize.Visibility = Visibility.Collapsed; } SetControls(); }
private void Init() { mHTMLReportConfiguration = WorkSpace.Instance.Solution.HTMLReportsConfigurationSetList.Where(x => (x.IsSelected == true)).FirstOrDefault(); mHTMLReportConfiguration.StartDirtyTracking(); GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(LimitReportFolder, CheckBox.IsCheckedProperty, mHTMLReportConfiguration, nameof(mHTMLReportConfiguration.LimitReportFolderSize)); if (LimitReportFolder.IsChecked == true) { FolderMaxSize.Visibility = Visibility.Visible; GingerCore.GeneralLib.BindingHandler.ObjFieldBinding(SizeTextBox, TextBox.TextProperty, mHTMLReportConfiguration, nameof(mHTMLReportConfiguration.HTMLReportConfigurationMaximalFolderSize)); } else { FolderMaxSize.Visibility = Visibility.Collapsed; } SetControls(); }