Skip to content

Commit

Permalink
Create object fields for save directory and image type
Browse files Browse the repository at this point in the history
  • Loading branch information
robertgreiner committed Jan 17, 2012
1 parent 0faf72f commit 2585e15
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Slapshot/Slapshot.cs
Expand Up @@ -12,8 +12,14 @@ namespace Slapshot
{ {
public partial class Slapshot : Form public partial class Slapshot : Form
{ {

private string SaveDirectory;
private ImageFormat SaveFormat;

public Slapshot() public Slapshot()
{ {
SaveDirectory = ".";
SaveFormat = ImageFormat.Png;
InitializeComponent(); InitializeComponent();
} }


Expand All @@ -39,7 +45,7 @@ private void minimizeToTray()


private void CaptureMenuItem_Click(object sender, EventArgs e) private void CaptureMenuItem_Click(object sender, EventArgs e)
{ {
var screenshot = new Screenshot(".", ImageFormat.Png); var screenshot = new Screenshot(SaveDirectory, SaveFormat);
screenshot.CaptureEntireScreen(); screenshot.CaptureEntireScreen();
} }


Expand Down

0 comments on commit 2585e15

Please sign in to comment.