diff --git a/SShot/Program.cs b/SShot/Program.cs index 06bb9de..f142b0f 100644 --- a/SShot/Program.cs +++ b/SShot/Program.cs @@ -6,36 +6,30 @@ using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; -namespace SShot -{ - static class Program - { +namespace SShot { + static class Program { /// /// The main entry point for the application. /// [STAThread] - static void Main(string[] args) - { + static void Main(string[] args) { string fileName = DateTime.Now.ToString("u").Replace("Z", ".png").Replace(":", "-"); string dirName = DateTime.Now.ToString("u").Substring(0, 10); System.IO.Directory.CreateDirectory(dirName); captureScreen(dirName + "\\" + fileName, args); } - private static void captureScreen(String filename, string[] args) - { - try - { + private static void captureScreen(String filename, string[] args) { + try { Rectangle captureRectangle = SystemInformation.VirtualScreen; Bitmap captureBitmap = new Bitmap(captureRectangle.Width, captureRectangle.Height, PixelFormat.Format32bppArgb); Graphics captureGraphics = Graphics.FromImage(captureBitmap); captureGraphics.CopyFromScreen(captureRectangle.Left, captureRectangle.Top, 0, 0, captureRectangle.Size); captureBitmap.Save(filename, ImageFormat.Png); } - catch (Exception ex) - { + catch (Exception ex) { if (args.Length > 0) { - if (args[0] != "-QietErrors") { + if (args[0] != "-QuietErrors") { MessageBox.Show(ex.Message); } } diff --git a/SShot/Properties/launchSettings.json b/SShot/Properties/launchSettings.json new file mode 100644 index 0000000..2c43119 --- /dev/null +++ b/SShot/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "SShot": { + "commandName": "Project", + "commandLineArgs": "-QietErrors" + } + } +} \ No newline at end of file diff --git a/Visual Studio 2019/Visualizers/attribcache140.bin b/Visual Studio 2019/Visualizers/attribcache140.bin new file mode 100644 index 0000000..5bff260 Binary files /dev/null and b/Visual Studio 2019/Visualizers/attribcache140.bin differ