Skip to content

Commit

Permalink
Merge pull request #7 from johnlink/feature/5_add_suggested_filename
Browse files Browse the repository at this point in the history
Added a suggested save file name to the GUI that contains the database, date, and time.
  • Loading branch information
AaronKelley committed Mar 28, 2016
2 parents 04e7a78 + 4413631 commit dcda5dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ssdumpGUI/ssdumpGUI.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ssdumpGUI/ssdumpGUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ private void btnExecute_Click(object sender, EventArgs e)
saveFileDialog1.Filter = "sql files (*.sql)|*.sql|All files(*.*)|*.*";
saveFileDialog1.FilterIndex = 1;
saveFileDialog1.RestoreDirectory = true;
saveFileDialog1.FileName = txtDatabase.Text + "_" + DateTime.Now.ToString("yyyyMMdd_HHmmss");

if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
Expand All @@ -57,7 +58,7 @@ private void btnExecute_Click(object sender, EventArgs e)
{
processor.Execute();
processing.Close();
MessageBox.Show("SQL Server Dump Complete", "Complete", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
MessageBox.Show("SQL Server Dump Complete", "Complete", MessageBoxButtons.OK, MessageBoxIcon.None, MessageBoxDefaultButton.Button1);
}
catch (Exception ex)
{
Expand Down
2 changes: 1 addition & 1 deletion ssdumpGUI/ssdumpGUI.resx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@
<value>True</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>48</value>
<value>113</value>
</metadata>
</root>

0 comments on commit dcda5dd

Please sign in to comment.