diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 0da55ae..947ced1 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.2.62")] -[assembly: AssemblyFileVersion("1.0.2.62")] +[assembly: AssemblyVersion("1.0.2.63")] +[assembly: AssemblyFileVersion("1.0.2.63")] diff --git a/WinForms/FrmMain.cs b/WinForms/FrmMain.cs index 5cc1716..44d30c0 100644 --- a/WinForms/FrmMain.cs +++ b/WinForms/FrmMain.cs @@ -5943,16 +5943,20 @@ private void BtnChangeDefaultTemplate_Click(object sender, EventArgs e) else { filePath = fromChangeTemplate; - isFileChanged = true; - // delete the old part - dsp.DeleteExternalRelationship(attachedTemplateId); + // delete the old part if it exists + if (dsp.ExternalRelationships.Count() > 0) + { + dsp.DeleteExternalRelationship(attachedTemplateId); + isFileChanged = true; + } + // if we aren't Normal, add a new part back in with the new path if (fromChangeTemplate != "Normal") { - // add back the new path Uri newFilePath = new Uri(filePath); dsp.AddExternalRelationship(StringResources.DocumentTemplatePartType, newFilePath, attachedTemplateId); + isFileChanged = true; } else { @@ -5962,6 +5966,7 @@ private void BtnChangeDefaultTemplate_Click(object sender, EventArgs e) if (oe.ToString() == "DocumentFormat.OpenXml.Wordprocessing.AttachedTemplate") { oe.Remove(); + isFileChanged = true; } } } diff --git a/bin/Debug/Office File Explorer.application b/bin/Debug/Office File Explorer.application index e32549b..f7a98cc 100644 --- a/bin/Debug/Office File Explorer.application +++ b/bin/Debug/Office File Explorer.application @@ -21,7 +21,7 @@ - 12QMAkyI/2XnCGALa50PsVDK6Ci8WAUedu+sJ59bCDo= + hRjzqREVgkOjV798dMyqjIBErUVQRzJAEMWUF29dBV4= diff --git a/bin/Debug/Office File Explorer.exe b/bin/Debug/Office File Explorer.exe index 0d76b9a..a2222f4 100644 Binary files a/bin/Debug/Office File Explorer.exe and b/bin/Debug/Office File Explorer.exe differ diff --git a/bin/Debug/Office File Explorer.exe.manifest b/bin/Debug/Office File Explorer.exe.manifest index 0d7c365..d13b51c 100644 --- a/bin/Debug/Office File Explorer.exe.manifest +++ b/bin/Debug/Office File Explorer.exe.manifest @@ -62,7 +62,7 @@ - ClLuYv9njnZSG6L7ztBPJH4simwKbw9paUj6lNEcAIo= + T4O5hlruMmjZJbqIkvHvtsTIg8p1ju7nyHAqEEk0mLU= diff --git a/bin/Debug/Office File Explorer.pdb b/bin/Debug/Office File Explorer.pdb index 26946a0..fd37cdc 100644 Binary files a/bin/Debug/Office File Explorer.pdb and b/bin/Debug/Office File Explorer.pdb differ diff --git a/bin/Debug/app.publish/Office File Explorer.exe b/bin/Debug/app.publish/Office File Explorer.exe index 0d76b9a..a2222f4 100644 Binary files a/bin/Debug/app.publish/Office File Explorer.exe and b/bin/Debug/app.publish/Office File Explorer.exe differ diff --git a/bin/Release/Office File Explorer.application b/bin/Release/Office File Explorer.application index 8044dde..2d2d40a 100644 --- a/bin/Release/Office File Explorer.application +++ b/bin/Release/Office File Explorer.application @@ -1,6 +1,6 @@  - + @@ -15,13 +15,13 @@ - + - oAInpriVHP1OHTo1W73dWNVoEnZMuGPR0r8OycKcQZI= + b7aKtFxizVZ6i6GMnuKl8oYRDa94wgC8cqXcP9WsYAI= diff --git a/bin/Release/Office File Explorer.exe b/bin/Release/Office File Explorer.exe index f5cbd14..61f12cc 100644 Binary files a/bin/Release/Office File Explorer.exe and b/bin/Release/Office File Explorer.exe differ diff --git a/bin/Release/Office File Explorer.exe.manifest b/bin/Release/Office File Explorer.exe.manifest index 42e241d..993c9d8 100644 --- a/bin/Release/Office File Explorer.exe.manifest +++ b/bin/Release/Office File Explorer.exe.manifest @@ -1,10 +1,10 @@  - + - + @@ -55,14 +55,14 @@ - - + + - oL2GoFwDo5VbFy2qNZC4yjCdYybaIYjmZXc/mLcjLK8= + 7o4vp1/tfAb/O9S76ShLd1FvlVRG+fOx1TkD9TSICFI= diff --git a/bin/Release/Office File Explorer.pdb b/bin/Release/Office File Explorer.pdb index 1db8302..63ea5ad 100644 Binary files a/bin/Release/Office File Explorer.pdb and b/bin/Release/Office File Explorer.pdb differ diff --git a/bin/Release/Office File Explorer.zip b/bin/Release/Office File Explorer.zip index 06d7169..5240f88 100644 Binary files a/bin/Release/Office File Explorer.zip and b/bin/Release/Office File Explorer.zip differ diff --git a/bin/Release/app.publish/Office File Explorer.exe b/bin/Release/app.publish/Office File Explorer.exe index f5cbd14..61f12cc 100644 Binary files a/bin/Release/app.publish/Office File Explorer.exe and b/bin/Release/app.publish/Office File Explorer.exe differ diff --git a/obj/Debug/Office File Explorer.application b/obj/Debug/Office File Explorer.application index e32549b..f7a98cc 100644 --- a/obj/Debug/Office File Explorer.application +++ b/obj/Debug/Office File Explorer.application @@ -21,7 +21,7 @@ - 12QMAkyI/2XnCGALa50PsVDK6Ci8WAUedu+sJ59bCDo= + hRjzqREVgkOjV798dMyqjIBErUVQRzJAEMWUF29dBV4= diff --git a/obj/Debug/Office File Explorer.exe b/obj/Debug/Office File Explorer.exe index 0d76b9a..a2222f4 100644 Binary files a/obj/Debug/Office File Explorer.exe and b/obj/Debug/Office File Explorer.exe differ diff --git a/obj/Debug/Office File Explorer.exe.manifest b/obj/Debug/Office File Explorer.exe.manifest index 0d7c365..d13b51c 100644 --- a/obj/Debug/Office File Explorer.exe.manifest +++ b/obj/Debug/Office File Explorer.exe.manifest @@ -62,7 +62,7 @@ - ClLuYv9njnZSG6L7ztBPJH4simwKbw9paUj6lNEcAIo= + T4O5hlruMmjZJbqIkvHvtsTIg8p1ju7nyHAqEEk0mLU= diff --git a/obj/Debug/Office File Explorer.pdb b/obj/Debug/Office File Explorer.pdb index 26946a0..fd37cdc 100644 Binary files a/obj/Debug/Office File Explorer.pdb and b/obj/Debug/Office File Explorer.pdb differ diff --git a/obj/Release/Office File Explorer.application b/obj/Release/Office File Explorer.application index 8044dde..2d2d40a 100644 --- a/obj/Release/Office File Explorer.application +++ b/obj/Release/Office File Explorer.application @@ -1,6 +1,6 @@  - + @@ -15,13 +15,13 @@ - + - oAInpriVHP1OHTo1W73dWNVoEnZMuGPR0r8OycKcQZI= + b7aKtFxizVZ6i6GMnuKl8oYRDa94wgC8cqXcP9WsYAI= diff --git a/obj/Release/Office File Explorer.csproj.FileListAbsolute.txt b/obj/Release/Office File Explorer.csproj.FileListAbsolute.txt index ca05e15..f58308c 100644 --- a/obj/Release/Office File Explorer.csproj.FileListAbsolute.txt +++ b/obj/Release/Office File Explorer.csproj.FileListAbsolute.txt @@ -73,7 +73,6 @@ E:\GitHub\Office-File-Explorer\obj\Release\Office File Explorer.application E:\GitHub\Office-File-Explorer\obj\Release\Office File Explorer.csproj.CopyComplete E:\GitHub\Office-File-Explorer\obj\Release\Office File Explorer.exe E:\GitHub\Office-File-Explorer\obj\Release\Office File Explorer.pdb -E:\GitHub\Office-File-Explorer\obj\Release\Office File Explorer.csprojAssemblyReference.cache E:\GitHub\Office-File-Explorer\obj\Release\Office_File_Explorer.Forms.FrmFixDocument.resources E:\GitHub\Office-File-Explorer\obj\Release\Office_File_Explorer.Forms.FrmClipboardViewer.resources E:\GitHub\Office-File-Explorer\obj\Release\Office_File_Explorer.Forms.FrmFontDetails.resources @@ -85,3 +84,4 @@ E:\GitHub\Office-File-Explorer\obj\Release\Office_File_Explorer.Forms.FrmMoveSli E:\GitHub\Office-File-Explorer\obj\Release\Office_File_Explorer.Forms.FrmCustomXmlViewer.resources E:\GitHub\Office-File-Explorer\obj\Release\Office_File_Explorer.Forms.FrmViewImages.resources E:\GitHub\Office-File-Explorer\obj\Release\Office_File_Explorer.WinForms.FrmChangeTemplate.resources +E:\GitHub\Office-File-Explorer\obj\Release\Office File Explorer.csproj.AssemblyReference.cache diff --git a/obj/Release/Office File Explorer.exe b/obj/Release/Office File Explorer.exe index f5cbd14..61f12cc 100644 Binary files a/obj/Release/Office File Explorer.exe and b/obj/Release/Office File Explorer.exe differ diff --git a/obj/Release/Office File Explorer.exe.manifest b/obj/Release/Office File Explorer.exe.manifest index 42e241d..993c9d8 100644 --- a/obj/Release/Office File Explorer.exe.manifest +++ b/obj/Release/Office File Explorer.exe.manifest @@ -1,10 +1,10 @@  - + - + @@ -55,14 +55,14 @@ - - + + - oL2GoFwDo5VbFy2qNZC4yjCdYybaIYjmZXc/mLcjLK8= + 7o4vp1/tfAb/O9S76ShLd1FvlVRG+fOx1TkD9TSICFI= diff --git a/obj/Release/Office File Explorer.pdb b/obj/Release/Office File Explorer.pdb index 1db8302..63ea5ad 100644 Binary files a/obj/Release/Office File Explorer.pdb and b/obj/Release/Office File Explorer.pdb differ diff --git a/obj/Release/Office_File_Explorer.Properties.Resources.resources b/obj/Release/Office_File_Explorer.Properties.Resources.resources index 36829f8..d33eb59 100644 Binary files a/obj/Release/Office_File_Explorer.Properties.Resources.resources and b/obj/Release/Office_File_Explorer.Properties.Resources.resources differ diff --git a/obj/Release/TempPE/Properties.Resources.Designer.cs.dll b/obj/Release/TempPE/Properties.Resources.Designer.cs.dll index a93fbb9..1894bd8 100644 Binary files a/obj/Release/TempPE/Properties.Resources.Designer.cs.dll and b/obj/Release/TempPE/Properties.Resources.Designer.cs.dll differ