|
@@ -24,8 +24,8 @@ namespace PDF_Office.ViewModels.EditTools.Background
|
|
|
|
|
|
private ViewContentViewModel viewContentViewModel;
|
|
private ViewContentViewModel viewContentViewModel;
|
|
|
|
|
|
- public string TemplateListName = "BackgroundTemplateListBaseContent";
|
|
|
|
- public string CreateName = "BackgroundCreateBaseContent";
|
|
|
|
|
|
+ public string TemplateListBaseName = "BackgroundTemplateListBaseContent";
|
|
|
|
+ public string CreateBaseName = "BackgroundCreateBaseContent";
|
|
|
|
|
|
public string CreateModColorName = "BackgroundCreateColorContent";
|
|
public string CreateModColorName = "BackgroundCreateColorContent";
|
|
public string CreateModFileName = "BackgroundCreateFileContent";
|
|
public string CreateModFileName = "BackgroundCreateFileContent";
|
|
@@ -127,14 +127,19 @@ namespace PDF_Office.ViewModels.EditTools.Background
|
|
{
|
|
{
|
|
if (enumTemplateListOrCreate == EnumTemplateListOrCreate.StatusTemplate)
|
|
if (enumTemplateListOrCreate == EnumTemplateListOrCreate.StatusTemplate)
|
|
{
|
|
{
|
|
- EnterSelectedContent(TemplateListName);
|
|
|
|
|
|
+ EnterSelectedContent(TemplateListBaseName);
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- EnterSelectedContent(CreateName);
|
|
|
|
|
|
+ EnterSelectedContent(CreateBaseName);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public void SaveBackgroundTemplate()
|
|
|
|
+ {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
public void SetCurrentCreateMod(string currentCreateModName)
|
|
public void SetCurrentCreateMod(string currentCreateModName)
|
|
{
|
|
{
|
|
if (currentCreateModName == CreateModColorName)
|
|
if (currentCreateModName == CreateModColorName)
|
|
@@ -163,11 +168,11 @@ namespace PDF_Office.ViewModels.EditTools.Background
|
|
{
|
|
{
|
|
NavigationParameters param = new NavigationParameters();
|
|
NavigationParameters param = new NavigationParameters();
|
|
param.Add(ParameterNames.PDFViewer, PDFViewer);
|
|
param.Add(ParameterNames.PDFViewer, PDFViewer);
|
|
- if (SelectedContentName == TemplateListName)
|
|
|
|
|
|
+ if (SelectedContentName == TemplateListBaseName)
|
|
{
|
|
{
|
|
param.Add("CurrentCreateModName", CurrentCreateMod);
|
|
param.Add("CurrentCreateModName", CurrentCreateMod);
|
|
}
|
|
}
|
|
- else if (SelectedContentName == CreateName)
|
|
|
|
|
|
+ else if (SelectedContentName == CreateBaseName)
|
|
{
|
|
{
|
|
param.Add("CurrentTemplateListModName", CurrentTemplateListMod);
|
|
param.Add("CurrentTemplateListModName", CurrentTemplateListMod);
|
|
}
|
|
}
|
|
@@ -187,7 +192,7 @@ namespace PDF_Office.ViewModels.EditTools.Background
|
|
{
|
|
{
|
|
navigationContext.Parameters.TryGetValue<ViewContentViewModel>(ParameterNames.ViewContentViewModel, out viewContentViewModel);
|
|
navigationContext.Parameters.TryGetValue<ViewContentViewModel>(ParameterNames.ViewContentViewModel, out viewContentViewModel);
|
|
navigationContext.Parameters.TryGetValue<CPDFViewer>(ParameterNames.PDFViewer, out PDFViewer);
|
|
navigationContext.Parameters.TryGetValue<CPDFViewer>(ParameterNames.PDFViewer, out PDFViewer);
|
|
- EnterSelectedContent(TemplateListName);
|
|
|
|
|
|
+ EnterSelectedContent(TemplateListBaseName);
|
|
EnterDocumentContent();
|
|
EnterDocumentContent();
|
|
}
|
|
}
|
|
|
|
|