From 4c106e3a3a2d20a763649d68b94d68cbe66258f2 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Fri, 7 May 2021 18:33:35 -0400 Subject: [PATCH] implement pre-commit hooks on MBS.Framework --- .gitignore | 6 +- .pre-commit-config.yaml | 16 + MBS.Framework.CLI/Application.cs | 2 +- MBS.Framework.CLI/CommandLineSwitch.cs | 2 +- MBS.Framework.CLI/MBS.Framework.CLI.csproj | 2 +- MBS.Framework.CLI/Properties/AssemblyInfo.cs | 4 +- MBS.Framework/Command.cs | 3 +- MBS.Framework/CommandItem.cs | 3 +- MBS.Framework/Drawing/Color.cs | 2 +- MBS.Framework/Drawing/Colors.cs | 576 +++++++++---------- MBS.Framework/Drawing/Measurement.cs | 61 +- MBS.Framework/Drawing/MeasurementUnit.cs | 40 +- MBS.Framework/MemsetExtension.cs | 2 +- MBS.Framework/NumericStringSplitter.cs | 2 +- MBS.Framework/Properties/AssemblyInfo.cs | 8 +- MBS.Framework/Setting.cs | 1 - MBS.Framework/SettingsGroup.cs | 1 - MBS.Framework/SettingsProvider.cs | 1 - MBS.Framework/StockType.cs | 3 +- 19 files changed, 371 insertions(+), 364 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.gitignore b/.gitignore index 3e759b7..13a9b2e 100644 --- a/.gitignore +++ b/.gitignore @@ -221,7 +221,7 @@ ClientBin/ *.publishsettings orleans.codegen.cs -# Including strong name files can present a security risk +# Including strong name files can present a security risk # (https://github.com/github/gitignore/pull/2483#issue-259490424) #*.snk @@ -317,7 +317,7 @@ __pycache__/ # OpenCover UI analysis results OpenCover/ -# Azure Stream Analytics local run output +# Azure Stream Analytics local run output ASALocalRun/ # MSBuild Binary and Structured Log @@ -326,5 +326,5 @@ ASALocalRun/ # NVidia Nsight GPU debugger configuration file *.nvuser -# MFractors (Xamarin productivity tool) working folder +# MFractors (Xamarin productivity tool) working folder .mfractor/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..3de35c2 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: check-yaml + - id: check-xml + - id: check-executables-have-shebangs + - id: end-of-file-fixer + - id: trailing-whitespace +- repo: https://github.com/jumanjihouse/pre-commit-hooks + rev: 2.1.5 + hooks: + - id: forbid-space-in-indent + language: script + exclude: (^.*\.(csproj|glade|resx|svg|yaml|txt|uexml)$)|LICENSE + exclude_types: ['binary'] diff --git a/MBS.Framework.CLI/Application.cs b/MBS.Framework.CLI/Application.cs index 58ebfdf..cedb62d 100644 --- a/MBS.Framework.CLI/Application.cs +++ b/MBS.Framework.CLI/Application.cs @@ -55,4 +55,4 @@ namespace MBS.Framework.CLI Console.WriteLine(String.Format("usage: {0} {1}", System.IO.Path.GetFileNameWithoutExtension(ExecutableFileTitle), sbSwitches.ToString())); } } -} \ No newline at end of file +} diff --git a/MBS.Framework.CLI/CommandLineSwitch.cs b/MBS.Framework.CLI/CommandLineSwitch.cs index 461741a..ae6b3be 100644 --- a/MBS.Framework.CLI/CommandLineSwitch.cs +++ b/MBS.Framework.CLI/CommandLineSwitch.cs @@ -78,4 +78,4 @@ namespace MBS.Framework.CLI private set { mvarValue = value; } } } -} \ No newline at end of file +} diff --git a/MBS.Framework.CLI/MBS.Framework.CLI.csproj b/MBS.Framework.CLI/MBS.Framework.CLI.csproj index 9f1c1aa..fe9817f 100644 --- a/MBS.Framework.CLI/MBS.Framework.CLI.csproj +++ b/MBS.Framework.CLI/MBS.Framework.CLI.csproj @@ -43,4 +43,4 @@ - \ No newline at end of file + diff --git a/MBS.Framework.CLI/Properties/AssemblyInfo.cs b/MBS.Framework.CLI/Properties/AssemblyInfo.cs index 1cb8678..fdca608 100644 --- a/MBS.Framework.CLI/Properties/AssemblyInfo.cs +++ b/MBS.Framework.CLI/Properties/AssemblyInfo.cs @@ -1,7 +1,7 @@ using System.Reflection; using System.Runtime.CompilerServices; -// Information about this assembly is defined by the following attributes. +// Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("MBS.Framework.Console")] @@ -19,7 +19,7 @@ using System.Runtime.CompilerServices; [assembly: AssemblyVersion("1.0.*")] -// The following attributes are used to specify the signing key for the assembly, +// The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] diff --git a/MBS.Framework/Command.cs b/MBS.Framework/Command.cs index b3e1ca0..03aafbb 100644 --- a/MBS.Framework/Command.cs +++ b/MBS.Framework/Command.cs @@ -68,7 +68,7 @@ namespace MBS.Framework /// The child s that are contained within this . /// public CommandItem.CommandItemCollection Items { get; } = new CommandItem.CommandItemCollection(); - + /// /// The event that is fired when the command is executed. /// @@ -133,4 +133,3 @@ namespace MBS.Framework } } } - diff --git a/MBS.Framework/CommandItem.cs b/MBS.Framework/CommandItem.cs index 3d9bb03..e97819f 100644 --- a/MBS.Framework/CommandItem.cs +++ b/MBS.Framework/CommandItem.cs @@ -50,7 +50,7 @@ namespace MBS.Framework { private string mvarCommandID = String.Empty; public string CommandID { get { return mvarCommandID; } set { mvarCommandID = value; } } - + public CommandReferenceCommandItem(string commandID) { mvarCommandID = commandID; @@ -74,4 +74,3 @@ namespace MBS.Framework public CommandItemCollection Items { get; } = new CommandItemCollection(); } } - diff --git a/MBS.Framework/Drawing/Color.cs b/MBS.Framework/Drawing/Color.cs index e756f9e..5df7638 100644 --- a/MBS.Framework/Drawing/Color.cs +++ b/MBS.Framework/Drawing/Color.cs @@ -4,7 +4,7 @@ // Author: // Michael Becker // -// Copyright (c) 2019 +// Copyright (c) 2019 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by diff --git a/MBS.Framework/Drawing/Colors.cs b/MBS.Framework/Drawing/Colors.cs index 178a30a..46ebda4 100644 --- a/MBS.Framework/Drawing/Colors.cs +++ b/MBS.Framework/Drawing/Colors.cs @@ -5,303 +5,303 @@ using System.Text; namespace MBS.Framework.Drawing { - public static class Colors - { - static Colors() - { - Aqua = Color.FromRGBAByte(0x00, 0xFF, 0xFF); - Black = Color.FromRGBAByte(0x00, 0x00, 0x00); - Blue = Color.FromRGBAByte(0x00, 0x00, 0xFF); - Fuchsia = Color.FromRGBAByte(0xFF, 0x00, 0xFF); - Gray = Color.FromRGBAByte(0x80, 0x80, 0x80); - Green = Color.FromRGBAByte(0x00, 0x80, 0x00); - Lime = Color.FromRGBAByte(0x00, 0xFF, 0x00); - Maroon = Color.FromRGBAByte(0x80, 0x00, 0x00); - Navy = Color.FromRGBAByte(0x00, 0x00, 0x80); - Olive = Color.FromRGBAByte(0x80, 0x80, 0x00); - Purple = Color.FromRGBAByte(0x80, 0x00, 0x80); - Red = Color.FromRGBAByte(0xFF, 0x00, 0x00); - Silver = Color.FromRGBAByte(0xC0, 0xC0, 0xC0); - Teal = Color.FromRGBAByte(0x00, 0x80, 0x80); - Yellow = Color.FromRGBAByte(0xFF, 0xFF, 0x00); - White = Color.FromRGBAByte(0xFF, 0xFF, 0xFF); - AliceBlue = Color.FromRGBAByte(0xF0, 0xF8, 0xFF); - AntiqueWhite = Color.FromRGBAByte(0xFA, 0xEB, 0xD7); - Aquamarine = Color.FromRGBAByte(0x7F, 0xFF, 0xD4); - Azure = Color.FromRGBAByte(0xF0, 0xFF, 0xFF); - Beige = Color.FromRGBAByte(0xF5, 0xF5, 0xDC); - Bisque = Color.FromRGBAByte(0xFF, 0xE4, 0xC4); - BlanchedAlmond = Color.FromRGBAByte(0xFF, 0xEB, 0xCD); - BlueViolet = Color.FromRGBAByte(0x8A, 0x2B, 0xE2); - Brown = Color.FromRGBAByte(0xA5, 0x2A, 0x2A); - BurlyWood = Color.FromRGBAByte(0xDE, 0xB8, 0x87); - CadetBlue = Color.FromRGBAByte(0x5F, 0x9E, 0xA0); - Chartreuse = Color.FromRGBAByte(0x7F, 0xFF, 0x00); - Chocolate = Color.FromRGBAByte(0xD2, 0x69, 0x1E); - Coral = Color.FromRGBAByte(0xFF, 0x7F, 0x50); - CornflowerBlue = Color.FromRGBAByte(0x64, 0x95, 0xED); - Cornsilk = Color.FromRGBAByte(0xFF, 0xF8, 0xDC); - Crimson = Color.FromRGBAByte(0xDC, 0x14, 0x3C); - Cyan = Color.FromRGBAByte(0x00, 0xFF, 0xFF); - DarkBlue = Color.FromRGBAByte(0x00, 0x00, 0x8B); - DarkCyan = Color.FromRGBAByte(0x00, 0x8B, 0x8B); - DarkGoldenrod = Color.FromRGBAByte(0xB8, 0x86, 0x0B); - DarkGray = Color.FromRGBAByte(0xA9, 0xA9, 0xA9); - DarkGreen = Color.FromRGBAByte(0x00, 0x64, 0x00); - DarkKhaki = Color.FromRGBAByte(0xBD, 0xB7, 0x6B); - DarkMagenta = Color.FromRGBAByte(0x8B, 0x00, 0x8B); - DarkOliveGreen = Color.FromRGBAByte(0x55, 0x6B, 0x2F); - DarkOrange = Color.FromRGBAByte(0xFF, 0x8C, 0x00); - DarkOrchid = Color.FromRGBAByte(0x99, 0x32, 0xCC); - DarkRed = Color.FromRGBAByte(0x8B, 0x00, 0x00); - DarkSalmon = Color.FromRGBAByte(0xE9, 0x96, 0x7A); - DarkSeaGreen = Color.FromRGBAByte(0x8F, 0xBC, 0x8F); - DarkSlateBlue = Color.FromRGBAByte(0x48, 0x3D, 0x8B); - DarkSlateGray = Color.FromRGBAByte(0x2F, 0x4F, 0x4F); - DarkTurquoise = Color.FromRGBAByte(0x00, 0xCE, 0xD1); + public static class Colors + { + static Colors() + { + Aqua = Color.FromRGBAByte(0x00, 0xFF, 0xFF); + Black = Color.FromRGBAByte(0x00, 0x00, 0x00); + Blue = Color.FromRGBAByte(0x00, 0x00, 0xFF); + Fuchsia = Color.FromRGBAByte(0xFF, 0x00, 0xFF); + Gray = Color.FromRGBAByte(0x80, 0x80, 0x80); + Green = Color.FromRGBAByte(0x00, 0x80, 0x00); + Lime = Color.FromRGBAByte(0x00, 0xFF, 0x00); + Maroon = Color.FromRGBAByte(0x80, 0x00, 0x00); + Navy = Color.FromRGBAByte(0x00, 0x00, 0x80); + Olive = Color.FromRGBAByte(0x80, 0x80, 0x00); + Purple = Color.FromRGBAByte(0x80, 0x00, 0x80); + Red = Color.FromRGBAByte(0xFF, 0x00, 0x00); + Silver = Color.FromRGBAByte(0xC0, 0xC0, 0xC0); + Teal = Color.FromRGBAByte(0x00, 0x80, 0x80); + Yellow = Color.FromRGBAByte(0xFF, 0xFF, 0x00); + White = Color.FromRGBAByte(0xFF, 0xFF, 0xFF); + AliceBlue = Color.FromRGBAByte(0xF0, 0xF8, 0xFF); + AntiqueWhite = Color.FromRGBAByte(0xFA, 0xEB, 0xD7); + Aquamarine = Color.FromRGBAByte(0x7F, 0xFF, 0xD4); + Azure = Color.FromRGBAByte(0xF0, 0xFF, 0xFF); + Beige = Color.FromRGBAByte(0xF5, 0xF5, 0xDC); + Bisque = Color.FromRGBAByte(0xFF, 0xE4, 0xC4); + BlanchedAlmond = Color.FromRGBAByte(0xFF, 0xEB, 0xCD); + BlueViolet = Color.FromRGBAByte(0x8A, 0x2B, 0xE2); + Brown = Color.FromRGBAByte(0xA5, 0x2A, 0x2A); + BurlyWood = Color.FromRGBAByte(0xDE, 0xB8, 0x87); + CadetBlue = Color.FromRGBAByte(0x5F, 0x9E, 0xA0); + Chartreuse = Color.FromRGBAByte(0x7F, 0xFF, 0x00); + Chocolate = Color.FromRGBAByte(0xD2, 0x69, 0x1E); + Coral = Color.FromRGBAByte(0xFF, 0x7F, 0x50); + CornflowerBlue = Color.FromRGBAByte(0x64, 0x95, 0xED); + Cornsilk = Color.FromRGBAByte(0xFF, 0xF8, 0xDC); + Crimson = Color.FromRGBAByte(0xDC, 0x14, 0x3C); + Cyan = Color.FromRGBAByte(0x00, 0xFF, 0xFF); + DarkBlue = Color.FromRGBAByte(0x00, 0x00, 0x8B); + DarkCyan = Color.FromRGBAByte(0x00, 0x8B, 0x8B); + DarkGoldenrod = Color.FromRGBAByte(0xB8, 0x86, 0x0B); + DarkGray = Color.FromRGBAByte(0xA9, 0xA9, 0xA9); + DarkGreen = Color.FromRGBAByte(0x00, 0x64, 0x00); + DarkKhaki = Color.FromRGBAByte(0xBD, 0xB7, 0x6B); + DarkMagenta = Color.FromRGBAByte(0x8B, 0x00, 0x8B); + DarkOliveGreen = Color.FromRGBAByte(0x55, 0x6B, 0x2F); + DarkOrange = Color.FromRGBAByte(0xFF, 0x8C, 0x00); + DarkOrchid = Color.FromRGBAByte(0x99, 0x32, 0xCC); + DarkRed = Color.FromRGBAByte(0x8B, 0x00, 0x00); + DarkSalmon = Color.FromRGBAByte(0xE9, 0x96, 0x7A); + DarkSeaGreen = Color.FromRGBAByte(0x8F, 0xBC, 0x8F); + DarkSlateBlue = Color.FromRGBAByte(0x48, 0x3D, 0x8B); + DarkSlateGray = Color.FromRGBAByte(0x2F, 0x4F, 0x4F); + DarkTurquoise = Color.FromRGBAByte(0x00, 0xCE, 0xD1); - DarkViolet = Color.FromRGBAByte(0x94, 0x00, 0xD3); - DeepPink = Color.FromRGBAByte(0xFF, 0x14, 0x93); - DeepSkyBlue = Color.FromRGBAByte(0x00, 0xBF, 0xFF); - DimGray = Color.FromRGBAByte(0x69, 0x69, 0x69); - DodgerBlue = Color.FromRGBAByte(0x1E, 0x90, 0xFF); - Firebrick = Color.FromRGBAByte(0xB2, 0x22, 0x22); - FloralWhite = Color.FromRGBAByte(0xFF, 0xFA, 0xF0); - ForestGreen = Color.FromRGBAByte(0x22, 0x8B, 0x22); - Gainsboro = Color.FromRGBAByte(0xDC, 0xDC, 0xDC); - GhostWhite = Color.FromRGBAByte(0xF8, 0xF8, 0xFF); - Gold = Color.FromRGBAByte(0xFF, 0xD7, 0x00); - Goldenrod = Color.FromRGBAByte(0xDA, 0xA5, 0x20); - GreenYellow = Color.FromRGBAByte(0xAD, 0xFF, 0x2F); - Honeydew = Color.FromRGBAByte(0xF0, 0xFF, 0xF0); - HotPink = Color.FromRGBAByte(0xFF, 0x69, 0xB4); - IndianRed = Color.FromRGBAByte(0xCD, 0x5C, 0x5C); - Indigo = Color.FromRGBAByte(0x4B, 0x00, 0x82); - Ivory = Color.FromRGBAByte(0xFF, 0xFF, 0xF0); - Khaki = Color.FromRGBAByte(0xF0, 0xE6, 0x8C); - Lavender = Color.FromRGBAByte(0xE6, 0xE6, 0xFA); - LavenderBlush = Color.FromRGBAByte(0xFF, 0xF0, 0xF5); - LawnGreen = Color.FromRGBAByte(0x7C, 0xFC, 0x00); - LemonChiffon = Color.FromRGBAByte(0xFF, 0xFA, 0xCD); - LightBlue = Color.FromRGBAByte(0xAD, 0xD8, 0xE6); - LightCoral = Color.FromRGBAByte(0xF0, 0x80, 0x80); - LightCyan = Color.FromRGBAByte(0xE0, 0xFF, 0xFF); - LightGoldenrodYellow = Color.FromRGBAByte(0xFA, 0xFA, 0xD2); - LightGreen = Color.FromRGBAByte(0x90, 0xEE, 0x90); - LightGray = Color.FromRGBAByte(0xD3, 0xD3, 0xD3); - LightPink = Color.FromRGBAByte(0xFF, 0xB6, 0xC1); - LightSalmon = Color.FromRGBAByte(0xFF, 0xA0, 0x7A); - LightSeaGreen = Color.FromRGBAByte(0x20, 0xB2, 0xAA); - LightSkyBlue = Color.FromRGBAByte(0x87, 0xCE, 0xFA); - LightSlateGray = Color.FromRGBAByte(0x77, 0x88, 0x99); - LightSteelBlue = Color.FromRGBAByte(0xB0, 0xC4, 0xDE); - LightYellow = Color.FromRGBAByte(0xFF, 0xFF, 0xE0); - LimeGreen = Color.FromRGBAByte(0x32, 0xCD, 0x32); + DarkViolet = Color.FromRGBAByte(0x94, 0x00, 0xD3); + DeepPink = Color.FromRGBAByte(0xFF, 0x14, 0x93); + DeepSkyBlue = Color.FromRGBAByte(0x00, 0xBF, 0xFF); + DimGray = Color.FromRGBAByte(0x69, 0x69, 0x69); + DodgerBlue = Color.FromRGBAByte(0x1E, 0x90, 0xFF); + Firebrick = Color.FromRGBAByte(0xB2, 0x22, 0x22); + FloralWhite = Color.FromRGBAByte(0xFF, 0xFA, 0xF0); + ForestGreen = Color.FromRGBAByte(0x22, 0x8B, 0x22); + Gainsboro = Color.FromRGBAByte(0xDC, 0xDC, 0xDC); + GhostWhite = Color.FromRGBAByte(0xF8, 0xF8, 0xFF); + Gold = Color.FromRGBAByte(0xFF, 0xD7, 0x00); + Goldenrod = Color.FromRGBAByte(0xDA, 0xA5, 0x20); + GreenYellow = Color.FromRGBAByte(0xAD, 0xFF, 0x2F); + Honeydew = Color.FromRGBAByte(0xF0, 0xFF, 0xF0); + HotPink = Color.FromRGBAByte(0xFF, 0x69, 0xB4); + IndianRed = Color.FromRGBAByte(0xCD, 0x5C, 0x5C); + Indigo = Color.FromRGBAByte(0x4B, 0x00, 0x82); + Ivory = Color.FromRGBAByte(0xFF, 0xFF, 0xF0); + Khaki = Color.FromRGBAByte(0xF0, 0xE6, 0x8C); + Lavender = Color.FromRGBAByte(0xE6, 0xE6, 0xFA); + LavenderBlush = Color.FromRGBAByte(0xFF, 0xF0, 0xF5); + LawnGreen = Color.FromRGBAByte(0x7C, 0xFC, 0x00); + LemonChiffon = Color.FromRGBAByte(0xFF, 0xFA, 0xCD); + LightBlue = Color.FromRGBAByte(0xAD, 0xD8, 0xE6); + LightCoral = Color.FromRGBAByte(0xF0, 0x80, 0x80); + LightCyan = Color.FromRGBAByte(0xE0, 0xFF, 0xFF); + LightGoldenrodYellow = Color.FromRGBAByte(0xFA, 0xFA, 0xD2); + LightGreen = Color.FromRGBAByte(0x90, 0xEE, 0x90); + LightGray = Color.FromRGBAByte(0xD3, 0xD3, 0xD3); + LightPink = Color.FromRGBAByte(0xFF, 0xB6, 0xC1); + LightSalmon = Color.FromRGBAByte(0xFF, 0xA0, 0x7A); + LightSeaGreen = Color.FromRGBAByte(0x20, 0xB2, 0xAA); + LightSkyBlue = Color.FromRGBAByte(0x87, 0xCE, 0xFA); + LightSlateGray = Color.FromRGBAByte(0x77, 0x88, 0x99); + LightSteelBlue = Color.FromRGBAByte(0xB0, 0xC4, 0xDE); + LightYellow = Color.FromRGBAByte(0xFF, 0xFF, 0xE0); + LimeGreen = Color.FromRGBAByte(0x32, 0xCD, 0x32); - Linen = Color.FromRGBAByte(0xFA, 0xF0, 0xE6); - Magenta = Color.FromRGBAByte(0xFF, 0x00, 0xFF); - MediumAquamarine = Color.FromRGBAByte(0x66, 0xCD, 0xAA); - MediumBlue = Color.FromRGBAByte(0x00, 0x00, 0xCD); - MediumOrchid = Color.FromRGBAByte(0xBA, 0x55, 0xD3); - MediumPurple = Color.FromRGBAByte(0x93, 0x70, 0xDB); - MediumSeaGreen = Color.FromRGBAByte(0x3C, 0xB3, 0x71); - MediumSlateBlue = Color.FromRGBAByte(0x7B, 0x68, 0xEE); - MediumSpringGreen = Color.FromRGBAByte(0x00, 0xFA, 0x9A); - MediumTurquoise = Color.FromRGBAByte(0x48, 0xD1, 0xCC); - MediumVioletRed = Color.FromRGBAByte(0xC7, 0x15, 0x85); - MidnightBlue = Color.FromRGBAByte(0x19, 0x19, 0x70); - MintCream = Color.FromRGBAByte(0xF5, 0xFF, 0xFA); - MistyRose = Color.FromRGBAByte(0xFF, 0xE4, 0xE1); - Moccasin = Color.FromRGBAByte(0xFF, 0xE4, 0xB5); - NavajoWhite = Color.FromRGBAByte(0xFF, 0xDE, 0xAD); - OldLace = Color.FromRGBAByte(0xFD, 0xF5, 0xE6); - OliveDrab = Color.FromRGBAByte(0x6B, 0x8E, 0x23); - Orange = Color.FromRGBAByte(0xFF, 0xA5, 0x00); - OrangeRed = Color.FromRGBAByte(0xFF, 0x45, 0x00); - Orchid = Color.FromRGBAByte(0xDA, 0x70, 0xD6); - PaleGoldenrod = Color.FromRGBAByte(0xEE, 0xE8, 0xAA); - PaleTurquoise = Color.FromRGBAByte(0xAF, 0xEE, 0xEE); - PaleVioletRed = Color.FromRGBAByte(0xDB, 0x70, 0x93); - PapayaWhip = Color.FromRGBAByte(0xFF, 0xEF, 0xD5); - PeachPuff = Color.FromRGBAByte(0xFF, 0xDA, 0xB9); - Peru = Color.FromRGBAByte(0xCD, 0x85, 0x3F); - Pink = Color.FromRGBAByte(0xFF, 0xC0, 0xCB); - Plum = Color.FromRGBAByte(0xDD, 0xA0, 0xDD); - PowderBlue = Color.FromRGBAByte(0xB0, 0xE0, 0xE6); - RosyBrown = Color.FromRGBAByte(0xBC, 0x8F, 0x8F); - RoyalBlue = Color.FromRGBAByte(0x41, 0x69, 0xE1); - SaddleBrown = Color.FromRGBAByte(0x8B, 0x45, 0x13); - Salmon = Color.FromRGBAByte(0xFA, 0x80, 0x72); - SandyBrown = Color.FromRGBAByte(0xF4, 0xA4, 0x60); - SeaGreen = Color.FromRGBAByte(0x2E, 0x8B, 0x57); + Linen = Color.FromRGBAByte(0xFA, 0xF0, 0xE6); + Magenta = Color.FromRGBAByte(0xFF, 0x00, 0xFF); + MediumAquamarine = Color.FromRGBAByte(0x66, 0xCD, 0xAA); + MediumBlue = Color.FromRGBAByte(0x00, 0x00, 0xCD); + MediumOrchid = Color.FromRGBAByte(0xBA, 0x55, 0xD3); + MediumPurple = Color.FromRGBAByte(0x93, 0x70, 0xDB); + MediumSeaGreen = Color.FromRGBAByte(0x3C, 0xB3, 0x71); + MediumSlateBlue = Color.FromRGBAByte(0x7B, 0x68, 0xEE); + MediumSpringGreen = Color.FromRGBAByte(0x00, 0xFA, 0x9A); + MediumTurquoise = Color.FromRGBAByte(0x48, 0xD1, 0xCC); + MediumVioletRed = Color.FromRGBAByte(0xC7, 0x15, 0x85); + MidnightBlue = Color.FromRGBAByte(0x19, 0x19, 0x70); + MintCream = Color.FromRGBAByte(0xF5, 0xFF, 0xFA); + MistyRose = Color.FromRGBAByte(0xFF, 0xE4, 0xE1); + Moccasin = Color.FromRGBAByte(0xFF, 0xE4, 0xB5); + NavajoWhite = Color.FromRGBAByte(0xFF, 0xDE, 0xAD); + OldLace = Color.FromRGBAByte(0xFD, 0xF5, 0xE6); + OliveDrab = Color.FromRGBAByte(0x6B, 0x8E, 0x23); + Orange = Color.FromRGBAByte(0xFF, 0xA5, 0x00); + OrangeRed = Color.FromRGBAByte(0xFF, 0x45, 0x00); + Orchid = Color.FromRGBAByte(0xDA, 0x70, 0xD6); + PaleGoldenrod = Color.FromRGBAByte(0xEE, 0xE8, 0xAA); + PaleTurquoise = Color.FromRGBAByte(0xAF, 0xEE, 0xEE); + PaleVioletRed = Color.FromRGBAByte(0xDB, 0x70, 0x93); + PapayaWhip = Color.FromRGBAByte(0xFF, 0xEF, 0xD5); + PeachPuff = Color.FromRGBAByte(0xFF, 0xDA, 0xB9); + Peru = Color.FromRGBAByte(0xCD, 0x85, 0x3F); + Pink = Color.FromRGBAByte(0xFF, 0xC0, 0xCB); + Plum = Color.FromRGBAByte(0xDD, 0xA0, 0xDD); + PowderBlue = Color.FromRGBAByte(0xB0, 0xE0, 0xE6); + RosyBrown = Color.FromRGBAByte(0xBC, 0x8F, 0x8F); + RoyalBlue = Color.FromRGBAByte(0x41, 0x69, 0xE1); + SaddleBrown = Color.FromRGBAByte(0x8B, 0x45, 0x13); + Salmon = Color.FromRGBAByte(0xFA, 0x80, 0x72); + SandyBrown = Color.FromRGBAByte(0xF4, 0xA4, 0x60); + SeaGreen = Color.FromRGBAByte(0x2E, 0x8B, 0x57); - Seashell = Color.FromRGBAByte(0xFF, 0xF5, 0xEE); - Sienna = Color.FromRGBAByte(0xA0, 0x52, 0x2D); - SkyBlue = Color.FromRGBAByte(0x87, 0xCE, 0xEB); - SlateBlue = Color.FromRGBAByte(0x6A, 0x5A, 0xCD); - SlateGray = Color.FromRGBAByte(0x70, 0x80, 0x90); - Snow = Color.FromRGBAByte(0xFF, 0xFA, 0xFA); - SpringGreen = Color.FromRGBAByte(0x00, 0xFF, 0x7F); - SteelBlue = Color.FromRGBAByte(0x46, 0x82, 0xB4); + Seashell = Color.FromRGBAByte(0xFF, 0xF5, 0xEE); + Sienna = Color.FromRGBAByte(0xA0, 0x52, 0x2D); + SkyBlue = Color.FromRGBAByte(0x87, 0xCE, 0xEB); + SlateBlue = Color.FromRGBAByte(0x6A, 0x5A, 0xCD); + SlateGray = Color.FromRGBAByte(0x70, 0x80, 0x90); + Snow = Color.FromRGBAByte(0xFF, 0xFA, 0xFA); + SpringGreen = Color.FromRGBAByte(0x00, 0xFF, 0x7F); + SteelBlue = Color.FromRGBAByte(0x46, 0x82, 0xB4); - Tan = Color.FromRGBAByte(0xD2, 0xB4, 0x8C); - Thistle = Color.FromRGBAByte(0xD8, 0xBF, 0xD8); - Tomato = Color.FromRGBAByte(0xFF, 0x63, 0x47); - Transparent = Color.FromRGBAByte(0x00, 0x00, 0x00, 0x00); - Turquoise = Color.FromRGBAByte(0x40, 0xE0, 0xD0); - Violet = Color.FromRGBAByte(0xEE, 0x82, 0xEE); - Wheat = Color.FromRGBAByte(0xF5, 0xDE, 0xB3); - WhiteSmoke = Color.FromRGBAByte(0xF5, 0xF5, 0xF5); - YellowGreen = Color.FromRGBAByte(0x9A, 0xCD, 0x32); - } + Tan = Color.FromRGBAByte(0xD2, 0xB4, 0x8C); + Thistle = Color.FromRGBAByte(0xD8, 0xBF, 0xD8); + Tomato = Color.FromRGBAByte(0xFF, 0x63, 0x47); + Transparent = Color.FromRGBAByte(0x00, 0x00, 0x00, 0x00); + Turquoise = Color.FromRGBAByte(0x40, 0xE0, 0xD0); + Violet = Color.FromRGBAByte(0xEE, 0x82, 0xEE); + Wheat = Color.FromRGBAByte(0xF5, 0xDE, 0xB3); + WhiteSmoke = Color.FromRGBAByte(0xF5, 0xF5, 0xF5); + YellowGreen = Color.FromRGBAByte(0x9A, 0xCD, 0x32); + } - // HTML Standard Colors - public static Color Aqua { get; private set; } - public static Color Black { get; private set; } - public static Color Blue { get; private set; } - public static Color Fuchsia { get; private set; } - public static Color Gray { get; private set; } - public static Color Green { get; private set; } - public static Color Lime { get; private set; } - public static Color Maroon { get; private set; } - public static Color Navy { get; private set; } - public static Color Olive { get; private set; } - public static Color Purple { get; private set; } - public static Color Red { get; private set; } - public static Color Silver { get; private set; } - public static Color Teal { get; private set; } - public static Color Yellow { get; private set; } - public static Color White { get; private set; } + // HTML Standard Colors + public static Color Aqua { get; private set; } + public static Color Black { get; private set; } + public static Color Blue { get; private set; } + public static Color Fuchsia { get; private set; } + public static Color Gray { get; private set; } + public static Color Green { get; private set; } + public static Color Lime { get; private set; } + public static Color Maroon { get; private set; } + public static Color Navy { get; private set; } + public static Color Olive { get; private set; } + public static Color Purple { get; private set; } + public static Color Red { get; private set; } + public static Color Silver { get; private set; } + public static Color Teal { get; private set; } + public static Color Yellow { get; private set; } + public static Color White { get; private set; } - // HTML Extended Colors + // HTML Extended Colors - public static Color AliceBlue { get; private set; } - public static Color AntiqueWhite { get; private set; } - public static Color Aquamarine { get; private set; } - public static Color Azure { get; private set; } - public static Color Beige { get; private set; } - public static Color Bisque { get; private set; } - public static Color BlanchedAlmond { get; private set; } - public static Color BlueViolet { get; private set; } - public static Color Brown { get; private set; } - public static Color BurlyWood { get; private set; } - public static Color CadetBlue { get; private set; } - public static Color Chartreuse { get; private set; } - public static Color Chocolate { get; private set; } - public static Color Coral { get; private set; } - public static Color CornflowerBlue { get; private set; } - public static Color Cornsilk { get; private set; } - public static Color Crimson { get; private set; } - public static Color Cyan { get; private set; } - public static Color DarkBlue { get; private set; } - public static Color DarkCyan { get; private set; } - public static Color DarkGoldenrod { get; private set; } - public static Color DarkGray { get; private set; } - public static Color DarkGreen { get; private set; } - public static Color DarkKhaki { get; private set; } - public static Color DarkMagenta { get; private set; } - public static Color DarkOliveGreen { get; private set; } - public static Color DarkOrange { get; private set; } - public static Color DarkOrchid { get; private set; } - public static Color DarkRed { get; private set; } - public static Color DarkSalmon { get; private set; } - public static Color DarkSeaGreen { get; private set; } - public static Color DarkSlateBlue { get; private set; } - public static Color DarkSlateGray { get; private set; } - public static Color DarkTurquoise { get; private set; } + public static Color AliceBlue { get; private set; } + public static Color AntiqueWhite { get; private set; } + public static Color Aquamarine { get; private set; } + public static Color Azure { get; private set; } + public static Color Beige { get; private set; } + public static Color Bisque { get; private set; } + public static Color BlanchedAlmond { get; private set; } + public static Color BlueViolet { get; private set; } + public static Color Brown { get; private set; } + public static Color BurlyWood { get; private set; } + public static Color CadetBlue { get; private set; } + public static Color Chartreuse { get; private set; } + public static Color Chocolate { get; private set; } + public static Color Coral { get; private set; } + public static Color CornflowerBlue { get; private set; } + public static Color Cornsilk { get; private set; } + public static Color Crimson { get; private set; } + public static Color Cyan { get; private set; } + public static Color DarkBlue { get; private set; } + public static Color DarkCyan { get; private set; } + public static Color DarkGoldenrod { get; private set; } + public static Color DarkGray { get; private set; } + public static Color DarkGreen { get; private set; } + public static Color DarkKhaki { get; private set; } + public static Color DarkMagenta { get; private set; } + public static Color DarkOliveGreen { get; private set; } + public static Color DarkOrange { get; private set; } + public static Color DarkOrchid { get; private set; } + public static Color DarkRed { get; private set; } + public static Color DarkSalmon { get; private set; } + public static Color DarkSeaGreen { get; private set; } + public static Color DarkSlateBlue { get; private set; } + public static Color DarkSlateGray { get; private set; } + public static Color DarkTurquoise { get; private set; } - public static Color DarkViolet { get; private set; } - public static Color DeepPink { get; private set; } - public static Color DeepSkyBlue { get; private set; } - public static Color DimGray { get; private set; } - public static Color DodgerBlue { get; private set; } - public static Color Firebrick { get; private set; } - public static Color FloralWhite { get; private set; } - public static Color ForestGreen { get; private set; } - public static Color Gainsboro { get; private set; } - public static Color GhostWhite { get; private set; } - public static Color Gold { get; private set; } - public static Color Goldenrod { get; private set; } - public static Color GreenYellow { get; private set; } - public static Color Honeydew { get; private set; } - public static Color HotPink { get; private set; } - public static Color IndianRed { get; private set; } - public static Color Indigo { get; private set; } - public static Color Ivory { get; private set; } - public static Color Khaki { get; private set; } - public static Color Lavender { get; private set; } - public static Color LavenderBlush { get; private set; } - public static Color LawnGreen { get; private set; } - public static Color LemonChiffon { get; private set; } - public static Color LightBlue { get; private set; } - public static Color LightCoral { get; private set; } - public static Color LightCyan { get; private set; } - public static Color LightGoldenrodYellow { get; private set; } - public static Color LightGreen { get; private set; } - public static Color LightGray { get; private set; } - public static Color LightPink { get; private set; } - public static Color LightSalmon { get; private set; } - public static Color LightSeaGreen { get; private set; } - public static Color LightSkyBlue { get; private set; } - public static Color LightSlateGray { get; private set; } - public static Color LightSteelBlue { get; private set; } - public static Color LightYellow { get; private set; } - public static Color LimeGreen { get; private set; } + public static Color DarkViolet { get; private set; } + public static Color DeepPink { get; private set; } + public static Color DeepSkyBlue { get; private set; } + public static Color DimGray { get; private set; } + public static Color DodgerBlue { get; private set; } + public static Color Firebrick { get; private set; } + public static Color FloralWhite { get; private set; } + public static Color ForestGreen { get; private set; } + public static Color Gainsboro { get; private set; } + public static Color GhostWhite { get; private set; } + public static Color Gold { get; private set; } + public static Color Goldenrod { get; private set; } + public static Color GreenYellow { get; private set; } + public static Color Honeydew { get; private set; } + public static Color HotPink { get; private set; } + public static Color IndianRed { get; private set; } + public static Color Indigo { get; private set; } + public static Color Ivory { get; private set; } + public static Color Khaki { get; private set; } + public static Color Lavender { get; private set; } + public static Color LavenderBlush { get; private set; } + public static Color LawnGreen { get; private set; } + public static Color LemonChiffon { get; private set; } + public static Color LightBlue { get; private set; } + public static Color LightCoral { get; private set; } + public static Color LightCyan { get; private set; } + public static Color LightGoldenrodYellow { get; private set; } + public static Color LightGreen { get; private set; } + public static Color LightGray { get; private set; } + public static Color LightPink { get; private set; } + public static Color LightSalmon { get; private set; } + public static Color LightSeaGreen { get; private set; } + public static Color LightSkyBlue { get; private set; } + public static Color LightSlateGray { get; private set; } + public static Color LightSteelBlue { get; private set; } + public static Color LightYellow { get; private set; } + public static Color LimeGreen { get; private set; } - public static Color Linen { get; private set; } - public static Color Magenta { get; private set; } - public static Color MediumAquamarine { get; private set; } - public static Color MediumBlue { get; private set; } - public static Color MediumOrchid { get; private set; } - public static Color MediumPurple { get; private set; } - public static Color MediumSeaGreen { get; private set; } - public static Color MediumSlateBlue { get; private set; } - public static Color MediumSpringGreen { get; private set; } - public static Color MediumTurquoise { get; private set; } - public static Color MediumVioletRed { get; private set; } - public static Color MidnightBlue { get; private set; } - public static Color MintCream { get; private set; } - public static Color MistyRose { get; private set; } - public static Color Moccasin { get; private set; } - public static Color NavajoWhite { get; private set; } - public static Color OldLace { get; private set; } - public static Color OliveDrab { get; private set; } - public static Color Orange { get; private set; } - public static Color OrangeRed { get; private set; } - public static Color Orchid { get; private set; } - public static Color PaleGoldenrod { get; private set; } - public static Color PaleTurquoise { get; private set; } - public static Color PaleVioletRed { get; private set; } - public static Color PapayaWhip { get; private set; } - public static Color PeachPuff { get; private set; } - public static Color Peru { get; private set; } - public static Color Pink { get; private set; } - public static Color Plum { get; private set; } - public static Color PowderBlue { get; private set; } - public static Color RosyBrown { get; private set; } - public static Color RoyalBlue { get; private set; } - public static Color SaddleBrown { get; private set; } - public static Color Salmon { get; private set; } - public static Color SandyBrown { get; private set; } - public static Color SeaGreen { get; private set; } + public static Color Linen { get; private set; } + public static Color Magenta { get; private set; } + public static Color MediumAquamarine { get; private set; } + public static Color MediumBlue { get; private set; } + public static Color MediumOrchid { get; private set; } + public static Color MediumPurple { get; private set; } + public static Color MediumSeaGreen { get; private set; } + public static Color MediumSlateBlue { get; private set; } + public static Color MediumSpringGreen { get; private set; } + public static Color MediumTurquoise { get; private set; } + public static Color MediumVioletRed { get; private set; } + public static Color MidnightBlue { get; private set; } + public static Color MintCream { get; private set; } + public static Color MistyRose { get; private set; } + public static Color Moccasin { get; private set; } + public static Color NavajoWhite { get; private set; } + public static Color OldLace { get; private set; } + public static Color OliveDrab { get; private set; } + public static Color Orange { get; private set; } + public static Color OrangeRed { get; private set; } + public static Color Orchid { get; private set; } + public static Color PaleGoldenrod { get; private set; } + public static Color PaleTurquoise { get; private set; } + public static Color PaleVioletRed { get; private set; } + public static Color PapayaWhip { get; private set; } + public static Color PeachPuff { get; private set; } + public static Color Peru { get; private set; } + public static Color Pink { get; private set; } + public static Color Plum { get; private set; } + public static Color PowderBlue { get; private set; } + public static Color RosyBrown { get; private set; } + public static Color RoyalBlue { get; private set; } + public static Color SaddleBrown { get; private set; } + public static Color Salmon { get; private set; } + public static Color SandyBrown { get; private set; } + public static Color SeaGreen { get; private set; } - public static Color Seashell { get; private set; } - public static Color Sienna { get; private set; } - public static Color SkyBlue { get; private set; } - public static Color SlateBlue { get; private set; } - public static Color SlateGray { get; private set; } - public static Color Snow { get; private set; } - public static Color SpringGreen { get; private set; } - public static Color SteelBlue { get; private set; } + public static Color Seashell { get; private set; } + public static Color Sienna { get; private set; } + public static Color SkyBlue { get; private set; } + public static Color SlateBlue { get; private set; } + public static Color SlateGray { get; private set; } + public static Color Snow { get; private set; } + public static Color SpringGreen { get; private set; } + public static Color SteelBlue { get; private set; } - public static Color Tan { get; private set; } - public static Color Thistle { get; private set; } - public static Color Tomato { get; private set; } - public static Color Transparent { get; private set; } - public static Color Turquoise { get; private set; } - public static Color Violet { get; private set; } - public static Color Wheat { get; private set; } - public static Color WhiteSmoke { get; private set; } - public static Color YellowGreen { get; private set; } - } + public static Color Tan { get; private set; } + public static Color Thistle { get; private set; } + public static Color Tomato { get; private set; } + public static Color Transparent { get; private set; } + public static Color Turquoise { get; private set; } + public static Color Violet { get; private set; } + public static Color Wheat { get; private set; } + public static Color WhiteSmoke { get; private set; } + public static Color YellowGreen { get; private set; } + } } diff --git a/MBS.Framework/Drawing/Measurement.cs b/MBS.Framework/Drawing/Measurement.cs index b053b35..59d64af 100644 --- a/MBS.Framework/Drawing/Measurement.cs +++ b/MBS.Framework/Drawing/Measurement.cs @@ -27,43 +27,40 @@ namespace MBS.Framework.Drawing /// Represents a tuple of a numeric value and a unit of measure. /// public struct Measurement - { - public static readonly Measurement Empty; + { + public static readonly Measurement Empty; - public Measurement(double value, MeasurementUnit unit) - { - mvarUnit = unit; - mvarValue = value; - mvarIsFull = true; - } + public Measurement(double value, MeasurementUnit unit) + { + Unit = unit; + Value = value; + mvarIsFull = true; + } - private double mvarValue; - public double Value { get { return mvarValue; } set { mvarValue = value; } } + public double Value { get; set; } + public MeasurementUnit Unit { get; set; } - private MeasurementUnit mvarUnit; - public MeasurementUnit Unit { get { return mvarUnit; } set { mvarUnit = value; } } - - private bool mvarIsFull; - public bool IsEmpty { get { return !mvarIsFull; } } + private bool mvarIsFull; + public bool IsEmpty { get { return !mvarIsFull; } } public static Measurement Parse(string value) { - DoubleStringSplitterResult dssr = NumericStringSplitter.SplitDoubleStringParts(value); - double val = dssr.DoublePart; + DoubleStringSplitterResult dssr = NumericStringSplitter.SplitDoubleStringParts(value); + double val = dssr.DoublePart; MeasurementUnit unit; - switch (dssr.StringPart.ToLower()) - { - case "cm": unit = MeasurementUnit.Cm; break; - case "em": unit = MeasurementUnit.Em; break; - case "ex": unit = MeasurementUnit.Ex; break; - case "in": unit = MeasurementUnit.Inch; break; - case "mm": unit = MeasurementUnit.Mm; break; - case "%": unit = MeasurementUnit.Percentage; break; - case "pc": unit = MeasurementUnit.Pica; break; - case "px": unit = MeasurementUnit.Pixel; break; - case "pt": unit = MeasurementUnit.Point; break; - default: unit = MeasurementUnit.Pixel; break; - } + switch (dssr.StringPart.ToLower()) + { + case "cm": unit = MeasurementUnit.Cm; break; + case "em": unit = MeasurementUnit.Em; break; + case "ex": unit = MeasurementUnit.Ex; break; + case "in": unit = MeasurementUnit.Inch; break; + case "mm": unit = MeasurementUnit.Mm; break; + case "%": unit = MeasurementUnit.Percentage; break; + case "pc": unit = MeasurementUnit.Pica; break; + case "px": unit = MeasurementUnit.Pixel; break; + case "pt": unit = MeasurementUnit.Point; break; + default: unit = MeasurementUnit.Pixel; break; + } return new Measurement(val, unit); } @@ -124,9 +121,9 @@ namespace MBS.Framework.Drawing break; } case MeasurementUnit.Em: - break; + break; case MeasurementUnit.Ex: - break; + break; case MeasurementUnit.Inch: { switch (unit2) diff --git a/MBS.Framework/Drawing/MeasurementUnit.cs b/MBS.Framework/Drawing/MeasurementUnit.cs index cba3091..828d371 100644 --- a/MBS.Framework/Drawing/MeasurementUnit.cs +++ b/MBS.Framework/Drawing/MeasurementUnit.cs @@ -25,24 +25,24 @@ namespace MBS.Framework.Drawing /// Indicates the unit of a . /// public enum MeasurementUnit - { - /// Measurement is in pixels. - Pixel = 1, - /// Measurement is in points. A point represents 1/72 of an inch. - Point, - /// Measurement is in picas. A pica represents 12 points. - Pica, - /// Measurement is in inches. - Inch, - /// Measurement is in millimeters. - Mm, - /// Measurement is in centimeters. - Cm, - /// Measurement is a percentage relative to the parent element. - Percentage, - /// Measurement is relative to the height of the parent element's font. - Em, - /// Measurement is relative to the height of the lowercase letter x of the parent element's font. - Ex - } + { + /// Measurement is in pixels. + Pixel = 1, + /// Measurement is in points. A point represents 1/72 of an inch. + Point, + /// Measurement is in picas. A pica represents 12 points. + Pica, + /// Measurement is in inches. + Inch, + /// Measurement is in millimeters. + Mm, + /// Measurement is in centimeters. + Cm, + /// Measurement is a percentage relative to the parent element. + Percentage, + /// Measurement is relative to the height of the parent element's font. + Em, + /// Measurement is relative to the height of the lowercase letter x of the parent element's font. + Ex + } } diff --git a/MBS.Framework/MemsetExtension.cs b/MBS.Framework/MemsetExtension.cs index cb4bdfb..75382dc 100644 --- a/MBS.Framework/MemsetExtension.cs +++ b/MBS.Framework/MemsetExtension.cs @@ -59,4 +59,4 @@ namespace MBS.Framework } } -} \ No newline at end of file +} diff --git a/MBS.Framework/NumericStringSplitter.cs b/MBS.Framework/NumericStringSplitter.cs index 5e15428..bdfc19d 100644 --- a/MBS.Framework/NumericStringSplitter.cs +++ b/MBS.Framework/NumericStringSplitter.cs @@ -106,4 +106,4 @@ namespace MBS.Framework return new DoubleStringSplitterResult(realintval, strval); } } -} \ No newline at end of file +} diff --git a/MBS.Framework/Properties/AssemblyInfo.cs b/MBS.Framework/Properties/AssemblyInfo.cs index 742fb45..49a6689 100644 --- a/MBS.Framework/Properties/AssemblyInfo.cs +++ b/MBS.Framework/Properties/AssemblyInfo.cs @@ -4,7 +4,7 @@ // Author: // Michael Becker // -// Copyright (c) 2019 +// Copyright (c) 2019 // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -22,7 +22,7 @@ using System; using System.Reflection; using System.Runtime.CompilerServices; -// Information about this assembly is defined by the following attributes. +// Information about this assembly is defined by the following attributes. // Change them to the values specific to your project. [assembly: AssemblyTitle("MBS.Framework")] @@ -40,9 +40,9 @@ using System.Runtime.CompilerServices; [assembly: AssemblyVersion("4.0.2020.08")] -// The following attributes are used to specify the signing key for the assembly, +// The following attributes are used to specify the signing key for the assembly, // if desired. See the Mono documentation for more information about signing. //[assembly: AssemblyDelaySign(false)] //[assembly: AssemblyKeyFile("")] -[assembly: CLSCompliant(true)] \ No newline at end of file +[assembly: CLSCompliant(true)] diff --git a/MBS.Framework/Setting.cs b/MBS.Framework/Setting.cs index d320f4d..dcdfe65 100644 --- a/MBS.Framework/Setting.cs +++ b/MBS.Framework/Setting.cs @@ -153,4 +153,3 @@ namespace MBS.Framework } } } - diff --git a/MBS.Framework/SettingsGroup.cs b/MBS.Framework/SettingsGroup.cs index 72a2f2a..2085abc 100644 --- a/MBS.Framework/SettingsGroup.cs +++ b/MBS.Framework/SettingsGroup.cs @@ -152,4 +152,3 @@ namespace MBS.Framework } } } - diff --git a/MBS.Framework/SettingsProvider.cs b/MBS.Framework/SettingsProvider.cs index b27e0a0..308e856 100644 --- a/MBS.Framework/SettingsProvider.cs +++ b/MBS.Framework/SettingsProvider.cs @@ -78,4 +78,3 @@ namespace MBS.Framework } } } - diff --git a/MBS.Framework/StockType.cs b/MBS.Framework/StockType.cs index fe48736..aba9227 100644 --- a/MBS.Framework/StockType.cs +++ b/MBS.Framework/StockType.cs @@ -28,7 +28,7 @@ namespace MBS.Framework Cut, Delete, DialogAuthentication, // not for buttons - DialogInfo, + DialogInfo, DialogWarning, DialogError, DialogQuestion, @@ -119,4 +119,3 @@ namespace MBS.Framework ZoomOut } } -