From ca8ffb08f43a9a996608d2d380363fcdde694e49 Mon Sep 17 00:00:00 2001 From: Jorg Tretter Date: Fri, 11 Dec 2020 11:30:46 -0600 Subject: [PATCH] cosmetics and amend spelling error in argument --- SShot/Program.cs | 20 ++++++------------ SShot/Properties/launchSettings.json | 8 +++++++ .../Visualizers/attribcache140.bin | Bin 0 -> 7424 bytes 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 SShot/Properties/launchSettings.json create mode 100644 Visual Studio 2019/Visualizers/attribcache140.bin 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 0000000000000000000000000000000000000000..5bff260fa7e2903c36ba74284992bc836a4cd061 GIT binary patch literal 7424 zcmeHMTXWk)6qXraGA)ZzAGE5T3jUi4vv2!Vy%UWLBOJvEcR!Lls zr_cNtW_aU~pTHCE{1nbv?aGoY%cjj^Co|Embk5nc-?{GkqIvzy&irduxl6gnTxV(VVg3&OEtspmEqqRw9O?^B>;<#pH*98o zOZzqVfI3T!JNH@-T3@sl7n=|6kb4A`E}ejaRoCYhZH%j_c1f$ONl!xIb7~251O@Kl zViNcoY1s57^x$A82K@zuUgDYn|3VV{T}F>yVt%{)}$CIlH-~4~gqPbpHH3d~;T+b-!NtA{2dzGSzKt;?l*Yzxy z+pG~5>B~?ljIe&!`aNpoZq)~yq)W{uQ$B}g(YI~=MvsR>$@z)0=BjJkU_2lI%Pe=E1uLnh(AXz5;6(w|;xBV`4L?-dI1o0;9JCor?f?>-STdi&4v}q>W)sT&e zPL~R1Ws+;P3hWSChL!$zl)IS>8l(c4%@sx0cbb{>IwVUFhsQJSL9bDA4vEd0tHhfP z+cNDoC||ZLFl(k#de>ztI&O0YhIbXJXtizHq8xHcwjDG_RS@f7>yYx6?H*++bxExe zJTghO=V453xFl+U%MrJJG(ZB3u7rn|w(>=0XR{(fgf+Bdz?x$F_{s_P&(!7sJQd6N z(J*Bj={ohvpM}K2hXh*B&J=PNvshR#5cYkc1)s z*Z|`Fu_eqs))XCFP7a3VI%VySz!$-20wkeOP~`cgCJlr(FmgBRfilyzN+OB;pwR3B zl9sNzkhoU3?{(76cS_lLk2XSIdsF(FIr@^{DdmA+6}*kRwwGV=g}~AUu2ZAO5?g#K zWOalBN0M=aG^jm^?}Nz;u0#6Z8_YSF#H))`%9^VkY8|Y&#}dVux~BX@WdN$7+QNsE zRoNzRiq`;uU1pS+r694PIV9Z3ne{;x@`EL46WU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