Permalink
Browse files

Added the ability to set the screenshot save directory

  • Loading branch information...
1 parent 2585e15 commit 53673a16bbbbb5845633716747f16a721a0721fe @robertgreiner committed Jan 17, 2012
Showing with 35 additions and 22 deletions.
  1. +19 −9 Slapshot/Slapshot.Designer.cs
  2. +16 −13 Slapshot/Slapshot.cs

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,31 +1,29 @@
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
using System.Drawing.Imaging;
-using System.Linq;
-using System.Text;
using System.Windows.Forms;
namespace Slapshot
{
public partial class Slapshot : Form
{
-
private string SaveDirectory;
private ImageFormat SaveFormat;
public Slapshot()
{
+ InitializeComponent();
+ Initialize();
+ }
+
+ private void Initialize()
+ {
SaveDirectory = ".";
SaveFormat = ImageFormat.Png;
- InitializeComponent();
}
private void Slapshot_SizeChanged(object sender, EventArgs e)
{
- if (this.WindowState == FormWindowState.Minimized)
+ if (WindowState == FormWindowState.Minimized)
{
minimizeToTray();
}
@@ -39,8 +37,8 @@ private void Slapshot_Load(object sender, EventArgs e)
private void minimizeToTray()
{
ApplicationIcon.Visible = true;
- this.WindowState = FormWindowState.Minimized;
- this.ShowInTaskbar = false;
+ WindowState = FormWindowState.Minimized;
+ ShowInTaskbar = false;
}
private void CaptureMenuItem_Click(object sender, EventArgs e)
@@ -51,7 +49,12 @@ private void CaptureMenuItem_Click(object sender, EventArgs e)
private void CloseMenuItem_Click(object sender, EventArgs e)
{
- this.Close();
+ Close();
+ }
+
+ private void DirectoryMenuItem_Click(object sender, EventArgs e)
+ {
+
}
}
-}
+}

0 comments on commit 53673a1

Please sign in to comment.