-
-
Save Zren/0af27d365ca14fc8cebd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------ | |
// <auto-generated> | |
// This code was generated by a tool. | |
// Runtime Version:4.0.30319.296 | |
// | |
// Changes to this file may cause incorrect behavior and will be lost if | |
// the code is regenerated. | |
// </auto-generated> | |
//------------------------------------------------------------------------------ | |
namespace ScreenShotApp.Properties { | |
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | |
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] | |
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { | |
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | |
public static Settings Default { | |
get { | |
return defaultInstance; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("True")] | |
public bool SaveScreenShotToFile { | |
get { | |
return ((bool)(this["SaveScreenShotToFile"])); | |
} | |
set { | |
this["SaveScreenShotToFile"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("False")] | |
public bool UploadToWeb { | |
get { | |
return ((bool)(this["UploadToWeb"])); | |
} | |
set { | |
this["UploadToWeb"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("")] | |
public string Filename { | |
get { | |
return ((string)(this["Filename"])); | |
} | |
set { | |
this["Filename"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("Jpeg")] | |
public global::System.Drawing.Imaging.ImageFormat ImageFormat { | |
get { | |
return ((global::System.Drawing.Imaging.ImageFormat)(this["ImageFormat"])); | |
} | |
set { | |
this["ImageFormat"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("False")] | |
public bool CopyImageToClipboard { | |
get { | |
return ((bool)(this["CopyImageToClipboard"])); | |
} | |
set { | |
this["CopyImageToClipboard"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("False")] | |
public bool CopyFilenameToClipboard { | |
get { | |
return ((bool)(this["CopyFilenameToClipboard"])); | |
} | |
set { | |
this["CopyFilenameToClipboard"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("True")] | |
public bool CopyWebsiteUrlToClipboard { | |
get { | |
return ((bool)(this["CopyWebsiteUrlToClipboard"])); | |
} | |
set { | |
this["CopyWebsiteUrlToClipboard"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("True")] | |
public bool RunCommandOnFile { | |
get { | |
return ((bool)(this["RunCommandOnFile"])); | |
} | |
set { | |
this["RunCommandOnFile"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("{0}")] | |
public string Command { | |
get { | |
return ((string)(this["Command"])); | |
} | |
set { | |
this["Command"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("True")] | |
public bool PlaySoundOnCapture { | |
get { | |
return ((bool)(this["PlaySoundOnCapture"])); | |
} | |
set { | |
this["PlaySoundOnCapture"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("True")] | |
public bool PlaySoundOnFinishUploadToWesite { | |
get { | |
return ((bool)(this["PlaySoundOnFinishUploadToWesite"])); | |
} | |
set { | |
this["PlaySoundOnFinishUploadToWesite"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("False")] | |
public bool OpenUrlAfterUpload { | |
get { | |
return ((bool)(this["OpenUrlAfterUpload"])); | |
} | |
set { | |
this["OpenUrlAfterUpload"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("PrintScreen")] | |
public global::System.Windows.Forms.Keys CaptureScreenHotkey { | |
get { | |
return ((global::System.Windows.Forms.Keys)(this["CaptureScreenHotkey"])); | |
} | |
set { | |
this["CaptureScreenHotkey"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("Alt+PrintScreen")] | |
public global::System.Windows.Forms.Keys CaptureActiveWindowHotkey { | |
get { | |
return ((global::System.Windows.Forms.Keys)(this["CaptureActiveWindowHotkey"])); | |
} | |
set { | |
this["CaptureActiveWindowHotkey"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("None")] | |
public global::System.Windows.Forms.Keys UploadLastScreenshotHotkey { | |
get { | |
return ((global::System.Windows.Forms.Keys)(this["UploadLastScreenshotHotkey"])); | |
} | |
set { | |
this["UploadLastScreenshotHotkey"] = value; | |
} | |
} | |
[global::System.Configuration.UserScopedSettingAttribute()] | |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
[global::System.Configuration.DefaultSettingValueAttribute("None")] | |
public global::System.Windows.Forms.Keys OpenLastScreenshotHotkey { | |
get { | |
return ((global::System.Windows.Forms.Keys)(this["OpenLastScreenshotHotkey"])); | |
} | |
set { | |
this["OpenLastScreenshotHotkey"] = value; | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.ComponentModel; | |
using ScreenShotApp.Properties; | |
namespace ScreenShotApp { | |
// This class is for copying the properties generated in /Properties/Settings.Designer.cs | |
// and wrapping them with attributes that are used with a PropertiesGrid. | |
class SettingsWrapper { | |
private Settings settings; | |
public SettingsWrapper(Settings settings) { | |
this.settings = settings; | |
} | |
public object this[string key] { | |
get { | |
return this.settings[key]; | |
} | |
set { | |
settings[key] = value; | |
} | |
} | |
/**************************************************/ | |
[Category("Image")] | |
[Description("Keep the default Windows behaviour allowing you to paste the image.")] | |
public bool CopyImageToClipboard { | |
get { | |
return ((bool)(this["CopyImageToClipboard"])); | |
} | |
set { | |
this["CopyImageToClipboard"] = value; | |
} | |
} | |
[Category("Image")] | |
[Description("The format to save the file as.")] | |
public global::System.Drawing.Imaging.ImageFormat ImageFormat { | |
get { | |
return ((global::System.Drawing.Imaging.ImageFormat)(this["ImageFormat"])); | |
} | |
set { | |
this["ImageFormat"] = value; | |
} | |
} | |
/**************************************************/ | |
[Category("File")] | |
[Description("If true, this will save the file to [Filename].")] | |
public bool SaveScreenShotToFile { | |
get { | |
return ((bool)(this["SaveScreenShotToFile"])); | |
} | |
set { | |
this["SaveScreenShotToFile"] = value; | |
} | |
} | |
[Category("File")] | |
[Description("The path to save the file to. {0} = timestamp. {1} = file extension. Formatting for time can be found at http://msdn.microsoft.com/en-us/library/system.string.format.aspx")] | |
public string Filename { | |
get { | |
return ((string)(this["Filename"])); | |
} | |
set { | |
this["Filename"] = value; | |
} | |
} | |
[Category("File")] | |
[Description("If true, copy the filename to the clipboard.")] | |
public bool CopyFilenameToClipboard { | |
get { | |
return ((bool)(this["CopyFilenameToClipboard"])); | |
} | |
set { | |
this["CopyFilenameToClipboard"] = value; | |
} | |
} | |
[Category("File")] | |
[Description("If true, will execute the [Command] using the filename as a parameter.")] | |
public bool RunCommandOnFile { | |
get { | |
return ((bool)(this["RunCommandOnFile"])); | |
} | |
set { | |
this["RunCommandOnFile"] = value; | |
} | |
} | |
[Category("File")] | |
[Description("The command to be run after saving the file. {0} = filename.")] | |
public string Command { | |
get { | |
return ((string)(this["Command"])); | |
} | |
set { | |
this["Command"] = value; | |
} | |
} | |
/**************************************************/ | |
[Category("Upload")] | |
[Description("If true, upload to the selected website.")] | |
public bool UploadToWeb { | |
get { | |
return ((bool)(this["UploadToWeb"])); | |
} | |
set { | |
this["UploadToWeb"] = value; | |
} | |
} | |
[Category("Upload")] | |
[Description("If true, copy the url to the clipboard.")] | |
public bool CopyWebsiteUrlToClipboard { | |
get { | |
return ((bool)(this["CopyWebsiteUrlToClipboard"])); | |
} | |
set { | |
this["CopyWebsiteUrlToClipboard"] = value; | |
} | |
} | |
[Category("Upload")] | |
[Description("Open the url in your prefered browser.")] | |
public bool OpenUrlAfterUpload { | |
get { | |
return ((bool)(this["OpenUrlAfterUpload"])); | |
} | |
set { | |
this["OpenUrlAfterUpload"] = value; | |
} | |
} | |
/**************************************************/ | |
[Category("Sounds")] | |
[Description("")] | |
public bool PlaySoundOnCapture { | |
get { | |
return ((bool)(this["PlaySoundOnCapture"])); | |
} | |
set { | |
this["PlaySoundOnCapture"] = value; | |
} | |
} | |
[Category("Sounds")] | |
[Description("")] | |
public bool PlaySoundOnFinishUploadToWesite { | |
get { | |
return ((bool)(this["PlaySoundOnFinishUploadToWesite"])); | |
} | |
set { | |
this["PlaySoundOnFinishUploadToWesite"] = value; | |
} | |
} | |
/**************************************************/ | |
[Category("Key Bindings")] | |
[Description("")] | |
public global::System.Windows.Forms.Keys CaptureScreenHotkey { | |
get { | |
return ((global::System.Windows.Forms.Keys)(this["CaptureScreenHotkey"])); | |
} | |
set { | |
this["CaptureScreenHotkey"] = value; | |
} | |
} | |
[Category("Key Bindings")] | |
[Description("")] | |
public global::System.Windows.Forms.Keys CaptureActiveWindowHotkey { | |
get { | |
return ((global::System.Windows.Forms.Keys)(this["CaptureActiveWindowHotkey"])); | |
} | |
set { | |
this["CaptureActiveWindowHotkey"] = value; | |
} | |
} | |
[Category("Key Bindings")] | |
[Description("")] | |
public global::System.Windows.Forms.Keys UploadLastScreenshotHotkey { | |
get { | |
return ((global::System.Windows.Forms.Keys)(this["UploadLastScreenshotHotkey"])); | |
} | |
set { | |
this["UploadLastScreenshotHotkey"] = value; | |
} | |
} | |
[Category("Key Bindings")] | |
[Description("")] | |
public global::System.Windows.Forms.Keys OpenLastScreenshotHotkey { | |
get { | |
return ((global::System.Windows.Forms.Keys)(this["OpenLastScreenshotHotkey"])); | |
} | |
set { | |
this["OpenLastScreenshotHotkey"] = value; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment