private void SaveButton_Click(object sender, RoutedEventArgs e) { _HTMLReportConfiguration.Name = NewTemplateNameTextBox.Text.ToString(); _HTMLReportConfiguration.Description = TemplateDescriptionTextBox.Text.ToString(); _newHTMLReportConfiguration = _HTMLReportConfiguration; _pageGenericWin.Hide(); WorkSpace.Instance.Solution.SaveSolution(true, SolutionGeneral.Solution.eSolutionItemToSave.ReportConfiguration); if (_existingTemplatePage) { Reporter.ToStatus(eStatusMsgKey.SaveItem, null, _HTMLReportConfiguration.GetNameForFileName(), "item"); WorkSpace.Instance.SolutionRepository.SaveRepositoryItem(_HTMLReportConfiguration); Reporter.HideStatusMessage(); } }
private void SaveButton_Click(object sender, RoutedEventArgs e) { _HTMLReportConfiguration.Name = NewTemplateNameTextBox.Text.ToString(); _HTMLReportConfiguration.Description = TemplateDescriptionTextBox.Text.ToString(); _newHTMLReportConfiguration = _HTMLReportConfiguration; _pageGenericWin.Hide(); App.UserProfile.Solution.HTMLReportsConfigurationSetList.Where(x => (x.IsSelected == true)).FirstOrDefault().HTMLReportTemplatesSeq = App.UserProfile.Solution.HTMLReportsConfigurationSetList.Where(x => (x.IsSelected == true)).FirstOrDefault().HTMLReportTemplatesSeq + 1; App.UserProfile.Solution.SaveSolution(true, SolutionGeneral.Solution.eSolutionItemToSave.ReportConfiguration); if (_existingTemplatePage) { Reporter.ToGingerHelper(eGingerHelperMsgKey.SaveItem, null, _HTMLReportConfiguration.GetNameForFileName(), "item"); WorkSpace.Instance.SolutionRepository.SaveRepositoryItem(_HTMLReportConfiguration); Reporter.CloseGingerHelper(); } }