Skip to content

Commit

Permalink
cleanup UI
Browse files Browse the repository at this point in the history
  • Loading branch information
komefai committed Jan 15, 2018
1 parent ac760b5 commit 635d432
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
42 changes: 21 additions & 21 deletions PS4Macro/Forms/MacroCompressorForm.Designer.cs

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

8 changes: 6 additions & 2 deletions PS4Macro/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
Expand Down Expand Up @@ -563,11 +564,14 @@ private void screenshotToolStripMenuItem_Click(object sender, EventArgs e)
var folder = "screenshots";

// Create folder if not exist
System.IO.Directory.CreateDirectory(folder);
Directory.CreateDirectory(folder);

if (frame != null)
{
frame.Save(folder + @"\" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".png");
var fileName = folder + @"\" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".png";
frame.Save(fileName);

Console.WriteLine($"{DateTime.Now.ToString()} - Screenshot saved to {Path.GetFullPath(fileName)}");
}
else
{
Expand Down

0 comments on commit 635d432

Please sign in to comment.