Skip to content

Commit 7caf2cc

Browse files
Version 3.5.5 bring the current file to Save as
1 parent aefaeed commit 7caf2cc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

SQL Document Builder/SQLDocumentBuilder.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<StartupObject>SQL_Document_Builder.Program</StartupObject>
1414
<ApplicationIcon>SQLDocBuilder.ico</ApplicationIcon>
1515
<PackageIcon>SQL_Doc.png</PackageIcon>
16-
<AssemblyVersion>3.5.4</AssemblyVersion>
17-
<FileVersion>3.5.4</FileVersion>
16+
<AssemblyVersion>3.5.5</AssemblyVersion>
17+
<FileVersion>3.5.5</FileVersion>
1818
<RepositoryUrl>https://github.com/SherlockSoftwareInc/SQL-Document-Builder</RepositoryUrl>
1919
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
2020
<Title>SQL Server Script and Document Builder</Title>

SQL Document Builder/SqlEditBox.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,12 @@ internal DialogResult SaveAs()
10791079
_ => "All files(*.*)|*.*",
10801080
}
10811081
};
1082+
// set the file name if the current file name is not empty
1083+
if (!string.IsNullOrEmpty(FileName))
1084+
{
1085+
oFile.FileName = FileName;
1086+
}
1087+
10821088
result = oFile.ShowDialog();
10831089

10841090
if (result == DialogResult.OK)

0 commit comments

Comments
 (0)