Permalink
Browse files

Create object fields for save directory and image type

  • Loading branch information...
1 parent 0faf72f commit 2585e15c389aca4f39887b6d624990efbb2c822d @robertgreiner committed Jan 17, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 Slapshot/Slapshot.cs
View
@@ -12,8 +12,14 @@ namespace Slapshot
{
public partial class Slapshot : Form
{
+
+ private string SaveDirectory;
+ private ImageFormat SaveFormat;
+
public Slapshot()
{
+ SaveDirectory = ".";
+ SaveFormat = ImageFormat.Png;
InitializeComponent();
}
@@ -39,7 +45,7 @@ private void minimizeToTray()
private void CaptureMenuItem_Click(object sender, EventArgs e)
{
- var screenshot = new Screenshot(".", ImageFormat.Png);
+ var screenshot = new Screenshot(SaveDirectory, SaveFormat);
screenshot.CaptureEntireScreen();
}

0 comments on commit 2585e15

Please sign in to comment.