From 896259d05b793b39d387ef1dae614dc7f4d86c49 Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Sat, 14 Jan 2023 15:17:19 -0500 Subject: [PATCH 01/49] demonstration of broken designer in vs2022 --- .../ClassLibrary1/BaseForm.Designer.cs | 39 ++++++ .../ClassLibrary1/BaseForm.cs | 12 ++ .../ClassLibrary1/ClassLibrary1.csproj | 67 ++++++++++ .../ClassLibrary1/Properties/AssemblyInfo.cs | 36 ++++++ .../ClassLibrary1/UserControl1.Designer.cs | 58 +++++++++ .../ClassLibrary1/UserControl1.cs | 20 +++ .../ClassLibrary1/UserControl1.resx | 120 ++++++++++++++++++ .../WindowsFormsApp1/WindowsFormsApp1.sln | 31 +++++ .../WindowsFormsApp1/App.config | 6 + .../WindowsFormsApp1/Form1.Designer.cs | 61 +++++++++ .../WindowsFormsApp1/Form1.cs | 18 +++ .../WindowsFormsApp1/Form1.resx | 120 ++++++++++++++++++ .../WindowsFormsApp1/Form2.Designer.cs | 59 +++++++++ .../WindowsFormsApp1/Form2.cs | 20 +++ .../WindowsFormsApp1/Form2.resx | 120 ++++++++++++++++++ .../WindowsFormsApp1/LegacyWinFormsApp.csproj | 98 ++++++++++++++ .../WindowsFormsApp1/Program.cs | 22 ++++ .../Properties/AssemblyInfo.cs | 36 ++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ .../Properties/Resources.resx | 117 +++++++++++++++++ .../Properties/Settings.Designer.cs | 30 +++++ .../Properties/Settings.settings | 7 + 22 files changed, 1168 insertions(+) create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.Designer.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/ClassLibrary1.csproj create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/Properties/AssemblyInfo.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.Designer.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.resx create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1.sln create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/App.config create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.resx create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.Designer.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.resx create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/LegacyWinFormsApp.csproj create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Program.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs create mode 100644 WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.Designer.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.Designer.cs new file mode 100644 index 0000000..b60bd40 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.Designer.cs @@ -0,0 +1,39 @@ +namespace ClassLibrary1 +{ + partial class BaseForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "BaseForm"; + } + + #endregion + } +} \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.cs new file mode 100644 index 0000000..4a22b67 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.cs @@ -0,0 +1,12 @@ +using System.Windows.Forms; + +namespace ClassLibrary1 +{ + public partial class BaseForm : Form + { + public BaseForm() + { + InitializeComponent(); + } + } +} diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/ClassLibrary1.csproj b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/ClassLibrary1.csproj new file mode 100644 index 0000000..4d4de18 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/ClassLibrary1.csproj @@ -0,0 +1,67 @@ + + + + + Debug + AnyCPU + {8C04B123-2E23-4131-A082-B71C3013EC6B} + Library + Properties + ClassLibrary1 + ClassLibrary1 + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + AnyCPU + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + BaseForm.cs + + + + UserControl + + + UserControl1.cs + + + + + UserControl1.cs + + + + \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/Properties/AssemblyInfo.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c5290cc --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("ClassLibrary1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("ClassLibrary1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("8c04b123-2e23-4131-a082-b71c3013ec6b")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.Designer.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.Designer.cs new file mode 100644 index 0000000..8f78c78 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.Designer.cs @@ -0,0 +1,58 @@ +namespace ClassLibrary1 +{ + partial class UserControl1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.label1 = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // label1 + // + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(33, 28); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(210, 57); + this.label1.TabIndex = 0; + this.label1.Text = "This label is in a user control..."; + // + // UserControl1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.label1); + this.Name = "UserControl1"; + this.Size = new System.Drawing.Size(286, 173); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Label label1; + } +} diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.cs new file mode 100644 index 0000000..2b4c1d2 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace ClassLibrary1 +{ + public partial class UserControl1 : UserControl + { + public UserControl1() + { + InitializeComponent(); + } + } +} diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.resx b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1.sln b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1.sln new file mode 100644 index 0000000..e1d2527 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33110.190 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LegacyWinFormsApp", "WindowsFormsApp1\LegacyWinFormsApp.csproj", "{50D7B144-A99E-42B1-87A1-D51D5296B474}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClassLibrary1", "ClassLibrary1\ClassLibrary1.csproj", "{8C04B123-2E23-4131-A082-B71C3013EC6B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {50D7B144-A99E-42B1-87A1-D51D5296B474}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {50D7B144-A99E-42B1-87A1-D51D5296B474}.Debug|Any CPU.Build.0 = Debug|Any CPU + {50D7B144-A99E-42B1-87A1-D51D5296B474}.Release|Any CPU.ActiveCfg = Release|Any CPU + {50D7B144-A99E-42B1-87A1-D51D5296B474}.Release|Any CPU.Build.0 = Release|Any CPU + {8C04B123-2E23-4131-A082-B71C3013EC6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8C04B123-2E23-4131-A082-B71C3013EC6B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8C04B123-2E23-4131-A082-B71C3013EC6B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8C04B123-2E23-4131-A082-B71C3013EC6B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {0D1CB557-9871-4EA9-A101-620A89B3FA96} + EndGlobalSection +EndGlobal diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/App.config b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs new file mode 100644 index 0000000..d231478 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs @@ -0,0 +1,61 @@ +namespace WindowsFormsApp1 +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(167, 52); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(99, 23); + this.button1.TabIndex = 0; + this.button1.Text = "Don\'t press this"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(442, 253); + this.Controls.Add(this.button1); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Button button1; + } +} + diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.cs new file mode 100644 index 0000000..d971c8f --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.cs @@ -0,0 +1,18 @@ +using ClassLibrary1; +using System.Windows.Forms; + +namespace WindowsFormsApp1 +{ + public partial class Form1 : BaseForm + { + public Form1() + { + InitializeComponent(); + } + + private void button1_Click(object sender, System.EventArgs e) + { + MessageBox.Show("Really?"); + } + } +} diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.resx b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.Designer.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.Designer.cs new file mode 100644 index 0000000..f4db9d7 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.Designer.cs @@ -0,0 +1,59 @@ +namespace WindowsFormsApp1 +{ + partial class Form2 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.userControl11 = new ClassLibrary1.UserControl1(); + this.SuspendLayout(); + // + // userControl11 + // + this.userControl11.BackColor = System.Drawing.Color.IndianRed; + this.userControl11.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.userControl11.Location = new System.Drawing.Point(70, 74); + this.userControl11.Name = "userControl11"; + this.userControl11.Size = new System.Drawing.Size(286, 173); + this.userControl11.TabIndex = 0; + // + // Form2 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(479, 321); + this.Controls.Add(this.userControl11); + this.Name = "Form2"; + this.Text = "Form2"; + this.ResumeLayout(false); + + } + + #endregion + + private ClassLibrary1.UserControl1 userControl11; + } +} \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.cs new file mode 100644 index 0000000..af6e449 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp1 +{ + public partial class Form2 : Form + { + public Form2() + { + InitializeComponent(); + } + } +} diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.resx b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/LegacyWinFormsApp.csproj b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/LegacyWinFormsApp.csproj new file mode 100644 index 0000000..16739b8 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/LegacyWinFormsApp.csproj @@ -0,0 +1,98 @@ + + + + + Debug + AnyCPU + {50D7B144-A99E-42B1-87A1-D51D5296B474} + WinExe + WindowsFormsApp1 + WindowsFormsApp1 + v4.7.2 + 512 + true + true + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + Form + + + Form2.cs + + + + + Form1.cs + + + Form2.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + + {8c04b123-2e23-4131-a082-b71c3013ec6b} + ClassLibrary1 + + + + \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Program.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Program.cs new file mode 100644 index 0000000..63442a0 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace WindowsFormsApp1 +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..2701718 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WindowsFormsApp1")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WindowsFormsApp1")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("50d7b144-a99e-42b1-87a1-d51d5296b474")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs new file mode 100644 index 0000000..b21d543 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WindowsFormsApp1.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsFormsApp1.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs new file mode 100644 index 0000000..438df21 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WindowsFormsApp1.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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; + } + } + } +} diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + From 1b38c3ddf675c6fb97443bd6a6b002de3071cee3 Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Sat, 14 Jan 2023 15:29:57 -0500 Subject: [PATCH 02/49] demonstration of broken designer in vs2022 --- README.md | 2 ++ .../WindowsFormsApp1 => }/ClassLibrary1/BaseForm.Designer.cs | 0 .../WindowsFormsApp1 => }/ClassLibrary1/BaseForm.cs | 0 .../WindowsFormsApp1 => }/ClassLibrary1/ClassLibrary1.csproj | 0 .../ClassLibrary1/Properties/AssemblyInfo.cs | 0 .../ClassLibrary1/UserControl1.Designer.cs | 0 .../WindowsFormsApp1 => }/ClassLibrary1/UserControl1.cs | 0 .../WindowsFormsApp1 => }/ClassLibrary1/UserControl1.resx | 0 WinFormsDesignerInVS2022/README.md | 3 +++ .../{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1.sln | 0 .../WindowsFormsApp1 => }/WindowsFormsApp1/App.config | 0 .../WindowsFormsApp1 => }/WindowsFormsApp1/Form1.Designer.cs | 0 .../WindowsFormsApp1 => }/WindowsFormsApp1/Form1.cs | 0 .../WindowsFormsApp1 => }/WindowsFormsApp1/Form1.resx | 0 .../WindowsFormsApp1 => }/WindowsFormsApp1/Form2.Designer.cs | 0 .../WindowsFormsApp1 => }/WindowsFormsApp1/Form2.cs | 0 .../WindowsFormsApp1 => }/WindowsFormsApp1/Form2.resx | 0 .../WindowsFormsApp1/LegacyWinFormsApp.csproj | 0 .../WindowsFormsApp1 => }/WindowsFormsApp1/Program.cs | 0 .../WindowsFormsApp1/Properties/AssemblyInfo.cs | 0 .../WindowsFormsApp1/Properties/Resources.Designer.cs | 0 .../WindowsFormsApp1/Properties/Resources.resx | 0 .../WindowsFormsApp1/Properties/Settings.Designer.cs | 0 .../WindowsFormsApp1/Properties/Settings.settings | 0 24 files changed, 5 insertions(+) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/ClassLibrary1/BaseForm.Designer.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/ClassLibrary1/BaseForm.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/ClassLibrary1/ClassLibrary1.csproj (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/ClassLibrary1/Properties/AssemblyInfo.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/ClassLibrary1/UserControl1.Designer.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/ClassLibrary1/UserControl1.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/ClassLibrary1/UserControl1.resx (100%) create mode 100644 WinFormsDesignerInVS2022/README.md rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1.sln (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/App.config (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Form1.Designer.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Form1.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Form1.resx (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Form2.Designer.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Form2.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Form2.resx (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/LegacyWinFormsApp.csproj (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Program.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Properties/AssemblyInfo.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Properties/Resources.Designer.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Properties/Resources.resx (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Properties/Settings.Designer.cs (100%) rename WinFormsDesignerInVS2022/{32bit-broken/WindowsFormsApp1 => }/WindowsFormsApp1/Properties/Settings.settings (100%) diff --git a/README.md b/README.md index 29e68c6..41b6f42 100644 --- a/README.md +++ b/README.md @@ -45,3 +45,5 @@ The following list of blog posts includes a link to the part of the repo with th * [What's a word cloud and how do I make one?](https://grantwinney.com/whats-a-word-cloud-and-how-do-i-make-one/)[💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/WordCloud) * [When an assert isn't assertive enough (or using the wrong macro in an EUnit test)](https://grantwinney.com/when-an-assert-isnt-assertive-enough/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/EUnitAssertProblem) +* [Why doesn't VS 2022 show my WinForms UI at design time?](http://grantwinney.com/why-doesnt-vs2022-show-my-winforms-ui/) +[💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/WinFormsDesignerInVS2022) \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.Designer.cs b/WinFormsDesignerInVS2022/ClassLibrary1/BaseForm.Designer.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.Designer.cs rename to WinFormsDesignerInVS2022/ClassLibrary1/BaseForm.Designer.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.cs b/WinFormsDesignerInVS2022/ClassLibrary1/BaseForm.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/BaseForm.cs rename to WinFormsDesignerInVS2022/ClassLibrary1/BaseForm.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/ClassLibrary1.csproj b/WinFormsDesignerInVS2022/ClassLibrary1/ClassLibrary1.csproj similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/ClassLibrary1.csproj rename to WinFormsDesignerInVS2022/ClassLibrary1/ClassLibrary1.csproj diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/Properties/AssemblyInfo.cs b/WinFormsDesignerInVS2022/ClassLibrary1/Properties/AssemblyInfo.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/Properties/AssemblyInfo.cs rename to WinFormsDesignerInVS2022/ClassLibrary1/Properties/AssemblyInfo.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.Designer.cs b/WinFormsDesignerInVS2022/ClassLibrary1/UserControl1.Designer.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.Designer.cs rename to WinFormsDesignerInVS2022/ClassLibrary1/UserControl1.Designer.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.cs b/WinFormsDesignerInVS2022/ClassLibrary1/UserControl1.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.cs rename to WinFormsDesignerInVS2022/ClassLibrary1/UserControl1.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.resx b/WinFormsDesignerInVS2022/ClassLibrary1/UserControl1.resx similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/ClassLibrary1/UserControl1.resx rename to WinFormsDesignerInVS2022/ClassLibrary1/UserControl1.resx diff --git a/WinFormsDesignerInVS2022/README.md b/WinFormsDesignerInVS2022/README.md new file mode 100644 index 0000000..d912738 --- /dev/null +++ b/WinFormsDesignerInVS2022/README.md @@ -0,0 +1,3 @@ +Why doesn't VS 2022 show my WinForms UI at design time? + +http://grantwinney.com/why-doesnt-vs2022-show-my-winforms-ui/ \ No newline at end of file diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1.sln b/WinFormsDesignerInVS2022/WindowsFormsApp1.sln similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1.sln rename to WinFormsDesignerInVS2022/WindowsFormsApp1.sln diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/App.config b/WinFormsDesignerInVS2022/WindowsFormsApp1/App.config similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/App.config rename to WinFormsDesignerInVS2022/WindowsFormsApp1/App.config diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs b/WinFormsDesignerInVS2022/WindowsFormsApp1/Form1.Designer.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.Designer.cs rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Form1.Designer.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.cs b/WinFormsDesignerInVS2022/WindowsFormsApp1/Form1.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.cs rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Form1.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.resx b/WinFormsDesignerInVS2022/WindowsFormsApp1/Form1.resx similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form1.resx rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Form1.resx diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.Designer.cs b/WinFormsDesignerInVS2022/WindowsFormsApp1/Form2.Designer.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.Designer.cs rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Form2.Designer.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.cs b/WinFormsDesignerInVS2022/WindowsFormsApp1/Form2.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.cs rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Form2.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.resx b/WinFormsDesignerInVS2022/WindowsFormsApp1/Form2.resx similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Form2.resx rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Form2.resx diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/LegacyWinFormsApp.csproj b/WinFormsDesignerInVS2022/WindowsFormsApp1/LegacyWinFormsApp.csproj similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/LegacyWinFormsApp.csproj rename to WinFormsDesignerInVS2022/WindowsFormsApp1/LegacyWinFormsApp.csproj diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Program.cs b/WinFormsDesignerInVS2022/WindowsFormsApp1/Program.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Program.cs rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Program.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs b/WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/AssemblyInfo.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/AssemblyInfo.cs rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/AssemblyInfo.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs b/WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/Resources.Designer.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.Designer.cs rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/Resources.Designer.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx b/WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/Resources.resx similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Resources.resx rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/Resources.resx diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs b/WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/Settings.Designer.cs similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.Designer.cs rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/Settings.Designer.cs diff --git a/WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings b/WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/Settings.settings similarity index 100% rename from WinFormsDesignerInVS2022/32bit-broken/WindowsFormsApp1/WindowsFormsApp1/Properties/Settings.settings rename to WinFormsDesignerInVS2022/WindowsFormsApp1/Properties/Settings.settings From b7ad37dfb7b16dae9b9e5db937418c88b56dc526 Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Thu, 30 Mar 2023 23:54:15 -0400 Subject: [PATCH 03/49] add static abstract interface example --- GenericMathSupport/GenericMathSupport.sln | 31 +++++ .../GenericMathSupport/ColorSwatch.cs | 40 ++++++ .../Example 1 - Interfaces/Reports.cs | 71 +++++++++++ .../Reports.cs | 84 ++++++++++++ .../Reports.cs | 71 +++++++++++ .../GenericMathSupport/Folder.cs | 40 ++++++ .../GenericMathSupport.csproj | 20 +++ .../GenericMathSupportOld/Class1.cs | 7 + .../Example 1 - Interfaces/Reports.cs | 71 +++++++++++ .../GenericMathSupportOld.csproj | 9 ++ .../MathSupportUI/Form1.Designer.cs | 39 ++++++ GenericMathSupport/MathSupportUI/Form1.cs | 10 ++ GenericMathSupport/MathSupportUI/Form1.resx | 120 ++++++++++++++++++ .../MathSupportUI/MathSupportUI.csproj | 11 ++ GenericMathSupport/MathSupportUI/Program.cs | 17 +++ .../Example 1 - Interfaces/ReportTests.cs | 40 ++++++ .../ReportTests.cs | 40 ++++++ .../TestProject/TestProject.csproj | 27 ++++ GenericMathSupport/TestProject/UnitTests.cs | 97 ++++++++++++++ GenericMathSupport/TestProject/Usings.cs | 1 + 20 files changed, 846 insertions(+) create mode 100644 GenericMathSupport/GenericMathSupport.sln create mode 100644 GenericMathSupport/GenericMathSupport/ColorSwatch.cs create mode 100644 GenericMathSupport/GenericMathSupport/Example 1 - Interfaces/Reports.cs create mode 100644 GenericMathSupport/GenericMathSupport/Example 2 - Static Abstract Interfaces/Reports.cs create mode 100644 GenericMathSupport/GenericMathSupport/Example 3 - Abstraction and Interfaces/Reports.cs create mode 100644 GenericMathSupport/GenericMathSupport/Folder.cs create mode 100644 GenericMathSupport/GenericMathSupport/GenericMathSupport.csproj create mode 100644 GenericMathSupport/GenericMathSupportOld/Class1.cs create mode 100644 GenericMathSupport/GenericMathSupportOld/Example 1 - Interfaces/Reports.cs create mode 100644 GenericMathSupport/GenericMathSupportOld/GenericMathSupportOld.csproj create mode 100644 GenericMathSupport/MathSupportUI/Form1.Designer.cs create mode 100644 GenericMathSupport/MathSupportUI/Form1.cs create mode 100644 GenericMathSupport/MathSupportUI/Form1.resx create mode 100644 GenericMathSupport/MathSupportUI/MathSupportUI.csproj create mode 100644 GenericMathSupport/MathSupportUI/Program.cs create mode 100644 GenericMathSupport/TestProject/Example 1 - Interfaces/ReportTests.cs create mode 100644 GenericMathSupport/TestProject/Example 2 - Abstract Classes/ReportTests.cs create mode 100644 GenericMathSupport/TestProject/TestProject.csproj create mode 100644 GenericMathSupport/TestProject/UnitTests.cs create mode 100644 GenericMathSupport/TestProject/Usings.cs diff --git a/GenericMathSupport/GenericMathSupport.sln b/GenericMathSupport/GenericMathSupport.sln new file mode 100644 index 0000000..2240b8e --- /dev/null +++ b/GenericMathSupport/GenericMathSupport.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.4.33213.308 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GenericMathSupport", "GenericMathSupport\GenericMathSupport.csproj", "{3CAB0FB8-B167-4818-A787-2E65F89F2F72}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestProject", "TestProject\TestProject.csproj", "{3BC3032E-EA50-4E3A-952D-D600FE57DA9F}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3CAB0FB8-B167-4818-A787-2E65F89F2F72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3CAB0FB8-B167-4818-A787-2E65F89F2F72}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3CAB0FB8-B167-4818-A787-2E65F89F2F72}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3CAB0FB8-B167-4818-A787-2E65F89F2F72}.Release|Any CPU.Build.0 = Release|Any CPU + {3BC3032E-EA50-4E3A-952D-D600FE57DA9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3BC3032E-EA50-4E3A-952D-D600FE57DA9F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3BC3032E-EA50-4E3A-952D-D600FE57DA9F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3BC3032E-EA50-4E3A-952D-D600FE57DA9F}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {569CBE7F-E821-44E1-93C8-A600136F4196} + EndGlobalSection +EndGlobal diff --git a/GenericMathSupport/GenericMathSupport/ColorSwatch.cs b/GenericMathSupport/GenericMathSupport/ColorSwatch.cs new file mode 100644 index 0000000..3fea992 --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/ColorSwatch.cs @@ -0,0 +1,40 @@ +using System.Drawing; +using System.Numerics; + +namespace GenericMathSupport +{ + public class ColorSwatch : IAdditionOperators> + { + private readonly IEnumerable shades; + public string Name { get; private set; } + + public ColorSwatch(string name, IEnumerable shades) + { + Name = name; + this.shades = shades.ToList(); + } + + public static IList operator +(ColorSwatch cs1, ColorSwatch cs2) => + cs1.shades.Concat(cs2.shades).ToList(); + + public static IList operator *(ColorSwatch cs1, ColorSwatch cs2) + { + var colorMatrix = new List(); + + foreach (var s1 in cs1.shades) + { + foreach (var s2 in cs2.shades) + { + var a = s1.A + (s2.A * (255 - s1.A) / 255); + var r = ((s1.R * s1.A) + (s2.R * s2.A * (255 - s1.A) / 255)) / a; + var g = ((s1.G * s1.A) + (s2.G * s2.A * (255 - s1.A) / 255)) / a; + var b = ((s1.B * s1.A) + (s2.B * s2.A * (255 - s1.A) / 255)) / a; + + colorMatrix.Add(Color.FromArgb(a, r, g, b)); + } + } + + return colorMatrix; + } + } +} diff --git a/GenericMathSupport/GenericMathSupport/Example 1 - Interfaces/Reports.cs b/GenericMathSupport/GenericMathSupport/Example 1 - Interfaces/Reports.cs new file mode 100644 index 0000000..6ff2a75 --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 1 - Interfaces/Reports.cs @@ -0,0 +1,71 @@ +namespace GenericMathSupport.Example1 +{ + /*********************************** + * BASE REPORT INTERFACE + * *********************************/ + + public interface IBaseReport + { + string ReportName { get; } + bool IsSensitive { get; } + } + + /*********************************** + * EMPLOYEE REPORT w/ INTERFACE + * *********************************/ + + public interface IEmployeeReport : IBaseReport + { + string Name { get; set; } + DateTime HireDate { get; set; } + DateTime? TermDate { get; set; } + } + + public class EmployeeReport : IEmployeeReport + { + public string ReportName => "Employee Profile"; + public bool IsSensitive => true; + + public string Name { get; set; } + public DateTime HireDate { get; set; } + public DateTime? TermDate { get; set; } + } + + /*********************************** + * VENDOR REPORT CLASS w/ INTERFACE + * *********************************/ + + public interface IVendorReport : IBaseReport + { + string VendorName { get; set; } + string VendorContactName { get; set; } + string VendorContactPhone { get; set; } + } + + public class VendorReport : IVendorReport + { + public string ReportName => "Vendor Summary"; + public bool IsSensitive => false; + + public string VendorName { get; set; } + public string VendorContactName { get; set; } + public string VendorContactPhone { get; set; } + } + + /*********************************** + * A CLASS THAT PROCESSES REPORTS + * *********************************/ + + public class ISwearImAnInterestingClass + { + public string GetVendorReportStatus(IVendorReport rpt) + { + return $"Running '{rpt.ReportName}' for: {rpt.VendorName}"; + } + + public string GetReportInfo(IBaseReport rpt) + { + return $"{rpt.ReportName} {(rpt.IsSensitive ? "is" : "is not")} a sensitive report."; + } + } +} diff --git a/GenericMathSupport/GenericMathSupport/Example 2 - Static Abstract Interfaces/Reports.cs b/GenericMathSupport/GenericMathSupport/Example 2 - Static Abstract Interfaces/Reports.cs new file mode 100644 index 0000000..9a88dfd --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 2 - Static Abstract Interfaces/Reports.cs @@ -0,0 +1,84 @@ +namespace GenericMathSupport.Example2 +{ + /*********************************** + * BASE REPORT INTERFACE WITH + * STATIC ABSTRACT MEMBERS + * *********************************/ + + public interface IBaseReport + { + static abstract string ReportName { get; } + static abstract bool IsSensitive { get; } + static abstract string GenerateUniqueId(); + DateTime RequestedTime { get; set; } + } + + /*********************************** + * EMPLOYEE REPORT w/ INTERFACE + * AND IMPLEMENTING STATIC MEMBERS + * *********************************/ + + public interface IEmployeeReport : IBaseReport + { + string Name { get; set; } + DateTime HireDate { get; set; } + DateTime? TermDate { get; set; } + } + + public class EmployeeReport : IEmployeeReport + { + public static string ReportName => "Employee Profile"; + public static bool IsSensitive => true; + public DateTime RequestedTime { get; set; } + public static string GenerateUniqueId() => + $"{ReportName.Replace(" ","")}-{DateTime.Now:yyyy-MM-dd-hh-mm-ss:ffffff}"; + + public string Name { get; set; } + public DateTime HireDate { get; set; } + public DateTime? TermDate { get; set; } + } + + /*********************************** + * VENDOR REPORT CLASS w/ INTERFACE + * AND IMPLEMENTING STATIC MEMBERS + * *********************************/ + + public interface IVendorReport : IBaseReport + { + string VendorName { get; set; } + string VendorContactName { get; set; } + string VendorContactPhone { get; set; } + } + + public class VendorReport : IVendorReport + { + public static string ReportName => "Vendor Summary"; + public static bool IsSensitive => false; + public DateTime RequestedTime { get; set; } + public static string GenerateUniqueId() => $"{Guid.NewGuid()}"; + + public string VendorName { get; set; } + public string VendorContactName { get; set; } + public string VendorContactPhone { get; set; } + } + + /*********************************** + * A CLASS THAT PROCESSES REPORTS + * *********************************/ + + public class ISwearImAnInterestingClass + { + public string GetVendorReportStatus(IVendorReport rpt) + { + return $"Running '{VendorReport.ReportName}' for: {rpt.VendorName}"; + } + + public string GetReportInfo(T rpt) where T : IBaseReport + { + return $"{T.ReportName} was requested on {rpt.RequestedTime:d}."; + } + + public string GetNewReportId() where T : IBaseReport + => T.GenerateUniqueId(); + } +} diff --git a/GenericMathSupport/GenericMathSupport/Example 3 - Abstraction and Interfaces/Reports.cs b/GenericMathSupport/GenericMathSupport/Example 3 - Abstraction and Interfaces/Reports.cs new file mode 100644 index 0000000..99b076d --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 3 - Abstraction and Interfaces/Reports.cs @@ -0,0 +1,71 @@ +namespace GenericMathSupport.Example3 +{ + /****************************** + * ABSTRACT BASE CLASS + * w/ INTERFACE + * ****************************/ + + public interface IBaseReport + { + string ReportName { get; } + } + + public abstract class BaseReport : IBaseReport + { + public abstract string ReportName { get; } + public abstract bool Sensitive { get; } + } + + /****************************** + * EMPLOYEE REPORT CLASS + * w/ INTERFACE + * ****************************/ + + public interface IEmployeeReport + { + string FirstName { get; set; } + string LastName { get; set; } + DateTime HireDate { get; set; } + DateTime? TermDate { get; set; } + } + + public class EmployeeReport : IEmployeeReport + { + public string ReportName => "Employee Profile"; + public bool Sensitive => true; + + public string FirstName { get; set; } + public string LastName { get; set; } + public DateTime HireDate { get; set; } + public DateTime? TermDate { get; set; } + } + + /****************************** + * SALES REPORT CLASS + * w/ INTERFACE + * ****************************/ + + public class SalesReport : IBaseReport + { + public string ReportName => "Sales Report"; + public bool Sensitive => false; + + public decimal MonthToDateSales { get; set; } + public decimal YearToDateSales { get; set; } + } + + /****************************** + * VENDOR REPORT CLASS + * w/ INTERFACE + * ****************************/ + + public class VendorReport : BaseReport + { + public override string ReportName => "Vendor Summary"; + public override bool Sensitive => false; + + public string VendorName { get; set; } + public string VendorContactName { get; set; } + public string VendorContactPhone { get; set; } + } +} diff --git a/GenericMathSupport/GenericMathSupport/Folder.cs b/GenericMathSupport/GenericMathSupport/Folder.cs new file mode 100644 index 0000000..4bb7f65 --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Folder.cs @@ -0,0 +1,40 @@ +using System.Drawing; +using System.Numerics; + +namespace GenericMathSupport +{ + public class Folder : IAdditionOperators + { + public Folder() + { + } + + public Folder(List filesA, List filesB) + { + Files.AddRange(filesA); + Files.AddRange(filesB); + } + + public List Files { get; set; } = new List(); + + public static Folder operator +(Folder fdr1, Folder fdr2) => + new(fdr1.Files, fdr2.Files); + + public static int operator +(int fdr1, Folder fdr2) => + fdr1 + fdr2.Files.Count(); + + static T Add(T left, T right) + where T : INumber + { + return left + right; + } + } + + public class Document + { + public string Name { get; set; } = ""; + public string FilePath { get; set; } = ""; + public DateTime Created { get; set; } = DateTime.Now; + public DateTime Updated { get; set; } = DateTime.Now; + } +} \ No newline at end of file diff --git a/GenericMathSupport/GenericMathSupport/GenericMathSupport.csproj b/GenericMathSupport/GenericMathSupport/GenericMathSupport.csproj new file mode 100644 index 0000000..acdcc3c --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/GenericMathSupport.csproj @@ -0,0 +1,20 @@ + + + + net7.0 + enable + enable + + + + + + + + + + + + + + diff --git a/GenericMathSupport/GenericMathSupportOld/Class1.cs b/GenericMathSupport/GenericMathSupportOld/Class1.cs new file mode 100644 index 0000000..519d54d --- /dev/null +++ b/GenericMathSupport/GenericMathSupportOld/Class1.cs @@ -0,0 +1,7 @@ +namespace GenericMathSupportOld +{ + public class Class1 + { + + } +} \ No newline at end of file diff --git a/GenericMathSupport/GenericMathSupportOld/Example 1 - Interfaces/Reports.cs b/GenericMathSupport/GenericMathSupportOld/Example 1 - Interfaces/Reports.cs new file mode 100644 index 0000000..b801369 --- /dev/null +++ b/GenericMathSupport/GenericMathSupportOld/Example 1 - Interfaces/Reports.cs @@ -0,0 +1,71 @@ +namespace GenericMathSupport.Example1 +{ + /*********************************** + * BASE REPORT INTERFACE + * *********************************/ + + public interface IBaseReport + { + static string ReportName { get; } + bool IsSensitive { get; } + } + + /*********************************** + * EMPLOYEE REPORT w/ INTERFACE + * *********************************/ + + public interface IEmployeeReport : IBaseReport + { + string Name { get; set; } + DateTime HireDate { get; set; } + DateTime? TermDate { get; set; } + } + + public class EmployeeReport : IEmployeeReport + { + public string ReportName => "Employee Profile"; + public bool IsSensitive => true; + + public string Name { get; set; } + public DateTime HireDate { get; set; } + public DateTime? TermDate { get; set; } + } + + /*********************************** + * VENDOR REPORT CLASS w/ INTERFACE + * *********************************/ + + public interface IVendorReport : IBaseReport + { + string VendorName { get; set; } + string VendorContactName { get; set; } + string VendorContactPhone { get; set; } + } + + public class VendorReport : IVendorReport + { + public static string ReportName => "Vendor Summary"; + public bool IsSensitive => false; + + public string VendorName { get; set; } + public string VendorContactName { get; set; } + public string VendorContactPhone { get; set; } + } + + /*********************************** + * A CLASS THAT PROCESSES REPORTS + * *********************************/ + + public class ISwearImAnInterestingClass + { + public string GetVendorReportStatus(IVendorReport rpt) + { + return $"Running '{rpt.ReportName}' for: {rpt.VendorName}"; + } + + public string GetReportInfo(IBaseReport rpt) + { + return $"{rpt.ReportName} {(rpt.IsSensitive ? "is" : "is not")} a sensitive report."; + } + } +} diff --git a/GenericMathSupport/GenericMathSupportOld/GenericMathSupportOld.csproj b/GenericMathSupport/GenericMathSupportOld/GenericMathSupportOld.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/GenericMathSupport/GenericMathSupportOld/GenericMathSupportOld.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/GenericMathSupport/MathSupportUI/Form1.Designer.cs b/GenericMathSupport/MathSupportUI/Form1.Designer.cs new file mode 100644 index 0000000..945b6d9 --- /dev/null +++ b/GenericMathSupport/MathSupportUI/Form1.Designer.cs @@ -0,0 +1,39 @@ +namespace MathSupportUI +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(800, 450); + this.Text = "Form1"; + } + + #endregion + } +} \ No newline at end of file diff --git a/GenericMathSupport/MathSupportUI/Form1.cs b/GenericMathSupport/MathSupportUI/Form1.cs new file mode 100644 index 0000000..b328e89 --- /dev/null +++ b/GenericMathSupport/MathSupportUI/Form1.cs @@ -0,0 +1,10 @@ +namespace MathSupportUI +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/GenericMathSupport/MathSupportUI/Form1.resx b/GenericMathSupport/MathSupportUI/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/GenericMathSupport/MathSupportUI/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/GenericMathSupport/MathSupportUI/MathSupportUI.csproj b/GenericMathSupport/MathSupportUI/MathSupportUI.csproj new file mode 100644 index 0000000..e1a0735 --- /dev/null +++ b/GenericMathSupport/MathSupportUI/MathSupportUI.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net7.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/GenericMathSupport/MathSupportUI/Program.cs b/GenericMathSupport/MathSupportUI/Program.cs new file mode 100644 index 0000000..fe1c1f8 --- /dev/null +++ b/GenericMathSupport/MathSupportUI/Program.cs @@ -0,0 +1,17 @@ +namespace MathSupportUI +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file diff --git a/GenericMathSupport/TestProject/Example 1 - Interfaces/ReportTests.cs b/GenericMathSupport/TestProject/Example 1 - Interfaces/ReportTests.cs new file mode 100644 index 0000000..0228185 --- /dev/null +++ b/GenericMathSupport/TestProject/Example 1 - Interfaces/ReportTests.cs @@ -0,0 +1,40 @@ +using GenericMathSupport.Example1; + +namespace TestProject.Example1 +{ + public class ReportTests + { + ISwearImAnInterestingClass ic; + + [SetUp] + public void Setup() + { + ic = new(); + } + + [Test] + public void GetVendorReportStatus_ReturnsReportStatus() + { + var vendorReport = new VendorReport { VendorName = "Acme Inc", VendorContactName = "Mary" }; + var vdrReportStatus = ic.GetVendorReportStatus(vendorReport); + + Assert.That(vdrReportStatus, Is.EqualTo("Running 'Vendor Summary' for: Acme Inc")); + } + + [Test] + public void GetReportStatus_ReturnsReportInfo() + { + var employeeReport = new EmployeeReport { Name = "Bob", HireDate = new DateTime(2010, 1, 1) }; + var empReportStatus = ic.GetReportInfo(employeeReport); + + var vendorReport = new VendorReport { VendorName = "Acme Inc", VendorContactName = "Mary" }; + var vdrReportStatus = ic.GetReportInfo(vendorReport); + + Assert.Multiple(() => + { + Assert.That(empReportStatus, Is.EqualTo("Employee Profile is a sensitive report.")); + Assert.That(vdrReportStatus, Is.EqualTo("Vendor Summary is not a sensitive report.")); + }); + } + } +} \ No newline at end of file diff --git a/GenericMathSupport/TestProject/Example 2 - Abstract Classes/ReportTests.cs b/GenericMathSupport/TestProject/Example 2 - Abstract Classes/ReportTests.cs new file mode 100644 index 0000000..dd4236e --- /dev/null +++ b/GenericMathSupport/TestProject/Example 2 - Abstract Classes/ReportTests.cs @@ -0,0 +1,40 @@ +using GenericMathSupport.Example2; + +namespace TestProject.Example2 +{ + public class ReportTests + { + ISwearImAnInterestingClass ic; + + [SetUp] + public void Setup() + { + ic = new(); + } + + [Test] + public void ISwearImAnInterestingClass_ReturnsExpectedValues_ForEmployeeReport() + { + var employeeReport = new EmployeeReport { Name = "Bob", HireDate = new DateTime(2010, 1, 1), RequestedTime = DateTime.Now }; + + Assert.Multiple(() => + { + Assert.That(ic.GetReportInfo(employeeReport), Does.StartWith($"{EmployeeReport.ReportName} was requested on ")); + Assert.That(ic.GetNewReportId(), Does.StartWith("EmployeeProfile-20")); // will fail in 2100 :p + }); + } + + [Test] + public void ISwearImAnInterestingClass_ReturnsExpectedValues_ForVendorReport() + { + var vendorReport = new VendorReport { VendorName = "Acme Inc", VendorContactName = "Mary", RequestedTime = DateTime.Now }; + + Assert.Multiple(() => + { + Assert.That(ic.GetVendorReportStatus(vendorReport), Is.EqualTo($"Running '{VendorReport.ReportName}' for: {vendorReport.VendorName}")); + Assert.That(ic.GetReportInfo(vendorReport), Does.StartWith($"{VendorReport.ReportName} was requested on ")); + Assert.That(Guid.TryParse(ic.GetNewReportId(), out var _), Is.True); + }); + } + } +} \ No newline at end of file diff --git a/GenericMathSupport/TestProject/TestProject.csproj b/GenericMathSupport/TestProject/TestProject.csproj new file mode 100644 index 0000000..f45b770 --- /dev/null +++ b/GenericMathSupport/TestProject/TestProject.csproj @@ -0,0 +1,27 @@ + + + + net7.0 + enable + enable + + false + + + + + + + + + + + + + + + + + + + diff --git a/GenericMathSupport/TestProject/UnitTests.cs b/GenericMathSupport/TestProject/UnitTests.cs new file mode 100644 index 0000000..d7918c6 --- /dev/null +++ b/GenericMathSupport/TestProject/UnitTests.cs @@ -0,0 +1,97 @@ +using GenericMathSupport; +using System.Drawing; +using System.Linq; + +namespace TestProject +{ + public class Tests + { + [Test] + public void AddingTwoFolders_CombinesTheirFiles() + { + var folder1 = new Folder + { + Files = new List + { + new Document { Name = "Doc 1" }, + new Document { Name = "Doc 2" }, + new Document { Name = "Doc 3" } + } + }; + + var folder2 = new Folder + { + Files = new List + { + new Document { Name = "Doc A" }, + new Document { Name = "Doc B" }, + new Document { Name = "Doc C" } + } + }; + + var bigFolder = folder1 + folder2; + + Assert.Multiple(() => + { + Assert.That(bigFolder.Files, Has.Count.EqualTo(6)); + Assert.That(bigFolder.Files.SingleOrDefault(x => x.Name == "Doc 2"), Is.Not.Null); + Assert.That(bigFolder.Files.SingleOrDefault(x => x.Name == "Doc B"), Is.Not.Null); + }); + } + + [Test] + public void AddingTwoSwatches_CombinesTheirShades() + { + var swatch1 = new ColorSwatch("Yellow", new List + { + Color.LightYellow, + Color.Goldenrod, + Color.DarkGoldenrod, + } + ); + + var swatch2 = new ColorSwatch("Blue", new List + { + Color.AliceBlue, + Color.DodgerBlue, + Color.Navy, + } + ); + + var mixedSwatch = swatch1 + swatch2; + + Assert.Multiple(() => + { + Assert.That(mixedSwatch.ToList(), Has.Count.EqualTo(6)); + }); + } + + [Test] + public void MultiplyingColors_CreatesNewCombinations() + { + var swatch1 = new ColorSwatch("Yellow", new List + { + Color.LightYellow, // 255,255,224 + Color.Goldenrod, // 218,165, 32 + Color.DarkGoldenrod, // 184,134, 11 + } + ); + + var swatch2 = new ColorSwatch("Blue", new List + { + Color.AliceBlue, // 240,248,255 + Color.DodgerBlue, // 30,144,255 + Color.Navy, // 0, 0,128 + } + ); + + var mixedSwatch = swatch1 * swatch2; + + Assert.Multiple(() => + { + Assert.That(mixedSwatch, Has.Count.EqualTo(9)); + }); + } + + } +} \ No newline at end of file diff --git a/GenericMathSupport/TestProject/Usings.cs b/GenericMathSupport/TestProject/Usings.cs new file mode 100644 index 0000000..cefced4 --- /dev/null +++ b/GenericMathSupport/TestProject/Usings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file From dac4248779950dee9a78597aa8e4e114648474ba Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Fri, 31 Mar 2023 00:39:33 -0400 Subject: [PATCH 04/49] add notes to readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 41b6f42..79c7796 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ The following list of blog posts includes a link to the part of the repo with th [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/GitHubTipsTricks) * [Discover where the ISS is, where it will be, and who's on it with the ISS Notify API](https://grantwinney.com/day-11-iss-notify-api/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/IssNotifyApiWrapper) +* Generic Math Support [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/GenericMathSupport) + 1. [What's a static abstract interface method in C#?](https://grantwinney.com/whats-a-static-abstract-interface-method-in-c/) + 2. What is operator overloading in C#? + 3. What is the new Generic Math support all about in C# 11? * [How do I convert my code from C# to VB.NET (or from VB.NET to C#)?](https://grantwinney.com/how-do-i-convert-my-code-from-c-to-vb-net-or-vice-versa/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/CSharpAndVbNetTogether) * [How to use an application config file with a .NET Standard app and NUnit 3)](https://grantwinney.com/how-to-use-an-app-config-file-with-a-net-standard-app-and-nunit-3/) From 0642bcbd87d9053e137777ab048bbcbc82f62b94 Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Fri, 31 Mar 2023 00:40:57 -0400 Subject: [PATCH 05/49] add notes to readme --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 79c7796..184575d 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ The following list of blog posts includes a link to the part of the repo with th * [Discover where the ISS is, where it will be, and who's on it with the ISS Notify API](https://grantwinney.com/day-11-iss-notify-api/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/IssNotifyApiWrapper) * Generic Math Support [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/GenericMathSupport) - 1. [What's a static abstract interface method in C#?](https://grantwinney.com/whats-a-static-abstract-interface-method-in-c/) - 2. What is operator overloading in C#? - 3. What is the new Generic Math support all about in C# 11? + * Part 1 - [What's a static abstract interface method in C#?](https://grantwinney.com/whats-a-static-abstract-interface-method-in-c/) + * Part 2 - What is operator overloading in C#? + * Part 3 - What is the new Generic Math support all about in C# 11? * [How do I convert my code from C# to VB.NET (or from VB.NET to C#)?](https://grantwinney.com/how-do-i-convert-my-code-from-c-to-vb-net-or-vice-versa/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/CSharpAndVbNetTogether) * [How to use an application config file with a .NET Standard app and NUnit 3)](https://grantwinney.com/how-to-use-an-app-config-file-with-a-net-standard-app-and-nunit-3/) From aeecfaab0111dff510d87863f7fb023549b1c7f4 Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Sat, 1 Apr 2023 00:00:11 -0400 Subject: [PATCH 06/49] add operator overloading examples --- GenericMathSupport/GenericMathSupport.sln | 8 +- .../GenericMathSupport/ColorSwatch.cs | 40 ------ .../Reports.cs | 71 ----------- .../Example 3 - Operator Overloading/Boxes.cs | 58 +++++++++ .../ColorSwatch.cs | 40 ++++++ .../Folder.cs | 18 +++ .../GenericMathSupport/Folder.cs | 40 ------ .../GenericMathSupport.csproj | 11 -- .../GenericMathSupportOld/Class1.cs | 7 - .../Example 1 - Interfaces/Reports.cs | 71 ----------- .../GenericMathSupportOld.csproj | 9 -- .../MathSupportUI/Form1.Designer.cs | 39 ------ GenericMathSupport/MathSupportUI/Form1.cs | 10 -- GenericMathSupport/MathSupportUI/Form1.resx | 120 ------------------ .../OperatorOverloadTests.cs} | 73 ++++++++--- .../TestProject/TestProject.csproj | 27 ---- .../TestProject/UnitTests.csproj | 30 +++++ .../WinFormsUI/Form1.Designer.cs | 95 ++++++++++++++ GenericMathSupport/WinFormsUI/Form1.cs | 45 +++++++ GenericMathSupport/WinFormsUI/Form1.resx | 60 +++++++++ .../{MathSupportUI => WinFormsUI}/Program.cs | 0 .../WinFormsUI.csproj} | 4 + README.md | 2 +- 23 files changed, 410 insertions(+), 468 deletions(-) delete mode 100644 GenericMathSupport/GenericMathSupport/ColorSwatch.cs delete mode 100644 GenericMathSupport/GenericMathSupport/Example 3 - Abstraction and Interfaces/Reports.cs create mode 100644 GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/Boxes.cs create mode 100644 GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/ColorSwatch.cs create mode 100644 GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/Folder.cs delete mode 100644 GenericMathSupport/GenericMathSupport/Folder.cs delete mode 100644 GenericMathSupport/GenericMathSupportOld/Class1.cs delete mode 100644 GenericMathSupport/GenericMathSupportOld/Example 1 - Interfaces/Reports.cs delete mode 100644 GenericMathSupport/GenericMathSupportOld/GenericMathSupportOld.csproj delete mode 100644 GenericMathSupport/MathSupportUI/Form1.Designer.cs delete mode 100644 GenericMathSupport/MathSupportUI/Form1.cs delete mode 100644 GenericMathSupport/MathSupportUI/Form1.resx rename GenericMathSupport/TestProject/{UnitTests.cs => Example 3 - Operator Overloading/OperatorOverloadTests.cs} (50%) delete mode 100644 GenericMathSupport/TestProject/TestProject.csproj create mode 100644 GenericMathSupport/TestProject/UnitTests.csproj create mode 100644 GenericMathSupport/WinFormsUI/Form1.Designer.cs create mode 100644 GenericMathSupport/WinFormsUI/Form1.cs create mode 100644 GenericMathSupport/WinFormsUI/Form1.resx rename GenericMathSupport/{MathSupportUI => WinFormsUI}/Program.cs (100%) rename GenericMathSupport/{MathSupportUI/MathSupportUI.csproj => WinFormsUI/WinFormsUI.csproj} (72%) diff --git a/GenericMathSupport/GenericMathSupport.sln b/GenericMathSupport/GenericMathSupport.sln index 2240b8e..eb9ee21 100644 --- a/GenericMathSupport/GenericMathSupport.sln +++ b/GenericMathSupport/GenericMathSupport.sln @@ -5,7 +5,9 @@ VisualStudioVersion = 17.4.33213.308 MinimumVisualStudioVersion = 10.0.40219.1 Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GenericMathSupport", "GenericMathSupport\GenericMathSupport.csproj", "{3CAB0FB8-B167-4818-A787-2E65F89F2F72}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestProject", "TestProject\TestProject.csproj", "{3BC3032E-EA50-4E3A-952D-D600FE57DA9F}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests", "TestProject\UnitTests.csproj", "{3BC3032E-EA50-4E3A-952D-D600FE57DA9F}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinFormsUI", "WinFormsUI\WinFormsUI.csproj", "{155CDFE8-E06E-419F-B865-DC929D0F82AE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -21,6 +23,10 @@ Global {3BC3032E-EA50-4E3A-952D-D600FE57DA9F}.Debug|Any CPU.Build.0 = Debug|Any CPU {3BC3032E-EA50-4E3A-952D-D600FE57DA9F}.Release|Any CPU.ActiveCfg = Release|Any CPU {3BC3032E-EA50-4E3A-952D-D600FE57DA9F}.Release|Any CPU.Build.0 = Release|Any CPU + {155CDFE8-E06E-419F-B865-DC929D0F82AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {155CDFE8-E06E-419F-B865-DC929D0F82AE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {155CDFE8-E06E-419F-B865-DC929D0F82AE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {155CDFE8-E06E-419F-B865-DC929D0F82AE}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/GenericMathSupport/GenericMathSupport/ColorSwatch.cs b/GenericMathSupport/GenericMathSupport/ColorSwatch.cs deleted file mode 100644 index 3fea992..0000000 --- a/GenericMathSupport/GenericMathSupport/ColorSwatch.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.Drawing; -using System.Numerics; - -namespace GenericMathSupport -{ - public class ColorSwatch : IAdditionOperators> - { - private readonly IEnumerable shades; - public string Name { get; private set; } - - public ColorSwatch(string name, IEnumerable shades) - { - Name = name; - this.shades = shades.ToList(); - } - - public static IList operator +(ColorSwatch cs1, ColorSwatch cs2) => - cs1.shades.Concat(cs2.shades).ToList(); - - public static IList operator *(ColorSwatch cs1, ColorSwatch cs2) - { - var colorMatrix = new List(); - - foreach (var s1 in cs1.shades) - { - foreach (var s2 in cs2.shades) - { - var a = s1.A + (s2.A * (255 - s1.A) / 255); - var r = ((s1.R * s1.A) + (s2.R * s2.A * (255 - s1.A) / 255)) / a; - var g = ((s1.G * s1.A) + (s2.G * s2.A * (255 - s1.A) / 255)) / a; - var b = ((s1.B * s1.A) + (s2.B * s2.A * (255 - s1.A) / 255)) / a; - - colorMatrix.Add(Color.FromArgb(a, r, g, b)); - } - } - - return colorMatrix; - } - } -} diff --git a/GenericMathSupport/GenericMathSupport/Example 3 - Abstraction and Interfaces/Reports.cs b/GenericMathSupport/GenericMathSupport/Example 3 - Abstraction and Interfaces/Reports.cs deleted file mode 100644 index 99b076d..0000000 --- a/GenericMathSupport/GenericMathSupport/Example 3 - Abstraction and Interfaces/Reports.cs +++ /dev/null @@ -1,71 +0,0 @@ -namespace GenericMathSupport.Example3 -{ - /****************************** - * ABSTRACT BASE CLASS - * w/ INTERFACE - * ****************************/ - - public interface IBaseReport - { - string ReportName { get; } - } - - public abstract class BaseReport : IBaseReport - { - public abstract string ReportName { get; } - public abstract bool Sensitive { get; } - } - - /****************************** - * EMPLOYEE REPORT CLASS - * w/ INTERFACE - * ****************************/ - - public interface IEmployeeReport - { - string FirstName { get; set; } - string LastName { get; set; } - DateTime HireDate { get; set; } - DateTime? TermDate { get; set; } - } - - public class EmployeeReport : IEmployeeReport - { - public string ReportName => "Employee Profile"; - public bool Sensitive => true; - - public string FirstName { get; set; } - public string LastName { get; set; } - public DateTime HireDate { get; set; } - public DateTime? TermDate { get; set; } - } - - /****************************** - * SALES REPORT CLASS - * w/ INTERFACE - * ****************************/ - - public class SalesReport : IBaseReport - { - public string ReportName => "Sales Report"; - public bool Sensitive => false; - - public decimal MonthToDateSales { get; set; } - public decimal YearToDateSales { get; set; } - } - - /****************************** - * VENDOR REPORT CLASS - * w/ INTERFACE - * ****************************/ - - public class VendorReport : BaseReport - { - public override string ReportName => "Vendor Summary"; - public override bool Sensitive => false; - - public string VendorName { get; set; } - public string VendorContactName { get; set; } - public string VendorContactPhone { get; set; } - } -} diff --git a/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/Boxes.cs b/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/Boxes.cs new file mode 100644 index 0000000..f548e64 --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/Boxes.cs @@ -0,0 +1,58 @@ +namespace GenericMathSupport.Example3 +{ + /****************************** + * EMPLOYEE REPORT CLASS + * w/ INTERFACE + * ****************************/ + + public interface IBox + { + int Width { get; } + int Height { get; } + int Depth { get; } + } + + public class Box : IBox + { + public Box(int width, int height, int depth) + { + Width = width; + Height = height; + Depth = depth; + } + + public int Width { get; private set; } + public int Height { get; private set; } + public int Depth { get; private set; } + + public int Area { get => Width * Height * Depth; } + + public static Box operator +(Box box1, Box box2) + { + var widestWidth = Math.Max(box1.Width, box2.Width); + var deepestDepth = Math.Max(box1.Depth, box2.Depth); + var combinedHeight = box1.Height + box2.Height; + + return new Box(widestWidth, combinedHeight, deepestDepth); + } + + public static bool operator ==(Box box1, Box box2) + => box1.Width == box2.Width && + box1.Height == box2.Height && + box1.Depth == box2.Depth; + + public override bool Equals(object obj) + { + return ReferenceEquals(this, obj) || (Box)obj == this; + } + + public static bool operator !=(Box box1, Box box2) + => !(box1 == box2); + + public static bool operator <(Box box1, Box box2) + => box1.Area < box2.Area; + + public static bool operator >(Box box1, Box box2) + => box2.Area < box1.Area; + } +} diff --git a/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/ColorSwatch.cs b/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/ColorSwatch.cs new file mode 100644 index 0000000..42007ef --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/ColorSwatch.cs @@ -0,0 +1,40 @@ +using System.Drawing; +using System.Numerics; + +namespace GenericMathSupport.Example3 +{ + public class ColorSwatch + { + public IEnumerable Shades { get; } + public string Name { get; private set; } + + public ColorSwatch(string name, IEnumerable shades) + { + Name = name; + Shades = shades.ToList(); + } + + public static IList operator +(ColorSwatch cs1, ColorSwatch cs2) => + cs1.Shades.Concat(cs2.Shades).ToList(); + + public static IList operator *(ColorSwatch cs1, ColorSwatch cs2) + { + var colorMatrix = new List(); + var amount = 0.5; + + foreach (var s1 in cs1.Shades) + { + foreach (var s2 in cs2.Shades) + { + // Thank you Timwi.. stackoverflow.com/a/3722337 + byte r = (byte)(s1.R * amount + s2.R * (1 - amount)); + byte g = (byte)(s1.G * amount + s2.G * (1 - amount)); + byte b = (byte)(s1.B * amount + s2.B * (1 - amount)); + colorMatrix.Add(Color.FromArgb(r, g, b)); + } + } + + return colorMatrix; + } + } +} diff --git a/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/Folder.cs b/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/Folder.cs new file mode 100644 index 0000000..b085862 --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 3 - Operator Overloading/Folder.cs @@ -0,0 +1,18 @@ +namespace GenericMathSupport +{ + public class Folder + { + public Folder() { } + + public Folder(List filesA, List filesB) + { + Files.AddRange(filesA); + Files.AddRange(filesB); + } + + public List Files { get; set; } = new List(); + + public static Folder operator +(Folder fdr1, Folder fdr2) => + new(fdr1.Files, fdr2.Files); + } +} \ No newline at end of file diff --git a/GenericMathSupport/GenericMathSupport/Folder.cs b/GenericMathSupport/GenericMathSupport/Folder.cs deleted file mode 100644 index 4bb7f65..0000000 --- a/GenericMathSupport/GenericMathSupport/Folder.cs +++ /dev/null @@ -1,40 +0,0 @@ -using System.Drawing; -using System.Numerics; - -namespace GenericMathSupport -{ - public class Folder : IAdditionOperators - { - public Folder() - { - } - - public Folder(List filesA, List filesB) - { - Files.AddRange(filesA); - Files.AddRange(filesB); - } - - public List Files { get; set; } = new List(); - - public static Folder operator +(Folder fdr1, Folder fdr2) => - new(fdr1.Files, fdr2.Files); - - public static int operator +(int fdr1, Folder fdr2) => - fdr1 + fdr2.Files.Count(); - - static T Add(T left, T right) - where T : INumber - { - return left + right; - } - } - - public class Document - { - public string Name { get; set; } = ""; - public string FilePath { get; set; } = ""; - public DateTime Created { get; set; } = DateTime.Now; - public DateTime Updated { get; set; } = DateTime.Now; - } -} \ No newline at end of file diff --git a/GenericMathSupport/GenericMathSupport/GenericMathSupport.csproj b/GenericMathSupport/GenericMathSupport/GenericMathSupport.csproj index acdcc3c..cfadb03 100644 --- a/GenericMathSupport/GenericMathSupport/GenericMathSupport.csproj +++ b/GenericMathSupport/GenericMathSupport/GenericMathSupport.csproj @@ -6,15 +6,4 @@ enable - - - - - - - - - - - diff --git a/GenericMathSupport/GenericMathSupportOld/Class1.cs b/GenericMathSupport/GenericMathSupportOld/Class1.cs deleted file mode 100644 index 519d54d..0000000 --- a/GenericMathSupport/GenericMathSupportOld/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace GenericMathSupportOld -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/GenericMathSupport/GenericMathSupportOld/Example 1 - Interfaces/Reports.cs b/GenericMathSupport/GenericMathSupportOld/Example 1 - Interfaces/Reports.cs deleted file mode 100644 index b801369..0000000 --- a/GenericMathSupport/GenericMathSupportOld/Example 1 - Interfaces/Reports.cs +++ /dev/null @@ -1,71 +0,0 @@ -namespace GenericMathSupport.Example1 -{ - /*********************************** - * BASE REPORT INTERFACE - * *********************************/ - - public interface IBaseReport - { - static string ReportName { get; } - bool IsSensitive { get; } - } - - /*********************************** - * EMPLOYEE REPORT w/ INTERFACE - * *********************************/ - - public interface IEmployeeReport : IBaseReport - { - string Name { get; set; } - DateTime HireDate { get; set; } - DateTime? TermDate { get; set; } - } - - public class EmployeeReport : IEmployeeReport - { - public string ReportName => "Employee Profile"; - public bool IsSensitive => true; - - public string Name { get; set; } - public DateTime HireDate { get; set; } - public DateTime? TermDate { get; set; } - } - - /*********************************** - * VENDOR REPORT CLASS w/ INTERFACE - * *********************************/ - - public interface IVendorReport : IBaseReport - { - string VendorName { get; set; } - string VendorContactName { get; set; } - string VendorContactPhone { get; set; } - } - - public class VendorReport : IVendorReport - { - public static string ReportName => "Vendor Summary"; - public bool IsSensitive => false; - - public string VendorName { get; set; } - public string VendorContactName { get; set; } - public string VendorContactPhone { get; set; } - } - - /*********************************** - * A CLASS THAT PROCESSES REPORTS - * *********************************/ - - public class ISwearImAnInterestingClass - { - public string GetVendorReportStatus(IVendorReport rpt) - { - return $"Running '{rpt.ReportName}' for: {rpt.VendorName}"; - } - - public string GetReportInfo(IBaseReport rpt) - { - return $"{rpt.ReportName} {(rpt.IsSensitive ? "is" : "is not")} a sensitive report."; - } - } -} diff --git a/GenericMathSupport/GenericMathSupportOld/GenericMathSupportOld.csproj b/GenericMathSupport/GenericMathSupportOld/GenericMathSupportOld.csproj deleted file mode 100644 index 132c02c..0000000 --- a/GenericMathSupport/GenericMathSupportOld/GenericMathSupportOld.csproj +++ /dev/null @@ -1,9 +0,0 @@ - - - - net6.0 - enable - enable - - - diff --git a/GenericMathSupport/MathSupportUI/Form1.Designer.cs b/GenericMathSupport/MathSupportUI/Form1.Designer.cs deleted file mode 100644 index 945b6d9..0000000 --- a/GenericMathSupport/MathSupportUI/Form1.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace MathSupportUI -{ - partial class Form1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "Form1"; - } - - #endregion - } -} \ No newline at end of file diff --git a/GenericMathSupport/MathSupportUI/Form1.cs b/GenericMathSupport/MathSupportUI/Form1.cs deleted file mode 100644 index b328e89..0000000 --- a/GenericMathSupport/MathSupportUI/Form1.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace MathSupportUI -{ - public partial class Form1 : Form - { - public Form1() - { - InitializeComponent(); - } - } -} \ No newline at end of file diff --git a/GenericMathSupport/MathSupportUI/Form1.resx b/GenericMathSupport/MathSupportUI/Form1.resx deleted file mode 100644 index 1af7de1..0000000 --- a/GenericMathSupport/MathSupportUI/Form1.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/GenericMathSupport/TestProject/UnitTests.cs b/GenericMathSupport/TestProject/Example 3 - Operator Overloading/OperatorOverloadTests.cs similarity index 50% rename from GenericMathSupport/TestProject/UnitTests.cs rename to GenericMathSupport/TestProject/Example 3 - Operator Overloading/OperatorOverloadTests.cs index d7918c6..bcaa6d7 100644 --- a/GenericMathSupport/TestProject/UnitTests.cs +++ b/GenericMathSupport/TestProject/Example 3 - Operator Overloading/OperatorOverloadTests.cs @@ -1,41 +1,65 @@ using GenericMathSupport; +using GenericMathSupport.Example3; using System.Drawing; -using System.Linq; -namespace TestProject +namespace TestProject.Example3 { - public class Tests + public class BoxTests { + [Test] + public void BoxesAreEqual_WhenAllDimensionsAreEqual() + { + var box1 = new Box(2, 4, 7); + var box2 = new Box(2, 4, 7); + + Assert.That(box1, Is.EqualTo(box2)); + } + + [Test] + public void BoxesAreNotEqual_WhenNotAllDimensionsAreEqual() + { + var box1 = new Box(2, 3, 7); + var box2 = new Box(2, 4, 7); + + Assert.That(box2, Is.Not.EqualTo(box1)); + } + + [Test] + public void AddingTwoBoxes_ReturnsBoxToFitBoth() + { + var box1 = new Box(2, 3, 7); + var box2 = new Box(4, 6, 5); + + var box3 = box1 + box2; + + Assert.Multiple(() => + { + Assert.That(box3.Width, Is.EqualTo(4)); // larger width from box2 + Assert.That(box3.Depth, Is.EqualTo(7)); // larger depth from box1 + Assert.That(box3.Height, Is.EqualTo(9)); // combined height + }); + } + [Test] public void AddingTwoFolders_CombinesTheirFiles() { var folder1 = new Folder { - Files = new List - { - new Document { Name = "Doc 1" }, - new Document { Name = "Doc 2" }, - new Document { Name = "Doc 3" } - } + Files = new List { "c:/file1.txt", "c:/file2.txt" } }; var folder2 = new Folder { - Files = new List - { - new Document { Name = "Doc A" }, - new Document { Name = "Doc B" }, - new Document { Name = "Doc C" } - } + Files = new List { "d:/fileA.txt", "d:/fileB.txt" } }; var bigFolder = folder1 + folder2; Assert.Multiple(() => { - Assert.That(bigFolder.Files, Has.Count.EqualTo(6)); - Assert.That(bigFolder.Files.SingleOrDefault(x => x.Name == "Doc 2"), Is.Not.Null); - Assert.That(bigFolder.Files.SingleOrDefault(x => x.Name == "Doc B"), Is.Not.Null); + Assert.That(bigFolder.Files, Has.Count.EqualTo(4)); + Assert.That(bigFolder.Files.SingleOrDefault(f => f.Contains("file2")), Is.Not.Null); + Assert.That(bigFolder.Files.SingleOrDefault(f => f.Contains("fileA")), Is.Not.Null); }); } @@ -85,13 +109,20 @@ public void MultiplyingColors_CreatesNewCombinations() } ); - var mixedSwatch = swatch1 * swatch2; + Assert.That(swatch1 * swatch2, Has.Count.EqualTo(9)); + } + + [Test] + public void Box1IsLessThanBox2_WhenAreaIsSmaller() + { + var box1 = new Box(2, 3, 7); + var box2 = new Box(2, 4, 7); Assert.Multiple(() => { - Assert.That(mixedSwatch, Has.Count.EqualTo(9)); + Assert.That(box1 < box2); + Assert.That(box2 > box1); }); } - } } \ No newline at end of file diff --git a/GenericMathSupport/TestProject/TestProject.csproj b/GenericMathSupport/TestProject/TestProject.csproj deleted file mode 100644 index f45b770..0000000 --- a/GenericMathSupport/TestProject/TestProject.csproj +++ /dev/null @@ -1,27 +0,0 @@ - - - - net7.0 - enable - enable - - false - - - - - - - - - - - - - - - - - - - diff --git a/GenericMathSupport/TestProject/UnitTests.csproj b/GenericMathSupport/TestProject/UnitTests.csproj new file mode 100644 index 0000000..6d1d04b --- /dev/null +++ b/GenericMathSupport/TestProject/UnitTests.csproj @@ -0,0 +1,30 @@ + + + + net7.0 + enable + enable + + false + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + diff --git a/GenericMathSupport/WinFormsUI/Form1.Designer.cs b/GenericMathSupport/WinFormsUI/Form1.Designer.cs new file mode 100644 index 0000000..9ba4bfd --- /dev/null +++ b/GenericMathSupport/WinFormsUI/Form1.Designer.cs @@ -0,0 +1,95 @@ +namespace MathSupportUI +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + flowLayoutPanel1 = new FlowLayoutPanel(); + flowLayoutPanel2 = new FlowLayoutPanel(); + flowLayoutPanel3 = new FlowLayoutPanel(); + btnCombine = new Button(); + SuspendLayout(); + // + // flowLayoutPanel1 + // + flowLayoutPanel1.BorderStyle = BorderStyle.FixedSingle; + flowLayoutPanel1.FlowDirection = FlowDirection.TopDown; + flowLayoutPanel1.Location = new Point(12, 32); + flowLayoutPanel1.Name = "flowLayoutPanel1"; + flowLayoutPanel1.Size = new Size(51, 192); + flowLayoutPanel1.TabIndex = 0; + // + // flowLayoutPanel2 + // + flowLayoutPanel2.BorderStyle = BorderStyle.FixedSingle; + flowLayoutPanel2.FlowDirection = FlowDirection.TopDown; + flowLayoutPanel2.Location = new Point(92, 32); + flowLayoutPanel2.Name = "flowLayoutPanel2"; + flowLayoutPanel2.Size = new Size(51, 192); + flowLayoutPanel2.TabIndex = 1; + // + // flowLayoutPanel3 + // + flowLayoutPanel3.BorderStyle = BorderStyle.FixedSingle; + flowLayoutPanel3.FlowDirection = FlowDirection.TopDown; + flowLayoutPanel3.Location = new Point(175, 32); + flowLayoutPanel3.Name = "flowLayoutPanel3"; + flowLayoutPanel3.Size = new Size(97, 242); + flowLayoutPanel3.TabIndex = 1; + // + // btnCombine + // + btnCombine.Location = new Point(40, 251); + btnCombine.Name = "btnCombine"; + btnCombine.Size = new Size(75, 23); + btnCombine.TabIndex = 2; + btnCombine.Text = "Combine"; + btnCombine.UseVisualStyleBackColor = true; + btnCombine.Click += btnCombine_Click; + // + // Form1 + // + AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(312, 304); + Controls.Add(btnCombine); + Controls.Add(flowLayoutPanel3); + Controls.Add(flowLayoutPanel2); + Controls.Add(flowLayoutPanel1); + Name = "Form1"; + Text = "Form1"; + ResumeLayout(false); + } + + #endregion + + private FlowLayoutPanel flowLayoutPanel1; + private FlowLayoutPanel flowLayoutPanel2; + private FlowLayoutPanel flowLayoutPanel3; + private Button btnCombine; + } +} \ No newline at end of file diff --git a/GenericMathSupport/WinFormsUI/Form1.cs b/GenericMathSupport/WinFormsUI/Form1.cs new file mode 100644 index 0000000..a5e4017 --- /dev/null +++ b/GenericMathSupport/WinFormsUI/Form1.cs @@ -0,0 +1,45 @@ +using GenericMathSupport.Example3; + +namespace MathSupportUI +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + + private void btnCombine_Click(object sender, EventArgs e) + { + var swatch1 = new ColorSwatch("Yellow", new List + { + Color.LightYellow, // 255,255,224 + Color.Goldenrod, // 218,165, 32 + Color.DarkGoldenrod, // 184,134, 11 + } + ); + + var swatch2 = new ColorSwatch("Blue", new List + { + Color.AliceBlue, // 240,248,255 + Color.DodgerBlue, // 30,144,255 + Color.Navy, // 0, 0,128 + } + ); + + var mixedSwatches = swatch1 * swatch2; + + flowLayoutPanel1.Controls.Add(new Label { Text = swatch1.Name }); + foreach (var color in swatch1.Shades) + flowLayoutPanel1.Controls.Add(new Label { BackColor = color }); + + flowLayoutPanel2.Controls.Add(new Label { Text = swatch2.Name }); + foreach (var color in swatch2.Shades) + flowLayoutPanel2.Controls.Add(new Label { BackColor = color }); + + flowLayoutPanel3.Controls.Add(new Label { Text = "Mixed" }); + foreach (var color in mixedSwatches) + flowLayoutPanel3.Controls.Add(new Label { BackColor = color }); + } + } +} \ No newline at end of file diff --git a/GenericMathSupport/WinFormsUI/Form1.resx b/GenericMathSupport/WinFormsUI/Form1.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/GenericMathSupport/WinFormsUI/Form1.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/GenericMathSupport/MathSupportUI/Program.cs b/GenericMathSupport/WinFormsUI/Program.cs similarity index 100% rename from GenericMathSupport/MathSupportUI/Program.cs rename to GenericMathSupport/WinFormsUI/Program.cs diff --git a/GenericMathSupport/MathSupportUI/MathSupportUI.csproj b/GenericMathSupport/WinFormsUI/WinFormsUI.csproj similarity index 72% rename from GenericMathSupport/MathSupportUI/MathSupportUI.csproj rename to GenericMathSupport/WinFormsUI/WinFormsUI.csproj index e1a0735..afbe358 100644 --- a/GenericMathSupport/MathSupportUI/MathSupportUI.csproj +++ b/GenericMathSupport/WinFormsUI/WinFormsUI.csproj @@ -8,4 +8,8 @@ enable + + + + \ No newline at end of file diff --git a/README.md b/README.md index 184575d..aa64e6d 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ The following list of blog posts includes a link to the part of the repo with th [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/IssNotifyApiWrapper) * Generic Math Support [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/GenericMathSupport) * Part 1 - [What's a static abstract interface method in C#?](https://grantwinney.com/whats-a-static-abstract-interface-method-in-c/) - * Part 2 - What is operator overloading in C#? + * Part 2 - [How do I overload arithmetic, equality, and comparison operators in C#?](https://grantwinney.com/how-do-i-overload-operators-in-csharp/) * Part 3 - What is the new Generic Math support all about in C# 11? * [How do I convert my code from C# to VB.NET (or from VB.NET to C#)?](https://grantwinney.com/how-do-i-convert-my-code-from-c-to-vb-net-or-vice-versa/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/CSharpAndVbNetTogether) From 22a1d551e8d66249919c5fc4260b23b83a7f289b Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Tue, 4 Apr 2023 23:39:53 -0400 Subject: [PATCH 07/49] add generic math support examples --- GenericMathSupport/GenericMathSupport.sln | 2 +- .../Container (base class).cs | 34 ++++ .../Container (interface).cs | 20 +++ .../Example 5 - Generic Math/GenericMath.cs | 156 ++++++++++++++++++ .../ContainerTests (base class).cs | 26 +++ .../ContainerTests (interface).cs | 23 +++ .../GenericMathTests.cs | 128 ++++++++++++++ ...WinFormsUI.csproj => ColorSwatchUI.csproj} | 0 README.md | 2 +- 9 files changed, 389 insertions(+), 2 deletions(-) create mode 100644 GenericMathSupport/GenericMathSupport/Example 4 - Generics/Container (base class).cs create mode 100644 GenericMathSupport/GenericMathSupport/Example 4 - Generics/Container (interface).cs create mode 100644 GenericMathSupport/GenericMathSupport/Example 5 - Generic Math/GenericMath.cs create mode 100644 GenericMathSupport/TestProject/Example 4 - Generics/ContainerTests (base class).cs create mode 100644 GenericMathSupport/TestProject/Example 4 - Generics/ContainerTests (interface).cs create mode 100644 GenericMathSupport/TestProject/Example 5 - Generic Math/GenericMathTests.cs rename GenericMathSupport/WinFormsUI/{WinFormsUI.csproj => ColorSwatchUI.csproj} (100%) diff --git a/GenericMathSupport/GenericMathSupport.sln b/GenericMathSupport/GenericMathSupport.sln index eb9ee21..eedd536 100644 --- a/GenericMathSupport/GenericMathSupport.sln +++ b/GenericMathSupport/GenericMathSupport.sln @@ -7,7 +7,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GenericMathSupport", "Gener EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnitTests", "TestProject\UnitTests.csproj", "{3BC3032E-EA50-4E3A-952D-D600FE57DA9F}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinFormsUI", "WinFormsUI\WinFormsUI.csproj", "{155CDFE8-E06E-419F-B865-DC929D0F82AE}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ColorSwatchUI", "WinFormsUI\ColorSwatchUI.csproj", "{155CDFE8-E06E-419F-B865-DC929D0F82AE}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/GenericMathSupport/GenericMathSupport/Example 4 - Generics/Container (base class).cs b/GenericMathSupport/GenericMathSupport/Example 4 - Generics/Container (base class).cs new file mode 100644 index 0000000..ed6c332 --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 4 - Generics/Container (base class).cs @@ -0,0 +1,34 @@ +namespace GenericMathSupport.Example4 +{ + public class Container + { + public T Identifier { get; set; } + + public string GetIdentifier() + => $"The identifier is: {Identifier}"; + } + + public class Box : Container + { + public Box(int identifier) + { + Identifier = identifier; + } + } + + public class Crate : Container + { + public Crate(string identifier) + { + Identifier = identifier; + } + } + + public class Folder : Container + { + public Folder(Guid identifier) + { + Identifier = identifier; + } + } +} diff --git a/GenericMathSupport/GenericMathSupport/Example 4 - Generics/Container (interface).cs b/GenericMathSupport/GenericMathSupport/Example 4 - Generics/Container (interface).cs new file mode 100644 index 0000000..4de6ba2 --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 4 - Generics/Container (interface).cs @@ -0,0 +1,20 @@ +namespace GenericMathSupport.Example4b +{ + public interface IContainer + { + T Identifier { get; set; } + string GetDescription(); + } + + public class Box : IContainer + { + public int Identifier { get; set; } + public string GetDescription() => $"The box id is {Identifier}."; + } + + public class Crate : IContainer + { + public Guid Identifier { get; set; } + public string GetDescription() => $"The guid is: {Identifier}"; + } +} diff --git a/GenericMathSupport/GenericMathSupport/Example 5 - Generic Math/GenericMath.cs b/GenericMathSupport/GenericMathSupport/Example 5 - Generic Math/GenericMath.cs new file mode 100644 index 0000000..c92345e --- /dev/null +++ b/GenericMathSupport/GenericMathSupport/Example 5 - Generic Math/GenericMath.cs @@ -0,0 +1,156 @@ +using System.Numerics; + +namespace GenericMathSupport.Example5 +{ + public class Box : IAdditionOperators, + IComparisonOperators + { + public int Width { get; private set; } + public int Height { get; private set; } + public int Depth { get; private set; } + private int Area { get => Width * Height * Depth; } + + public Box() { } + + public Box(int width, int height, int depth) + { + Width = width; + Height = height; + Depth = depth; + } + + public static Box operator +(Box box1, Box box2) + { + var widestWidth = Math.Max(box1.Width, box2.Width); + var deepestDepth = Math.Max(box1.Depth, box2.Depth); + var combinedHeight = box1.Height + box2.Height; + + return new Box(widestWidth, combinedHeight, deepestDepth); + } + + public static bool operator ==(Box? left, Box? right) + => left?.Area == right?.Area; + + public static bool operator !=(Box? left, Box? right) + => !(left == right); + + public static bool operator <(Box left, Box right) + => left.Area < right.Area; + + public static bool operator >(Box left, Box right) + => left.Area > right.Area; + + public static bool operator <=(Box left, Box right) + => left.Area <= right.Area; + + public static bool operator >=(Box left, Box right) + => left.Area >= right.Area; + } + + public class Folder : IAdditionOperators, + IComparisonOperators + { + public Folder() { } + + public Folder(List filesA, List filesB) + { + Files.AddRange(filesA); + Files.AddRange(filesB); + } + + public List Files { get; set; } = new List(); + + public static Folder operator +(Folder folder1, Folder folder2) + => new(folder1.Files, folder2.Files); + + public static bool operator ==(Folder? left, Folder? right) + => left?.Files.Count == right?.Files.Count; + + public static bool operator !=(Folder? left, Folder? right) + => !(left == right); + + public static bool operator <(Folder left, Folder right) + => left.Files.Count < right.Files.Count; + + public static bool operator >(Folder left, Folder right) + => right.Files.Count < left.Files.Count; + + public static bool operator <=(Folder left, Folder right) + => left.Files.Count <= right.Files.Count; + + public static bool operator >=(Folder left, Folder right) + => left.Files.Count >= right.Files.Count; + } + + public class Fraction : IAdditionOperators, + IComparisonOperators + { + public Fraction() { } + + public Fraction(int numerator, int denominator) + { + Numerator = numerator; + Denominator = denominator; + } + + public int Numerator { get; private set; } + public int Denominator { get; private set; } + public decimal Value + { + get + { + if (Denominator == 0) + throw new DivideByZeroException(); + return Numerator / (decimal)Denominator; + } + } + + public static Fraction operator +(Fraction f1, Fraction f2) + => new(f1.Numerator * f2.Denominator + f2.Numerator * f1.Denominator, f1.Denominator * f2.Denominator); + + public static bool operator ==(Fraction? left, Fraction? right) + => left?.Value == right?.Value; + + public static bool operator !=(Fraction? left, Fraction? right) + => !(left == right); + + public static bool operator <(Fraction left, Fraction right) + => left.Value < right.Value; + + public static bool operator >(Fraction left, Fraction right) + => left.Value > right.Value; + + public static bool operator <=(Fraction left, Fraction right) + => left.Value <= right.Value; + + public static bool operator >=(Fraction left, Fraction right) + => left.Value >= right.Value; + } + + public static class Utilities + { + public static T Sum(this IEnumerable items) where T : IAdditionOperators, new() + { + if (!items.Any()) + return new(); + + T sum = items.First(); + + foreach (var item in items.Skip(1)) + sum += item; + + return sum; + } + + public static T? Least(this IEnumerable items) where T : IComparisonOperators, new() + { + T? min = default; + + foreach (T item in items) + if (min == null || item < min) + min = item; + + return min; + } + } +} diff --git a/GenericMathSupport/TestProject/Example 4 - Generics/ContainerTests (base class).cs b/GenericMathSupport/TestProject/Example 4 - Generics/ContainerTests (base class).cs new file mode 100644 index 0000000..00be568 --- /dev/null +++ b/GenericMathSupport/TestProject/Example 4 - Generics/ContainerTests (base class).cs @@ -0,0 +1,26 @@ +using GenericMathSupport.Example4; + +namespace TestProject.Example4 +{ + public class ContainerTests + { + [Test] + public void GetIdentifierWorksForAllTypesOfContainers() + { + var boxId = 4; // chosen by fair dice roll; randomness guaranteed + var crateId = "absolutely_unique_id"; + var folderId = Guid.NewGuid(); + + var box = new Box(boxId); + var crate = new Crate(crateId); + var folder = new Folder(folderId); + + Assert.Multiple(() => + { + Assert.That(box.GetIdentifier(), Is.EqualTo($"The identifier is: {boxId}")); + Assert.That(crate.GetIdentifier(), Is.EqualTo($"The identifier is: {crateId}")); + Assert.That(folder.GetIdentifier(), Is.EqualTo($"The identifier is: {folderId}")); + }); + } + } +} \ No newline at end of file diff --git a/GenericMathSupport/TestProject/Example 4 - Generics/ContainerTests (interface).cs b/GenericMathSupport/TestProject/Example 4 - Generics/ContainerTests (interface).cs new file mode 100644 index 0000000..c0cfa1e --- /dev/null +++ b/GenericMathSupport/TestProject/Example 4 - Generics/ContainerTests (interface).cs @@ -0,0 +1,23 @@ +using GenericMathSupport.Example4b; + +namespace TestProject.Example4b +{ + public class ContainerTests + { + [Test] + public void GetDescriptionWorksForAllTypesOfContainers() + { + var boxId = 4; // chosen by fair dice roll; randomness guaranteed + var crateId = Guid.NewGuid(); + + var box = new Box { Identifier = boxId }; + var crate = new Crate { Identifier = crateId }; + + Assert.Multiple(() => + { + Assert.That(box.GetDescription(), Is.EqualTo($"The box id is {boxId}.")); + Assert.That(crate.GetDescription(), Is.EqualTo($"The guid is: {crateId}")); + }); + } + } +} \ No newline at end of file diff --git a/GenericMathSupport/TestProject/Example 5 - Generic Math/GenericMathTests.cs b/GenericMathSupport/TestProject/Example 5 - Generic Math/GenericMathTests.cs new file mode 100644 index 0000000..91ad966 --- /dev/null +++ b/GenericMathSupport/TestProject/Example 5 - Generic Math/GenericMathTests.cs @@ -0,0 +1,128 @@ +using GenericMathSupport.Example5; + +namespace TestProject.Example5 +{ + public class GenericMathTests + { + [Test] + public void CanFindTheSumOfAllTheThings() + { + var boxes = new List + { + new Box(2, 7, 2), + new Box(10, 10, 10), + new Box(3, 4, 3), + }; + + var folders = new List + { + new Folder { Files = new List { "c:/file1.txt", "c:/file2.txt" } }, + new Folder { Files = new List { "d:/fileA.txt", "d:/fileB.txt" } } + }; + + var fractions = new List + { + new Fraction(1, 3), + new Fraction(2, 6), + new Fraction(2, 5), + }; + + Assert.Multiple(() => + { + Assert.That(boxes.Sum().Height, Is.EqualTo(21)); + Assert.That(folders.Sum().Files, Has.Count.EqualTo(4)); + Assert.That(fractions.Sum().Numerator, Is.EqualTo(96)); // 96/90 + }); + } + + [Test] + public void CanPerformComparisonsOnBoxes() + { + var box1 = new Box(1, 2, 10); + var box2 = new Box(3, 4, 5); + + Assert.Multiple(() => + { + Assert.True(box1 != box2); + Assert.False(box1 == box2); + Assert.True(box1 < box2); + Assert.False(box1 > box2); + Assert.True(box1 <= box2); + Assert.False(box1 >= box2); + }); + } + + [Test] + public void CanPerformComparisonsOnFolders() + { + var folder1 = new Folder { Files = new List { "c:/file1.txt", "c:/file2.txt" } }; + var folder2 = new Folder { Files = new List { "d:/fileA.txt", "d:/fileB.txt" } }; + + Assert.Multiple(() => + { + Assert.True(folder1 == folder2); + Assert.False(folder1 != folder2); + Assert.False(folder1 > folder2); + Assert.False(folder1 < folder2); + Assert.True(folder1 >= folder2); + Assert.True(folder1 <= folder2); + }); + } + + [Test] + public void CanPerformComparisonsOnFractions() + { + var fraction1 = new Fraction(2, 5); + var fraction2 = new Fraction(4, 10); + + Assert.Multiple(() => + { + Assert.True(fraction1 == fraction2); + Assert.False(fraction1 != fraction2); + Assert.False(fraction1 > fraction2); + Assert.False(fraction1 < fraction2); + Assert.True(fraction1 >= fraction2); + Assert.True(fraction1 <= fraction2); + }); + } + + [Test] + public void CanFindTheLeastOfAllTheThings() + { + var boxes = new List + { + new Box(2, 1, 2), + new Box(10, 10, 10), + new Box(3, 4, 3), + }; + + var folders = new List + { + new Folder { Files = new List { "c:/file1.txt", "c:/file2.txt", "c:/file3.txt" } }, + new Folder { Files = new List { "d:/fileA.txt", "d:/fileB.txt" } } + }; + + var fractions = new List + { + new Fraction(2, 3), + new Fraction(1, 10), + new Fraction(3, 4), + }; + + Assert.Multiple(() => + { + Assert.That(boxes.Least().Height, Is.EqualTo(1)); + Assert.That(folders.Least().Files, Has.Count.EqualTo(2)); + Assert.That(fractions.Least().Denominator, Is.EqualTo(10)); + }); + } + + [Test] + public void GettingValueOfFraction_ThrowsException_WhenDenominatorIsZero() + { + var fraction = new Fraction(4, 0); + + Assert.Throws(() => { var _ = fraction.Value; }); + } + } +} \ No newline at end of file diff --git a/GenericMathSupport/WinFormsUI/WinFormsUI.csproj b/GenericMathSupport/WinFormsUI/ColorSwatchUI.csproj similarity index 100% rename from GenericMathSupport/WinFormsUI/WinFormsUI.csproj rename to GenericMathSupport/WinFormsUI/ColorSwatchUI.csproj diff --git a/README.md b/README.md index aa64e6d..2e3f845 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ The following list of blog posts includes a link to the part of the repo with th * Generic Math Support [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/GenericMathSupport) * Part 1 - [What's a static abstract interface method in C#?](https://grantwinney.com/whats-a-static-abstract-interface-method-in-c/) * Part 2 - [How do I overload arithmetic, equality, and comparison operators in C#?](https://grantwinney.com/how-do-i-overload-operators-in-csharp/) - * Part 3 - What is the new Generic Math support all about in C# 11? + * Part 3 - [What is Generic Math Support in C# 11?](https://grantwinney.com/whats-generic-math-support-in-csharp) * [How do I convert my code from C# to VB.NET (or from VB.NET to C#)?](https://grantwinney.com/how-do-i-convert-my-code-from-c-to-vb-net-or-vice-versa/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/CSharpAndVbNetTogether) * [How to use an application config file with a .NET Standard app and NUnit 3)](https://grantwinney.com/how-to-use-an-app-config-file-with-a-net-standard-app-and-nunit-3/) From 7d68edcc9f9d6e29163836955c917a8fd3089a3d Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Thu, 15 Jun 2023 18:22:38 -0400 Subject: [PATCH 08/49] add examples for deconstructors --- .../DeconstructUserDefinedTypes/Country.cs | 39 +++++++++++++++++++ .../DeconstructUserDefinedTypes.csproj | 10 +++++ .../ExtensionMethods.cs | 22 +++++++++++ .../DeconstructUserDefinedTypes/Floorplan.cs | 19 +++++++++ .../DeconstructUserDefinedTypes/Program.cs | 33 ++++++++++++++++ .../DeconstructingUserDefinedTypes.sln | 25 ++++++++++++ README.md | 2 + 7 files changed, 150 insertions(+) create mode 100644 DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Country.cs create mode 100644 DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/DeconstructUserDefinedTypes.csproj create mode 100644 DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/ExtensionMethods.cs create mode 100644 DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Floorplan.cs create mode 100644 DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Program.cs create mode 100644 DeconstructingUserDefinedTypes/DeconstructingUserDefinedTypes.sln diff --git a/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Country.cs b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Country.cs new file mode 100644 index 0000000..e6068aa --- /dev/null +++ b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Country.cs @@ -0,0 +1,39 @@ +namespace DeconstructUserDefinedTypes +{ + public class Country + { + public string Name { get; set; } + public List States { get; set; } = new List(); + public long TotalPopulation => States.Sum(s => s.Population); + + /// + /// Returns the name and population of the country. + /// + /// Name + /// Population + public void Deconstruct(out string name, out long pop) + { + name = Name; + pop = States.Sum(s => s.Population); + } + + /// + /// Returns the name, population, and number of states. + /// + /// Name + /// Population + /// Number of states + public void Deconstruct(out string name, out long pop, out int numberOfStates) + { + name = Name; + pop = States.Sum(s => s.Population); + numberOfStates = States.Count; + } + } + + public class State + { + public string Name { get; set; } + public long Population { get; set; } + } +} diff --git a/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/DeconstructUserDefinedTypes.csproj b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/DeconstructUserDefinedTypes.csproj new file mode 100644 index 0000000..74abf5c --- /dev/null +++ b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/DeconstructUserDefinedTypes.csproj @@ -0,0 +1,10 @@ + + + + Exe + net6.0 + enable + enable + + + diff --git a/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/ExtensionMethods.cs b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/ExtensionMethods.cs new file mode 100644 index 0000000..2e2b506 --- /dev/null +++ b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/ExtensionMethods.cs @@ -0,0 +1,22 @@ +using System.Drawing; + +namespace DeconstructUserDefinedTypes +{ + public static class ExtendedPoint + { + public static void Deconstruct(this Point p, out int x, out int y) + { + x = p.X; + y = p.Y; + } + } + + public static class ExtendedSize + { + public static void Deconstruct(this Size s, out int w, out int h) + { + w = s.Width; + h = s.Height; + } + } +} diff --git a/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Floorplan.cs b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Floorplan.cs new file mode 100644 index 0000000..ea400a0 --- /dev/null +++ b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Floorplan.cs @@ -0,0 +1,19 @@ +using System.Drawing; + +namespace DeconstructUserDefinedTypes +{ + internal class Furniture + { + public string Name { get; set; } + public Point Location { get; set; } + public Size Size { get; set; } + public Room Room { get; set; } + } + + internal class Room + { + public string Name { get; set; } + public int Floor { get; set; } + public Size Size { get; set; } + } +} diff --git a/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Program.cs b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Program.cs new file mode 100644 index 0000000..a707191 --- /dev/null +++ b/DeconstructingUserDefinedTypes/DeconstructUserDefinedTypes/Program.cs @@ -0,0 +1,33 @@ +using DeconstructUserDefinedTypes; +using System.Drawing; + + +// EXAMPLE 1 - DECONSTRUCTION ON USER-DEFINED TYPE + +var usa = new Country { Name = "United States" }; +usa.States.Add(new State { Name = "Utah", Population = 3380800 }); +usa.States.Add(new State { Name = "Maine", Population = 1385340 }); +usa.States.Add(new State { Name = "Florida", Population = 22244823 }); + +var (name, population) = usa; +//usa.Deconstruct(out var name, out var population); + +Console.WriteLine($"{name} has {population} people in it."); +// United States has 27010963 people in it. + +Console.WriteLine($"{usa.Name} has {usa.TotalPopulation} people in it."); + + +// EXAMPLE 2 - DECONSTRUCTION IN EXTENSION METHOD + +var couch = new Furniture +{ + Name = "Couch", + Location = new Point(3, 4), + Size = new Size(6, 2) +}; + +var (x, y) = couch.Location; +var (width, height) = couch.Size; + +Console.WriteLine($"The {couch.Name} is {width} feet by {height} feet."); diff --git a/DeconstructingUserDefinedTypes/DeconstructingUserDefinedTypes.sln b/DeconstructingUserDefinedTypes/DeconstructingUserDefinedTypes.sln new file mode 100644 index 0000000..4e91795 --- /dev/null +++ b/DeconstructingUserDefinedTypes/DeconstructingUserDefinedTypes.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33516.290 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeconstructUserDefinedTypes", "DeconstructUserDefinedTypes\DeconstructUserDefinedTypes.csproj", "{239815CE-0137-4BAC-8388-C99042828241}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {239815CE-0137-4BAC-8388-C99042828241}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {239815CE-0137-4BAC-8388-C99042828241}.Debug|Any CPU.Build.0 = Debug|Any CPU + {239815CE-0137-4BAC-8388-C99042828241}.Release|Any CPU.ActiveCfg = Release|Any CPU + {239815CE-0137-4BAC-8388-C99042828241}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {693BF3A5-D0C7-4BE5-9970-1B46C755F94A} + EndGlobalSection +EndGlobal diff --git a/README.md b/README.md index 2e3f845..517ff88 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ The following list of blog posts includes a link to the part of the repo with th * [A sample C# app for generating and verifying TOTP 2FA codes](https://grantwinney.com/a-sample-csharp-app-for-generating-and-verifying-totp-2fa-codes/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/2FAQrCode) +* [Adding deconstructors to your own (and built-in) types in C#... is it worth it?](https://grantwinney.com/adding-deconstructors-in-csharp-is-it-worth-it/) +[💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/DeconstructingUserDefinedTypes) * [An explanation of implicit and explicit conversion in C#](https://grantwinney.com/an-explanation-of-implicit-and-explicit-conversion-in-c/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/ImplicitExplicitOperators022015) * [An extension method for passing a column name to SqlDataReader.GetFieldValue in C#](https://grantwinney.com/an-extension-method-for-passing-a-column-name-to-sqldatareader-getfieldvalue-in-c/) From c1ce8f276fa65e03a611436ef00ff37bad9f2503 Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Mon, 26 Jun 2023 00:13:05 -0400 Subject: [PATCH 09/49] add nunit constraint model --- NUnitConstraintModel/NUnitConstraintModel.sln | 31 +++++ .../NUnitConstraintModel/Class1.cs | 18 +++ .../NUnitConstraintModel.csproj | 9 ++ .../NUnitConstraintModelTests.csproj | 25 ++++ .../NUnitConstraintModelTests/UnitTest1.cs | 127 ++++++++++++++++++ README.md | 2 + 6 files changed, 212 insertions(+) create mode 100644 NUnitConstraintModel/NUnitConstraintModel.sln create mode 100644 NUnitConstraintModel/NUnitConstraintModel/Class1.cs create mode 100644 NUnitConstraintModel/NUnitConstraintModel/NUnitConstraintModel.csproj create mode 100644 NUnitConstraintModel/NUnitConstraintModelTests/NUnitConstraintModelTests.csproj create mode 100644 NUnitConstraintModel/NUnitConstraintModelTests/UnitTest1.cs diff --git a/NUnitConstraintModel/NUnitConstraintModel.sln b/NUnitConstraintModel/NUnitConstraintModel.sln new file mode 100644 index 0000000..fcaa12c --- /dev/null +++ b/NUnitConstraintModel/NUnitConstraintModel.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.6.33801.468 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUnitConstraintModel", "NUnitConstraintModel\NUnitConstraintModel.csproj", "{ED6CEF33-FE8F-4FE0-A025-577A65C8834A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUnitConstraintModelTests", "NUnitConstraintModelTests\NUnitConstraintModelTests.csproj", "{738D1F59-89FE-4E85-A025-B6A6E2488CBF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {ED6CEF33-FE8F-4FE0-A025-577A65C8834A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ED6CEF33-FE8F-4FE0-A025-577A65C8834A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ED6CEF33-FE8F-4FE0-A025-577A65C8834A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ED6CEF33-FE8F-4FE0-A025-577A65C8834A}.Release|Any CPU.Build.0 = Release|Any CPU + {738D1F59-89FE-4E85-A025-B6A6E2488CBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {738D1F59-89FE-4E85-A025-B6A6E2488CBF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {738D1F59-89FE-4E85-A025-B6A6E2488CBF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {738D1F59-89FE-4E85-A025-B6A6E2488CBF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CF6364F8-E04B-4308-9159-9558475AA797} + EndGlobalSection +EndGlobal diff --git a/NUnitConstraintModel/NUnitConstraintModel/Class1.cs b/NUnitConstraintModel/NUnitConstraintModel/Class1.cs new file mode 100644 index 0000000..3144100 --- /dev/null +++ b/NUnitConstraintModel/NUnitConstraintModel/Class1.cs @@ -0,0 +1,18 @@ +namespace NUnitConstraintModel +{ + public class Employee + { + public string Name { get; set; } + public bool IsExec { get; set; } + public bool IsCEO { get; set; } + } + + public class Company + { + public List Employees { get; } = new List(); + + public List Execs => Employees.Where(x => x.IsExec).ToList(); + + public Employee CEO => Employees.Single(x => x.IsCEO); + } +} \ No newline at end of file diff --git a/NUnitConstraintModel/NUnitConstraintModel/NUnitConstraintModel.csproj b/NUnitConstraintModel/NUnitConstraintModel/NUnitConstraintModel.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/NUnitConstraintModel/NUnitConstraintModel/NUnitConstraintModel.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/NUnitConstraintModel/NUnitConstraintModelTests/NUnitConstraintModelTests.csproj b/NUnitConstraintModel/NUnitConstraintModelTests/NUnitConstraintModelTests.csproj new file mode 100644 index 0000000..df633ca --- /dev/null +++ b/NUnitConstraintModel/NUnitConstraintModelTests/NUnitConstraintModelTests.csproj @@ -0,0 +1,25 @@ + + + + net6.0 + enable + + false + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + diff --git a/NUnitConstraintModel/NUnitConstraintModelTests/UnitTest1.cs b/NUnitConstraintModel/NUnitConstraintModelTests/UnitTest1.cs new file mode 100644 index 0000000..d9d5e0c --- /dev/null +++ b/NUnitConstraintModel/NUnitConstraintModelTests/UnitTest1.cs @@ -0,0 +1,127 @@ +using NUnit.Framework; +using NUnitConstraintModel; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace NUnitConstraintModelTests +{ + public class Tests + { + [SetUp] + public void Setup() + { + } + + [Test] + public void EqualityTest() + { + var actualResult = 1; + var actualMessage = "Calculation Succeeded"; + + var expectedResult = 1; + + Assert.AreEqual(expectedResult, actualResult); + Assert.AreNotEqual("Calculation Failed", actualMessage); + + Assert.That(actualResult, Is.EqualTo(expectedResult)); + Assert.That(actualMessage, Is.Not.EqualTo("Calculation Failed")); + } + + [Test] + public void GreaterOrLessTest() + { + var actualResult = 427; + var expectedMinPossibleValue = 100; + var expectedMaxPossibleValue = 999; + + Assert.GreaterOrEqual(actualResult, expectedMinPossibleValue); + Assert.LessOrEqual(actualResult, expectedMaxPossibleValue); + + Assert.That(actualResult, Is.GreaterThanOrEqualTo(expectedMinPossibleValue)); + Assert.That(actualResult, Is.LessThanOrEqualTo(expectedMaxPossibleValue)); + } + + + [Test] + public void GreaterOrLessOopsIGoofedUpTest() + { + var actualResult1 = 2; + var actualResult2 = 20000; + var expectedMinPossibleValue = 100; + var expectedMaxPossibleValue = 999; + + Assert.GreaterOrEqual(expectedMinPossibleValue, actualResult1); + Assert.LessOrEqual(expectedMaxPossibleValue, actualResult2); + + //Assert.That(expectedMinPossibleValue, Is.GreaterThanOrEqualTo(actualResult1)); // um what? + //Assert.That(expectedMaxPossibleValue, Is.LessThanOrEqualTo(actualResult2)); + } + + [Test] + public void MultipleAssertsWithClassicSyntax() + { + int[] array = { 1, 2, 3 }; + + Assert.Multiple(() => + { + Assert.True(array.Count(x => x == 1) == 50); + Assert.IsTrue(array.Count(x => x > 1) == 500); + Assert.AreEqual(5000, array.Count(x => x < 100)); + }); + } + + [Test] + public void MultipleAssertsWithConstraintSyntax() + { + int[] array = { 1, 2, 3 }; + + Assert.Multiple(() => + { + Assert.That(array, Has.Exactly(50).EqualTo(1)); + Assert.That(array, Has.Exactly(500).GreaterThan(1)); + Assert.That(array, Has.Length.EqualTo(5000)); + }); + } + + [Test] + public void MultipleAssertsWithClassicSyntaxUsingClass() + { + var acme = new Company(); + acme.Employees.Add(new Employee { Name = "Sam" }); + acme.Employees.Add(new Employee { Name = "Sue", IsExec = true }); + acme.Employees.Add(new Employee { Name = "Wile E", IsExec = true, IsCEO = true }); + acme.Employees.Add(new Employee { Name = "Ron" }); + acme.Employees.Add(new Employee { Name = "Gale" }); + + Assert.Multiple(() => + { + Assert.AreEqual(2, acme.Execs.Count); // pass + Assert.AreEqual(3, acme.Execs.Count); // fail + Assert.Less(5, acme.Execs.Count); // pass + Assert.Greater(10, acme.Execs.Count); // fail + Assert.True(acme.CEO.Name.StartsWith("R")); // fail + }); + } + + [Test] + public void MultipleAssertsWithConstraintSyntaxUsingClass() + { + var acme = new Company(); + acme.Employees.Add(new Employee { Name = "Sam" }); + acme.Employees.Add(new Employee { Name = "Sue", IsExec = true }); + acme.Employees.Add(new Employee { Name = "Wile E", IsExec = true, IsCEO = true }); + acme.Employees.Add(new Employee { Name = "Ron" }); + acme.Employees.Add(new Employee { Name = "Gale" }); + + Assert.Multiple(() => + { + Assert.That(acme.Execs, Has.Count.EqualTo(2)); // pass + Assert.That(acme.Execs, Has.Count.EqualTo(3)); // fail + Assert.That(acme.Execs, Has.Count.LessThan(5)); // pass + Assert.That(acme.Execs, Has.Count.GreaterThan(10)); // fail + Assert.That(acme.CEO.Name, Does.StartWith("R")); // fail + }); + } + } +} diff --git a/README.md b/README.md index 517ff88..892544b 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ This repository contains some of the (usually lengthier) code samples from my bl The following list of blog posts includes a link to the part of the repo with the relevant code for that post. +* [5 reasons to use NUnit's constraint model](https://grantwinney.com/5-reasons-to-use-nunits-constraint-model) +[💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/NUnitConstraintModel) * [A sample C# app for generating and verifying TOTP 2FA codes](https://grantwinney.com/a-sample-csharp-app-for-generating-and-verifying-totp-2fa-codes/) [💾](https://github.com/grantwinney/BlogCodeSamples/tree/master/2FAQrCode) * [Adding deconstructors to your own (and built-in) types in C#... is it worth it?](https://grantwinney.com/adding-deconstructors-in-csharp-is-it-worth-it/) From 7887dd8ee052a3724544e98726237947b5bc1dbf Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Mon, 26 Jun 2023 01:15:14 -0400 Subject: [PATCH 10/49] add nunit constraint model --- .../NUnitConstraintModelTests/UnitTest1.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/NUnitConstraintModel/NUnitConstraintModelTests/UnitTest1.cs b/NUnitConstraintModel/NUnitConstraintModelTests/UnitTest1.cs index d9d5e0c..68d3279 100644 --- a/NUnitConstraintModel/NUnitConstraintModelTests/UnitTest1.cs +++ b/NUnitConstraintModel/NUnitConstraintModelTests/UnitTest1.cs @@ -100,7 +100,8 @@ public void MultipleAssertsWithClassicSyntaxUsingClass() Assert.AreEqual(3, acme.Execs.Count); // fail Assert.Less(5, acme.Execs.Count); // pass Assert.Greater(10, acme.Execs.Count); // fail - Assert.True(acme.CEO.Name.StartsWith("R")); // fail + Assert.True(acme.CEO.Name.StartsWith("R") + && acme.CEO.Name.EndsWith("n")); // fail }); } @@ -116,11 +117,11 @@ public void MultipleAssertsWithConstraintSyntaxUsingClass() Assert.Multiple(() => { - Assert.That(acme.Execs, Has.Count.EqualTo(2)); // pass - Assert.That(acme.Execs, Has.Count.EqualTo(3)); // fail - Assert.That(acme.Execs, Has.Count.LessThan(5)); // pass - Assert.That(acme.Execs, Has.Count.GreaterThan(10)); // fail - Assert.That(acme.CEO.Name, Does.StartWith("R")); // fail + Assert.That(acme.Execs, Has.Count.EqualTo(2)); // pass + Assert.That(acme.Execs, Has.Count.EqualTo(3)); // fail + Assert.That(acme.Execs, Has.Count.LessThan(5)); // pass + Assert.That(acme.Execs, Has.Count.GreaterThan(10)); // fail + Assert.That(acme.CEO.Name, Does.StartWith("R").And.EndsWith("n")); // fail }); } } From 073d1bdaa0892b789982b11b65ccfaca5a3a34f3 Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Wed, 26 Jul 2023 10:49:27 -0400 Subject: [PATCH 11/49] add minified file --- CompareInVSCode/minified.xml | 1 + 1 file changed, 1 insertion(+) create mode 100644 CompareInVSCode/minified.xml diff --git a/CompareInVSCode/minified.xml b/CompareInVSCode/minified.xml new file mode 100644 index 0000000..36ab0e1 --- /dev/null +++ b/CompareInVSCode/minified.xml @@ -0,0 +1 @@ +A list of reporting services reports that have subscriptionsAnthony Duguid0ReportServerNone9c5d5e18-ddee-41b3-ae49-8d83f261caf6ReportServer=Parameters!ReportServerUrl.Value=Parameters!all_value.Value=Parameters!DeliveryExtension.Value=Parameters!SubscriptionType.Value=Parameters!ReportFolder.Value=Parameters!ReportName.Value=Parameters!StatusGroup.Value=Parameters!EventStatus.Value=Parameters!SubscriptionStatus.Value=Parameters!LastStatus.Value=Parameters!IsDisabled.Value=Parameters!StartDateTime.Value=Parameters!EndDateTime.Value=Parameters!EmailLike.Value WITH report_status AS ( SELECT tbl.* FROM (VALUES ( 'rrRenderingError', 'Failure') , ( 'rsHttpRuntimeClientDisconnectionError', 'Failure') , ( 'rsInternalError', 'Failure') , ( 'rsInvalidDataSourceCredentialSetting', 'Failure') , ( 'rsProcessingAborted', 'Failure') , ( 'rsProcessingError', 'Failure') , ( 'rsRenderingExtensionNotFound', 'Failure') , ( 'rsReportServerDatabaseError', 'Failure') , ( 'rsSuccess', 'Success') ) tbl ([StatusName], [StatusGroup]) ) , report_users AS ( SELECT [UserID] , [UserName] , [SimpleUserName] = LOWER(RIGHT([UserName], (LEN([UserName]) - CHARINDEX('\', [UserName])))) FROM [dbo].[Users] WITH(NOLOCK) ) , report_catalog AS ( SELECT c.[ItemID] , c.[CreatedById] , c.[ModifiedById] , c.[Type] , c.[Name] , c.[Description] , c.[Parameter] , [ReportCreationDate] = c.[CreationDate] , [ReportModifiedDate] = c.[ModifiedDate] , [ReportFolder] = CASE WHEN c.Path = '/' + c.Name THEN '' ELSE SUBSTRING(c.[Path], 2, Len(c.[Path])-Len(c.[Name])-2) END , [ReportPath] = c.[Path] , [UrlPath] = @ReportServerUrl + 'Reports/Pages/Folder.aspx?ItemPath=%2f' , [ReportDefinition] = CONVERT(VARCHAR(MAX),CONVERT(VARBINARY(MAX), c.[content])) FROM [dbo].[Catalog] AS c WITH (NOLOCK) WHERE 1=1 AND c.[Type] IN(2, 4) ) , subscription_days AS ( SELECT tbl.* FROM (VALUES ( 'DaysOfMonth', 1, '1') , ( 'DaysOfMonth', 2, '2') , ( 'DaysOfMonth', 4, '3') , ( 'DaysOfMonth', 8, '4') , ( 'DaysOfMonth', 16, '5') , ( 'DaysOfMonth', 32, '6') , ( 'DaysOfMonth', 64, '7') , ( 'DaysOfMonth', 128, '8') , ( 'DaysOfMonth', 256, '9') , ( 'DaysOfMonth', 512, '10') , ( 'DaysOfMonth', 1024, '11') , ( 'DaysOfMonth', 2048, '12') , ( 'DaysOfMonth', 4096, '13') , ( 'DaysOfMonth', 8192, '14') , ( 'DaysOfMonth', 16384, '15') , ( 'DaysOfMonth', 32768, '16') , ( 'DaysOfMonth', 65536, '17') , ( 'DaysOfMonth', 131072, '18') , ( 'DaysOfMonth', 262144, '19') , ( 'DaysOfMonth', 524288, '20') , ( 'DaysOfMonth', 1048576, '21') , ( 'DaysOfMonth', 2097152, '22') , ( 'DaysOfMonth', 4194304, '23') , ( 'DaysOfMonth', 8388608, '24') , ( 'DaysOfMonth', 16777216, '25') , ( 'DaysOfMonth', 33554432, '26') , ( 'DaysOfMonth', 67108864, '27') , ( 'DaysOfMonth', 134217728, '28') , ( 'DaysOfMonth', 268435456, '29') , ( 'DaysOfMonth', 536870912, '30') , ( 'DaysOfMonth', 1073741824, '31') , ( 'DaysOfMonth', 8193, '1st and 14th') , ( 'DaysOfWeek', 1, 'Sun') , ( 'DaysOfWeek', 2, 'Mon') , ( 'DaysOfWeek', 4, 'Tues') , ( 'DaysOfWeek', 8, 'Wed') , ( 'DaysOfWeek', 16, 'Thurs') , ( 'DaysOfWeek', 32, 'Fri') , ( 'DaysOfWeek', 64, 'Sat') , ( 'DaysOfWeek', 62, 'Mon - Fri') , ( 'DaysOfWeek', 10, 'Mon - Wed') , ( 'DaysOfWeek', 24, 'Wed - Thurs') , ( 'DaysOfWeek', 120, 'Wed - Sat') , ( 'DaysOfWeek', 126, 'Mon - Sat') , ( 'DaysOfWeek', 127, 'Daily') , ( 'DayOfWeek', 1, 'Sun') , ( 'DayOfWeek', 127, 'Sun') , ( 'DayOfWeek', 2, 'Mon') , ( 'DayOfWeek', 10, 'Mon') , ( 'DayOfWeek', 62, 'Mon') , ( 'DayOfWeek', 126, 'Mon') , ( 'DayOfWeek', 127, 'Mon') , ( 'DayOfWeek', 4, 'Tue') , ( 'DayOfWeek', 10, 'Tue') , ( 'DayOfWeek', 62, 'Tue') , ( 'DayOfWeek', 126, 'Tue') , ( 'DayOfWeek', 127, 'Tue') , ( 'DayOfWeek', 8, 'Wed') , ( 'DayOfWeek', 10, 'Wed') , ( 'DayOfWeek', 24, 'Wed') , ( 'DayOfWeek', 62, 'Wed') , ( 'DayOfWeek', 120, 'Wed') , ( 'DayOfWeek', 126, 'Wed') , ( 'DayOfWeek', 127, 'Wed') , ( 'DayOfWeek', 16, 'Thr') , ( 'DayOfWeek', 24, 'Thr') , ( 'DayOfWeek', 62, 'Thr') , ( 'DayOfWeek', 120, 'Thr') , ( 'DayOfWeek', 126, 'Thr') , ( 'DayOfWeek', 127, 'Thr') , ( 'DayOfWeek', 32, 'Fri') , ( 'DayOfWeek', 62, 'Fri') , ( 'DayOfWeek', 120, 'Fri') , ( 'DayOfWeek', 126, 'Fri') , ( 'DayOfWeek', 127, 'Fri') , ( 'DayOfWeek', 64, 'Sat') , ( 'DayOfWeek', 120, 'Sat') , ( 'DayOfWeek', 126, 'Sat') , ( 'DayOfWeek', 127, 'Sat') ) tbl ([GroupName], [CodeNbr], [Label]) ) , subscription_schedule AS ( SELECT [ScheduleID] , [SchDaySun] = Sun , [SchDayMon] = Mon , [SchDayTue] = Tue , [SchDayWed] = Wed , [SchDayThr] = Thr , [SchDayFri] = Fri , [SchDaySat] = Sat , [ScheduleName] , [ScheduleStartDate] , [ScheduleEndDate] , [Flags] , [RecurrenceType] , [State] , [MinutesInterval] , [DaysInterval] , [WeeksInterval] , [DaysOfWeek] , [DaysOfMonth] , [Month] , [MonthlyWeek] , [ScheduleDays] FROM ( SELECT sc.[ScheduleID] , sd.[CodeNbr] , sd.[Label] , [ScheduleName] = CASE WHEN sc.[EventType] = 'SharedSchedule' THEN sc.[name] ELSE NULL END , [ScheduleStartDate] = sc.[StartDate] , [ScheduleEndDate] = sc.[EndDate] , sc.[Flags] , sc.[RecurrenceType] , sc.[State] , sc.[MinutesInterval] , sc.[DaysInterval] , sc.[WeeksInterval] , sc.[DaysOfWeek] , sc.[DaysOfMonth] , sc.[Month] , sc.[MonthlyWeek] , [ScheduleDays] = CASE WHEN sc.[DaysOfMonth] IS NOT NULL THEN COALESCE(dom.[Label], '(' + CAST(sc.[DaysOfMonth] AS VARCHAR(20)) + ') NOT CODED') WHEN sc.[DaysOfWeek] IS NOT NULL THEN COALESCE(dow.[Label], '(' + CAST(sc.[DaysOfWeek] AS VARCHAR(20)) + ') NOT CODED') END FROM [dbo].[Schedule] sc WITH (NOLOCK) LEFT JOIN subscription_days sd ON sc.[DaysOfWeek] = sd.[CodeNbr] AND sd.[GroupName] = 'DayOfWeek' LEFT JOIN subscription_days AS dom ON sc.[DaysOfMonth] = dom.[CodeNbr] AND dom.[GroupName] = 'DaysOfMonth' LEFT JOIN subscription_days AS dow ON sc.[DaysOfWeek] = dow.[CodeNbr] AND dow.[GroupName] = 'DaysOfWeek' ) sch PIVOT ( COUNT(sch.[Label]) FOR sch.[Label] IN ([Sun], [Mon], [Tue], [Wed], [Thr], [Fri], [Sat]) ) AS pvt ) , report_subscription AS ( SELECT s.[SubscriptionID] , s.[Report_OID] , [SubscriptionDescription] = s.[Description] , s.[ExtensionSettings] , s.[EventType] , s.[OwnerID] , s.[ModifiedByID] , s.[ModifiedDate] , [RunTime] = CONVERT(VARCHAR(5), s.[LastRunTime], 8) , [LastRunDate] = CONVERT(VARCHAR(11), s.[LastRunTime], 13) , [LastRunTime] = CAST(CONVERT(CHAR(16), s.[LastRunTime], 113) AS DATETIME) , [SubscriptionType] = CASE WHEN CAST(s.[DataSettings] AS NVARCHAR(50)) IS NOT NULL THEN 'Data-Driven' ELSE 'Standard' END , s.[DeliveryExtension] , s.[MatchData] , [SubscriptionLastStatus] = s.[LastStatus] , [StatusFail] = CASE WHEN s.[LastStatus] LIKE '%Mail sent%' THEN 'N' ELSE 'Y' END , [EmailSubject] = CASE CHARINDEX('<Name>SUBJECT</Name><Value>', s.ExtensionSettings) WHEN 0 THEN '' ELSE SUBSTRING(s.ExtensionSettings, LEN('<Name>SUBJECT</Name><Value>') + CHARINDEX('<Name>SUBJECT</Name><Value>', s.ExtensionSettings), CHARINDEX('</Value>', s.ExtensionSettings, CHARINDEX('<Name>SUBJECT</Name><Value>', s.ExtensionSettings) + 1) - (LEN('<Name>SUBJECT</Name><Value>') + CHARINDEX('<Name>SUBJECT</Name><Value>', s.ExtensionSettings))) END , [EmailTo] = SUBSTRING(s.ExtensionSettings, LEN('<Name>TO</Name><Value>') + CHARINDEX('<Name>TO</Name><Value>', s.ExtensionSettings), CHARINDEX('</Value>', s.ExtensionSettings, CHARINDEX('<Name>TO</Name><Value>', s.ExtensionSettings) + 1) - (LEN('<Name>TO</Name><Value>') + CHARINDEX('<Name>TO</Name><Value>', s.ExtensionSettings))) , [EmailCc] = CASE CHARINDEX('<Name>CC</Name><Value>', s.ExtensionSettings) WHEN 0 THEN '' ELSE SUBSTRING(s.ExtensionSettings, LEN('<Name>CC</Name><Value>') + CHARINDEX('<Name>CC</Name><Value>', s.ExtensionSettings), CHARINDEX('</Value>', s.ExtensionSettings, CHARINDEX('<Name>CC</Name><Value>', s.ExtensionSettings) + 1) - (LEN('<Name>CC</Name><Value>') + CHARINDEX('<Name>CC</Name><Value>', s.ExtensionSettings))) END , [EmailBcc] = CASE CHARINDEX('<Name>BCC</Name><Value>', s.ExtensionSettings) WHEN 0 THEN '' ELSE SUBSTRING(s.ExtensionSettings, LEN('<Name>BCC</Name><Value>') + CHARINDEX('<Name>BCC</Name><Value>', s.ExtensionSettings), CHARINDEX('</Value>', s.ExtensionSettings, CHARINDEX('<Name>BCC</Name><Value>', s.ExtensionSettings) + 1) - (LEN('<Name>BCC</Name><Value>') + CHARINDEX('<Name>BCC</Name><Value>', s.ExtensionSettings))) END , [EmailComment] = CASE CHARINDEX('<Name>Comment</Name><Value>', s.ExtensionSettings) WHEN 0 THEN '' ELSE SUBSTRING(s.ExtensionSettings, LEN('<Name>Comment</Name><Value>') + CHARINDEX('<Name>Comment</Name><Value>', s.ExtensionSettings), CHARINDEX('</Value>', s.ExtensionSettings, CHARINDEX('<Name>Comment</Name><Value>', s.ExtensionSettings) + 1) - (LEN('<Name>Comment</Name><Value>') + CHARINDEX('<Name>Comment</Name><Value>', s.ExtensionSettings))) END , [EmailIncludeLink] = CASE CHARINDEX('<Name>IncludeLink</Name><Value>', s.ExtensionSettings) WHEN 0 THEN '' ELSE SUBSTRING(s.ExtensionSettings, LEN('<Name>IncludeLink</Name><Value>') + CHARINDEX('<Name>IncludeLink</Name><Value>', s.ExtensionSettings), CHARINDEX('</Value>', s.ExtensionSettings, CHARINDEX('<Name>IncludeLink</Name><Value>', s.ExtensionSettings) + 1) - (LEN('<Name>IncludeLink</Name><Value>') + CHARINDEX('<Name>IncludeLink</Name><Value>', s.ExtensionSettings))) END , [EmailRenderFormat] = CASE CHARINDEX('<Name>RenderFormat</Name><Value>', s.ExtensionSettings) WHEN 0 THEN '' ELSE SUBSTRING(s.ExtensionSettings, LEN('<Name>RenderFormat</Name><Value>') + CHARINDEX('<Name>RenderFormat</Name><Value>', s.ExtensionSettings), CHARINDEX('</Value>', s.ExtensionSettings, CHARINDEX('<Name>RenderFormat</Name><Value>', s.ExtensionSettings) + 1) - (LEN('<Name>RenderFormat</Name><Value>') + CHARINDEX('<Name>RenderFormat</Name><Value>', s.ExtensionSettings))) END , [EmailPriority] = CASE CHARINDEX('<Name>Priority</Name><Value>', s.ExtensionSettings) WHEN 0 THEN '' ELSE SUBSTRING(s.ExtensionSettings, LEN('<Name>Priority</Name><Value>') + CHARINDEX('<Name>Priority</Name><Value>', s.ExtensionSettings), CHARINDEX('</Value>', s.ExtensionSettings, CHARINDEX('<Name>Priority</Name><Value>', s.ExtensionSettings) + 1) - (LEN('<Name>Priority</Name><Value>') + CHARINDEX('<Name>Priority</Name><Value>', s.ExtensionSettings))) END , sch.[MinutesInterval] , sch.[DaysInterval] , sch.[WeeksInterval] , sch.[DaysOfWeek] , sch.[DaysOfMonth] , sch.[Month] , sch.[MonthlyWeek] , sch.[ScheduleName] , sch.[ScheduleDays] , sch.[SchDaySun] , sch.[SchDayMon] , sch.[SchDayTue] , sch.[SchDayWed] , sch.[SchDayThr] , sch.[SchDayFri] , sch.[SchDaySat] , sch.[ScheduleStartDate] , sch.[ScheduleEndDate] , sch.[Flags] , sch.[RecurrenceType] , sch.[State] , s.[LastStatus] , rs.[ScheduleID] , [IsDisabled] = CASE WHEN s.[LastStatus] = 'Disabled' THEN 1 ELSE 0 END FROM [dbo].[Subscriptions] AS s WITH (NOLOCK) LEFT JOIN [dbo].[Notifications] AS n WITH (NOLOCK) ON n.[SubscriptionID] = s.[SubscriptionID] AND s.[Report_OID] = n.[ReportID] LEFT JOIN [dbo].[ReportSchedule] AS rs WITH (NOLOCK) ON s.[SubscriptionID] = rs.[SubscriptionID] LEFT JOIN subscription_schedule AS sch ON rs.[ScheduleID] = sch.[ScheduleID] WHERE 1=1 AND (@all_value IN (@DeliveryExtension) OR s.[DeliveryExtension] IN(@DeliveryExtension)) ) SELECT c.[ItemID] , c.[Name] , c.[Description] , c.[Type] , c.[Parameter] , c.[ReportFolder] , c.[ReportPath] , [URL_ReportFolder] = c.[UrlPath] + c.[ReportFolder] + '&ViewMode=List' , [URL_Report] = @ReportServerUrl + 'Reports/report/' + c.[ReportFolder] + '%2f' + c.[Name] , [URL] = @ReportServerUrl + 'Reports/manage/catalogitem/editsubscription' + c.[ReportPath] + '?id=' + CAST(s.[SubscriptionID] AS VARCHAR(80)) , [URL2] = @ReportServerUrl + 'Reports/Pages/Report.aspx?ItemPath=' + c.[ReportPath] + '&SelectedTabId=SubscriptionsTab' , [ReportCreatedBy] = urc.[SimpleUserName] , c.[ReportCreationDate] , [ReportModifiedBy] = urm.[SimpleUserName] , c.[ReportModifiedDate] , [SubscriptionOwner] = usc.[SimpleUserName] , [SubscriptionModifiedBy] = usm.[SimpleUserName] , [SubscriptionModifiedDate] = s.[ModifiedDate] , s.[SubscriptionID] , s.[SubscriptionDescription] , s.[ExtensionSettings] , s.[EventType] , s.[EmailSubject] , s.[EmailTo] , s.[EmailCc] , s.[EmailBcc] , s.[EmailComment] , s.[EmailIncludeLink] , s.[EmailRenderFormat] , s.[EmailPriority] , s.[DeliveryExtension] , [DeliveryExtensionImage] = CASE WHEN s.[DeliveryExtension] = 'Report Server Email' THEN 'email' WHEN s.[DeliveryExtension] = 'Report Server FileShare' THEN 'folder_table' ELSE '' END , s.[SubscriptionType] , s.[SubscriptionLastStatus] , s.[StatusFail] , s.[MatchData] , s.[RunTime] , s.[LastRunDate] , s.[LastRunTime] , s.[MinutesInterval] , s.[DaysInterval] , s.[WeeksInterval] , s.[DaysOfWeek] , s.[DaysOfMonth] , s.[Month] , s.[MonthlyWeek] , [JobName] = NULL , s.[ScheduleName] , s.[ScheduleDays] , s.[SchDaySun] , s.[SchDayMon] , s.[SchDayTue] , s.[SchDayWed] , s.[SchDayThr] , s.[SchDayFri] , s.[SchDaySat] , s.[ScheduleStartDate] , s.[ScheduleEndDate] , s.[Flags] , s.[RecurrenceType] , s.[State] , [EventStatus] = el.[Status] , [EventDateTime] = el.[TimeEnd] , s.[LastStatus] , s.[ScheduleID] FROM report_catalog AS c INNER JOIN report_subscription AS s ON s.[Report_OID] = c.[ItemID] LEFT JOIN ( SELECT b.[ReportID] , b.[Status] , b.[TimeEnd] , [LastRunTime] = CAST(CONVERT(CHAR(16), b.[TimeEnd], 113) AS DATETIME) FROM [dbo].[ExecutionLog] AS b WITH (NOLOCK) INNER JOIN (SELECT [ReportID], MAX([TimeEnd]) AS [TimeEnd] FROM [dbo].[ExecutionLog] WITH (NOLOCK) GROUP BY [ReportID]) a ON b.[ReportID] = a.[ReportID] AND b.[TimeEnd] = a.[TimeEnd] GROUP BY b.[ReportID] , b.[Status] , b.[TimeEnd] ) AS el ON el.[ReportID] = c.[ItemID] LEFT JOIN report_status AS rs ON el.[Status] = rs.[StatusName] LEFT JOIN report_users AS urc ON c.[CreatedById] = urc.[UserID] LEFT JOIN report_users AS urm ON c.[ModifiedById] = urm.[UserID] LEFT JOIN report_users AS usc ON s.[OwnerID] = usc.[UserID] LEFT JOIN report_users AS usm ON s.[ModifiedByID] = usm.[UserID] WHERE 1=1 AND s.[SubscriptionType] IN(@SubscriptionType) AND (@all_value IN (@ReportFolder) OR c.[ReportFolder] IN(@ReportFolder)) AND (@all_value IN(@ReportName) OR c.[Name] IN(@ReportName)) AND (@all_value IN(@StatusGroup) OR rs.[StatusGroup] IN(@StatusGroup)) AND (@all_value IN(@EventStatus) OR el.[Status] IN(@EventStatus)) AND (@all_value IN(@SubscriptionStatus) OR s.[SubscriptionLastStatus] LIKE '%' + @SubscriptionStatus + '%') AND (@all_value IN(@LastStatus) OR s.[LastStatus] IN(@LastStatus)) AND (@IsDisabled IS NULL OR s.[IsDisabled] = @IsDisabled) --AND (@IsDisabled IS NULL OR CASE WHEN s.[ScheduleEndDate] IS NULL THEN 0 WHEN s.[ScheduleEndDate] IS NOT NULL THEN 1 END = @IsDisabled) AND (el.[TimeEnd] >= @StartDateTime OR @StartDateTime IS NULL) AND (el.[TimeEnd] <= @EndDateTime OR @EndDateTime IS NULL) AND ( (SUBSTRING(s.[ExtensionSettings], LEN('<Name>TO</Name><Value>') + CHARINDEX('<Name>TO</Name><Value>', s.[ExtensionSettings]), CHARINDEX('</Value>', s.[ExtensionSettings], CHARINDEX('<Name>TO</Name><Value>', s.[ExtensionSettings]) + 1) - (LEN('<Name>TO</Name><Value>') + CHARINDEX('<Name>TO</Name><Value>', s.[ExtensionSettings]))) LIKE '%' + @EmailLike + '%' OR @EmailLike IS NULL ) OR ( CASE CHARINDEX('<Name>CC</Name><Value>', s.[ExtensionSettings]) WHEN 0 THEN '' ELSE SUBSTRING(s.[ExtensionSettings], LEN('<Name>CC</Name><Value>') + CHARINDEX('<Name>CC</Name><Value>', s.[ExtensionSettings]), CHARINDEX('</Value>', s.[ExtensionSettings], CHARINDEX('<Name>CC</Name><Value>', s.[ExtensionSettings]) + 1) - (LEN('<Name>CC</Name><Value>') + CHARINDEX('<Name>CC</Name><Value>', s.[ExtensionSettings]))) END LIKE '%' + @EmailLike + '%' ) OR ( CASE CHARINDEX('<Name>BCC</Name><Value>', s.[ExtensionSettings]) WHEN 0 THEN '' ELSE SUBSTRING(s.[ExtensionSettings], LEN('<Name>BCC</Name><Value>') + CHARINDEX('<Name>BCC</Name><Value>', s.[ExtensionSettings]), CHARINDEX('</Value>', s.[ExtensionSettings], CHARINDEX('<Name>BCC</Name><Value>', s.[ExtensionSettings]) + 1) - (LEN('<Name>BCC</Name><Value>') + CHARINDEX('<Name>BCC</Name><Value>', s.[ExtensionSettings]))) END LIKE '%' + @EmailLike + '%') ) trueItemIDSystem.GuidNameSystem.StringDescriptionSystem.StringTypeSystem.Int32ParameterSystem.StringReportFolderSystem.StringReportPathSystem.StringURL_ReportFolderSystem.StringURL_ReportSystem.StringURLSystem.StringURL2System.StringReportCreatedBySystem.StringReportCreationDateSystem.DateTimeReportModifiedBySystem.StringReportModifiedDateSystem.DateTimeSubscriptionOwnerSystem.StringSubscriptionModifiedBySystem.StringSubscriptionModifiedDateSystem.DateTimeSubscriptionIDSystem.GuidSubscriptionDescriptionSystem.StringExtensionSettingsSystem.StringEventTypeSystem.StringEmailSubjectSystem.StringEmailToSystem.StringEmailCcSystem.StringEmailBccSystem.StringEmailCommentSystem.StringEmailIncludeLinkSystem.StringEmailRenderFormatSystem.StringEmailPrioritySystem.StringDeliveryExtensionSystem.StringDeliveryExtensionImageSystem.StringSubscriptionTypeSystem.StringSubscriptionLastStatusSystem.StringStatusFailSystem.StringMatchDataSystem.StringRunTimeSystem.StringLastRunDateSystem.StringLastRunTimeSystem.DateTimeMinutesIntervalSystem.Int32DaysIntervalSystem.Int32WeeksIntervalSystem.Int32DaysOfWeekSystem.Int32DaysOfMonthSystem.Int32MonthSystem.Int32MonthlyWeekSystem.Int32JobNameSystem.Int32ScheduleNameSystem.StringScheduleDaysSystem.StringSchDaySunSystem.Int32SchDayMonSystem.Int32SchDayTueSystem.Int32SchDayWedSystem.Int32SchDayThrSystem.Int32SchDayFriSystem.Int32SchDaySatSystem.Int32ScheduleStartDateSystem.DateTimeScheduleEndDateSystem.DateTimeFlagsSystem.Int32RecurrenceTypeSystem.Int32StateSystem.Int32EventStatusSystem.StringEventDateTimeSystem.DateTimeLastStatusSystem.StringScheduleIDSystem.GuidReportServer=Parameters!all_value.Value WITH catalog_type_description AS ( SELECT tbl.* FROM (VALUES ( 1, 'Folder') , ( 2, 'Report') , ( 3, 'Resource') , ( 4, 'Linked Report') , ( 5, 'Data Source') , ( 6, 'Report Model') , ( 8, 'Shared Dataset') , ( 9, 'Report Part') ) tbl ([TypeID], [TypeDescription]) WHERE [TypeID] = 2 ) SELECT [Report_Folder] = SUBSTRING(c.[Path], 2, Len(c.[Path])-Len(c.[Name])-2) FROM [dbo].[Subscriptions] AS s WITH (NOLOCK) INNER JOIN [dbo].[Catalog] AS c WITH (NOLOCK) ON s.[Report_OID] = c.[ItemID] INNER JOIN catalog_type_description AS ctd ON ctd.[TypeID] = c.[Type] UNION SELECT @all_value ORDER BY 1 trueReport_FolderSystem.ObjectReportServer=Parameters!ReportFolder.Value=Parameters!all_value.Value SELECT [Report_Name] = c.[Name] FROM [dbo].[Subscriptions] AS s WITH (NOLOCK) INNER JOIN [dbo].[Catalog] AS c WITH (NOLOCK) ON s.[Report_OID] = c.[ItemID] WHERE 1=1 AND c.[Type] = 2 AND (SUBSTRING(c.[Path], 2, Len(c.[Path])-Len(c.[Name])-2) IN(@ReportFolder) OR @all_value IN (@ReportFolder)) UNION SELECT @all_value ORDER BY 1 trueReport_NameSystem.ObjectReportServer=Parameters!all_value.Value SELECT DISTINCT [Status] FROM [dbo].[ExecutionLog] WITH (NOLOCK) UNION SELECT @all_value trueStatusSystem.ObjectReportServer=Parameters!StartDateTime.Value=Parameters!EndDateTime.Value=Parameters!all_value.Value SELECT DISTINCT [s].[LastStatus] FROM [dbo].[Subscriptions] AS [s] WITH(NOLOCK) WHERE 1 = 1 AND ( [s].[LastRunTime] >= @StartDateTime OR @StartDateTime IS NULL ) AND ( [s].[LastRunTime] <= @EndDateTime OR @EndDateTime IS NULL ) UNION SELECT @all_value ORDER BY 1; LastStatusSystem.ObjectReportServer=Parameters!all_value.Value SELECT tbl.* FROM (VALUES ( 'Success') , ( 'Failure') ) tbl ([StatusGroup]) UNION SELECT @all_value StatusGroupSystem.Object0.6cm6cm0.6cm6cm0.6cm0.6cm7cm4.00813cm2.5cm3cm2.5cm1.15cm1.15cm1.15cm1.15cm1.15cm1.15cm1.15cm3.25cm3.25cm9.75cm6.25cm6cm6cm10cm2.25cm2.75cm2.25cm5.02646cm3cm10.5cm2.25cm2.25cm3.25cm2.67333cm3.25cm2.77917cm3.25cm6cm1cmtruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Folder0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Name0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Description0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueDelivery ExtensionTextbox20.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription TypeTextbox40.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueShared Name0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSchedule0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSun0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueMon0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueTue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueWed0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueThu0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueFri0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSat0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Run Time0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription End Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubject0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail To0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Cc0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Bcc0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Comment0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueInclude Link0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueRender Format0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetruePriority0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueParameters0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueLast Run Status0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Status0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Owner0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Modified By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttrue=Fields!SubscriptionModifiedDate.ValuegrpDetails2SubscriptionstrueSubscription Modified Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Created By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Created Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Modified By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Modified Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSchedule IDTextbox10.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pt0.6cmtruetrue0.75pt=Code.CandyStripe(True, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)EmbeddedfolderClip2pt2pt2pt2pttruetrue=Fields!ReportFolder.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)Embedded=IIF(Fields!Type.Value = 2, "report", "report_link")Clip2pt2pt2pt2pttruetrue=Fields!Name.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)Embedded=Fields!DeliveryExtensionImage.ValueClip2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)EmbeddedlogClip2pt2pt2pt2pttruetrue=Fields!SubscriptionDescription.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!DeliveryExtension.ValueDeliveryExtension0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionType.ValueSubscriptionType10.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleName.Value280.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleDays.Value270.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDaySun.Value = "0", "", Fields!RunTime.Value)260.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayMon.Value = "0", "", Fields!RunTime.Value)250.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayTue.Value = "0", "", Fields!RunTime.Value)240.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayWed.Value = "0", "", Fields!RunTime.Value)230.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayThr.Value = "0", "", Fields!RunTime.Value)220.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayFri.Value = "0", "", Fields!RunTime.Value)210.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDaySat.Value = "0", "", Fields!RunTime.Value)200.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EventDateTime.Value190.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleEndDate.Value180.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailSubject.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailTo.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailCc.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailBcc.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailComment.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailIncludeLink.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailRenderFormat.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailPriority.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!Parameter.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EventStatus.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionLastStatus.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionOwner.Value60.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionModifiedBy.Value50.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionModifiedDate.Value40.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportCreatedBy.Value30.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportCreationDate.Value20.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportModifiedBy.Value10.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportModifiedDate.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleID.ValueScheduleID0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pt=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowParameters.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.ValuetrueAftertruetrue=Fields!SubscriptionID.ValueDetail=Fields!ReportFolder.Value=Fields!Name.Value=Fields!EmailSubject.ValueDetail_CollectionOutputtrueSubscriptionsStart1.6cm137.43709cm0.75ptCalibri8pt1.6cm =IIF(IsNothing(Parameters!StartDateTime.Value) And IsNothing(Parameters!EndDateTime.Value), "", vbcrlf) + IIF(IsNothing(Parameters!StartDateTime.Value), "", "From: ") + Format(Parameters!StartDateTime.Value, Variables!FormatDateTime.Value) + IIF(IsNothing(Parameters!EndDateTime.Value), "", " To: ") + Format(Parameters!EndDateTime.Value, Variables!FormatDateTime.Value) 2ptTextbox82.75cm24.86472cm=IIF(Globals!RenderFormat.Name = "EXCELOPENXML", true, false)Middle25pt2pt2pt2ptEmbeddedssrsFitProportional24.86472cm2.75cm4.30514cm1=IIF(Globals!RenderFormat.Name = "EXCELOPENXML", true, false)0.75pt0.92063cmtruetruetruetruetrue="© " + Variables!CompanyName.Value + " " + Year(Today).ToString2pt=Variables!UrlReport.Value="javascript:void(window.open('" + Variables!UrlReportWithParameters.Value + "','_blank'))"Open the report with the current parameters in a separate tab2pt0.92063cm21cm2pt2pt2pt2pttruetruetrue ="Page: " & Globals!PageNumber.ToString() + " of " + Globals!TotalPages.ToString() + Environment.NewLine + "Produced By: " + Variables!UserName.Value + " @ " + Variables!ReportRunDateTime.Value 2pt21cm0.92063cm8.16986cm10.75pt21cm29.7cm11in8.5in0.25cm0.25cm0.25cm0.25cm1cm0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Folder0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Name0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Description0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueDelivery ExtensionTextbox20.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription TypeTextbox40.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueShared Name0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSchedule0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSun0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueMon0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueTue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueWed0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueThu0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueFri0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSat0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Run Time0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription End Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubject0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail To0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Cc0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Bcc0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Comment0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueInclude Link0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueRender Format0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetruePriority0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueParameters0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueLast Run Status0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Status0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Owner0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Modified By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttrue=Fields!SubscriptionModifiedDate.ValuegrpDetails2SubscriptionstrueSubscription Modified Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Created By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Created Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Modified By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Modified Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSchedule IDTextbox10.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pt0.6cmtruetrue0.75pt=Code.CandyStripe(True, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)EmbeddedfolderClip2pt2pt2pt2pttruetrue=Fields!ReportFolder.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)Embedded=IIF(Fields!Type.Value = 2, "report", "report_link")Clip2pt2pt2pt2pttruetrue=Fields!Name.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)Embedded=Fields!DeliveryExtensionImage.ValueClip2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)EmbeddedlogClip2pt2pt2pt2pttruetrue=Fields!SubscriptionDescription.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!DeliveryExtension.ValueDeliveryExtension0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionType.ValueSubscriptionType10.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleName.Value280.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleDays.Value270.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDaySun.Value = "0", "", Fields!RunTime.Value)260.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayMon.Value = "0", "", Fields!RunTime.Value)250.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayTue.Value = "0", "", Fields!RunTime.Value)240.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayWed.Value = "0", "", Fields!RunTime.Value)230.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayThr.Value = "0", "", Fields!RunTime.Value)220.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayFri.Value = "0", "", Fields!RunTime.Value)210.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDaySat.Value = "0", "", Fields!RunTime.Value)200.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EventDateTime.Value190.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleEndDate.Value180.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailSubject.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailTo.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailCc.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailBcc.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailComment.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailIncludeLink.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailRenderFormat.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailPriority.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!Parameter.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EventStatus.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionLastStatus.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionOwner.Value60.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionModifiedBy.Value50.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionModifiedDate.Value40.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportCreatedBy.Value30.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportCreationDate.Value20.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportModifiedBy.Value10.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportModifiedDate.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleID.ValueScheduleID0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pt=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowParameters.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.ValuetrueAftertruetrue=Fields!SubscriptionID.ValueDetail=Fields!ReportFolder.Value=Fields!Name.Value=Fields!EmailSubject.ValueDetail_CollectionOutputtrueSubscriptionsStart1.6cm137.43709cm0.75ptCalibri8pt1.6cm =IIF(IsNothing(Parameters!StartDateTime.Value) And IsNothing(Parameters!EndDateTime.Value), "", vbcrlf) + IIF(IsNothing(Parameters!StartDateTime.Value), "", "From: ") + Format(Parameters!StartDateTime.Value, Variables!FormatDateTime.Value) + IIF(IsNothing(Parameters!EndDateTime.Value), "", " To: ") + Format(Parameters!EndDateTime.Value, Variables!FormatDateTime.Value) 2ptTextbox82.75cm24.86472cm=IIF(Globals!RenderFormat.Name = "EXCELOPENXML", true, false)Middle25pt2pt2pt2ptEmbeddedssrsFitProportional24.86472cm2.75cm4.30514cm1=IIF(Globals!RenderFormat.Name = "EXCELOPENXML", true, false)0.75pt0.92063cmtruetruetruetruetrue="© " + Variables!CompanyName.Value + " " + Year(Today).ToString2pt=Variables!UrlReport.Value="javascript:void(window.open('" + Variables!UrlReportWithParameters.Value + "','_blank'))"Open the report with the current parameters in a separate tab2pt0.92063cm21cm2pt2pt2pt2pttruetruetrue ="Page: " & Globals!PageNumber.ToString() + " of " + Globals!TotalPages.ToString() + Environment.NewLine + "Produced By: " + Variables!UserName.Value + " @ " + Variables!ReportRunDateTime.Value 2pt21cm0.92063cm8.16986cm10.75pt21cm29.7cm11in8.5in0.25cm0.25cm0.25cm0.25cm1cm0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Folder0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Name0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Description0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueDelivery ExtensionTextbox20.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription TypeTextbox40.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueShared Name0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSchedule0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSun0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueMon0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueTue0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueWed0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueThu0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueFri0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSat0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Run Time0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription End Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubject0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail To0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Cc0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Bcc0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueEmail Comment0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueInclude Link0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueRender Format0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetruePriority0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueParameters0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueLast Run Status0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Status0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Owner0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSubscription Modified By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttrue=Fields!SubscriptionModifiedDate.ValuegrpDetails2SubscriptionstrueSubscription Modified Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Created By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Created Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Modified By0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueReport Modified Date0.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pttruetrueSchedule IDTextbox10.75pt=Variables!ColorTableHeaderBackground.ValueMiddle2pt2pt2pt2pt0.6cmtruetrue0.75pt=Code.CandyStripe(True, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)EmbeddedfolderClip2pt2pt2pt2pttruetrue=Fields!ReportFolder.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)Embedded=IIF(Fields!Type.Value = 2, "report", "report_link")Clip2pt2pt2pt2pttruetrue=Fields!Name.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)Embedded=Fields!DeliveryExtensionImage.ValueClip2pt2pt2pt2pttruetrue0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)EmbeddedlogClip2pt2pt2pt2pttruetrue=Fields!SubscriptionDescription.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!DeliveryExtension.ValueDeliveryExtension0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionType.ValueSubscriptionType10.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleName.Value280.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleDays.Value270.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDaySun.Value = "0", "", Fields!RunTime.Value)260.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayMon.Value = "0", "", Fields!RunTime.Value)250.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayTue.Value = "0", "", Fields!RunTime.Value)240.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayWed.Value = "0", "", Fields!RunTime.Value)230.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayThr.Value = "0", "", Fields!RunTime.Value)220.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDayFri.Value = "0", "", Fields!RunTime.Value)210.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=IIf(Fields!SchDaySat.Value = "0", "", Fields!RunTime.Value)200.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EventDateTime.Value190.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleEndDate.Value180.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailSubject.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailTo.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailCc.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailBcc.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailComment.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailIncludeLink.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailRenderFormat.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EmailPriority.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!Parameter.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!EventStatus.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionLastStatus.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionOwner.Value60.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionModifiedBy.Value50.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!SubscriptionModifiedDate.Value40.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportCreatedBy.Value30.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportCreationDate.Value20.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportModifiedBy.Value10.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ReportModifiedDate.Value0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pttruetrue=Fields!ScheduleID.ValueScheduleID0.75pt=Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value)2pt2pt2pt2pt=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowParameters.Value=Not Parameters!ShowEmailDetails.Value=Not Parameters!ShowEmailDetails.ValuetrueAftertruetrue=Fields!SubscriptionID.ValueDetail=Fields!ReportFolder.Value=Fields!Name.Value=Fields!EmailSubject.ValueDetail_CollectionOutputtrueSubscriptionsStart1.6cm137.43709cm0.75ptCalibri8pt1.6cm =IIF(IsNothing(Parameters!StartDateTime.Value) And IsNothing(Parameters!EndDateTime.Value), "", vbcrlf) + IIF(IsNothing(Parameters!StartDateTime.Value), "", "From: ") + Format(Parameters!StartDateTime.Value, Variables!FormatDateTime.Value) + IIF(IsNothing(Parameters!EndDateTime.Value), "", " To: ") + Format(Parameters!EndDateTime.Value, Variables!FormatDateTime.Value) 2ptTextbox82.75cm24.86472cm=IIF(Globals!RenderFormat.Name = "EXCELOPENXML", true, false)Middle25pt2pt2pt2ptEmbeddedssrsFitProportional24.86472cm2.75cm4.30514cm1=IIF(Globals!RenderFormat.Name = "EXCELOPENXML", true, false)0.75pt0.92063cmtruetruetruetruetrue="© " + Variables!CompanyName.Value + " " + Year(Today).ToString2pt=Variables!UrlReport.Value="javascript:void(window.open('" + Variables!UrlReportWithParameters.Value + "','_blank'))"Open the report with the current parameters in a separate tab2pt0.92063cm21cm2pt2pt2pt2pttruetruetrue ="Page: " & Globals!PageNumber.ToString() + " of " + Globals!TotalPages.ToString() + Environment.NewLine + "Produced By: " + Variables!UserName.Value + " @ " + Variables!ReportRunDateTime.Value 2pt21cm0.92063cm8.16986cm10.75pt21cm29.7cm11in8.5in0.25cm0.25cm0.25cm0.25cm1cm + + + + + + + 0.75pt + + + + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Report Folder + + + + + + + + 0.75pt + + + + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + + + + 0.75pt + + + + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Report Name + + + + + + + + 0.75pt + + + + + + + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + + + + 0.75pt + + + + + + + + + + + + + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + + + + 0.75pt + + + + + + + + + + + + + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Subscription Description + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Delivery Extension + + + + + + + Textbox2 + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Subscription Type + + + + + + + Textbox4 + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Shared Name + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Schedule + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Sun + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Mon + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Tue + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Wed + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Thu + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Fri + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Sat + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Subscription Run Time + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Subscription End Date + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Subject + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Email To + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Email Cc + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Email Bcc + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Email Comment + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Include Link + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Render Format + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Priority + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Parameters + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Last Run Status + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Subscription Status + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Subscription Owner + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Subscription Modified By + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + + =Fields!SubscriptionModifiedDate.Value + grpDetails2 + Subscriptions + + true + + + + + Subscription Modified Date + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Report Created By + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Report Created Date + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Report Modified By + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Report Modified Date + + + + + + + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Schedule ID + + + + + + + Textbox1 + + 0.75pt + + =Variables!ColorTableHeaderBackground.Value + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + + + + + + 0.75pt + + + + + =Code.CandyStripe(True, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + + Embedded + folder + Clip + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ReportFolder.Value + + + + + 0.75pt + + + + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + 0.75pt + + + + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + + Embedded + =IIF(Fields!Type.Value = 2, "report", "report_link") + Clip + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Name.Value + + + + + 0.75pt + + + + + + + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + 0.75pt + + + + + + + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + + Embedded + =Fields!DeliveryExtensionImage.Value + Clip + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + + + + + + 0.75pt + + + + + + + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + + Embedded + log + Clip + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SubscriptionDescription.Value + + + + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!DeliveryExtension.Value + + + + + + + DeliveryExtension + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SubscriptionType.Value + + + + + + + SubscriptionType1 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ScheduleName.Value + + + + + + + 28 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ScheduleDays.Value + + + + + + + 27 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =IIf(Fields!SchDaySun.Value = "0", "", Fields!RunTime.Value) + + + + + + + 26 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =IIf(Fields!SchDayMon.Value = "0", "", Fields!RunTime.Value) + + + + + + + 25 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =IIf(Fields!SchDayTue.Value = "0", "", Fields!RunTime.Value) + + + + + + + 24 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =IIf(Fields!SchDayWed.Value = "0", "", Fields!RunTime.Value) + + + + + + + 23 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =IIf(Fields!SchDayThr.Value = "0", "", Fields!RunTime.Value) + + + + + + + 22 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =IIf(Fields!SchDayFri.Value = "0", "", Fields!RunTime.Value) + + + + + + + 21 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =IIf(Fields!SchDaySat.Value = "0", "", Fields!RunTime.Value) + + + + + + + 20 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EventDateTime.Value + + + + + + + 19 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ScheduleEndDate.Value + + + + + + + 18 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EmailSubject.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EmailTo.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EmailCc.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EmailBcc.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EmailComment.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EmailIncludeLink.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EmailRenderFormat.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EmailPriority.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Parameter.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!EventStatus.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SubscriptionLastStatus.Value + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SubscriptionOwner.Value + + + + + + + 6 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SubscriptionModifiedBy.Value + + + + + + + 5 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!SubscriptionModifiedDate.Value + + + + + + + 4 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ReportCreatedBy.Value + + + + + + + 3 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ReportCreationDate.Value + + + + + + + 2 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ReportModifiedBy.Value + + + + + + + 1 + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ReportModifiedDate.Value + + + + + + + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!ScheduleID.Value + + + + + + + ScheduleID + + 0.75pt + + =Code.CandyStripe(False, Variables!ColorCandyStripeEvenRow.Value, Variables!ColorCandyStripeOddRow.Value) + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + =Not Parameters!ShowParameters.Value + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + =Not Parameters!ShowEmailDetails.Value + + + + + + + + + + + + + + + + true + After + true + true + + + + + =Fields!SubscriptionID.Value + + Detail + + + + =Fields!ReportFolder.Value + + + =Fields!Name.Value + + + =Fields!EmailSubject.Value + + + + + + Detail_Collection + Output + true + + + + Subscriptions + + Start + + 1.6cm + 137.43709cm + + 0.75pt + + Calibri + 8pt + + + + 1.6cm + + + + =IIF(IsNothing(Parameters!StartDateTime.Value) And IsNothing(Parameters!EndDateTime.Value), "", vbcrlf) + IIF(IsNothing(Parameters!StartDateTime.Value), "", "From: ") + Format(Parameters!StartDateTime.Value, Variables!FormatDateTime.Value) + IIF(IsNothing(Parameters!EndDateTime.Value), "", " To: ") + Format(Parameters!EndDateTime.Value, Variables!FormatDateTime.Value) + + + + 2pt + + + + Textbox8 + 2.75cm + 24.86472cm + + =IIF(Globals!RenderFormat.Name = "EXCELOPENXML", true, false) + + + + Middle + 25pt + 2pt + 2pt + 2pt + + + + Embedded + ssrs + FitProportional + 24.86472cm + 2.75cm + 4.30514cm + 1 + + =IIF(Globals!RenderFormat.Name = "EXCELOPENXML", true, false) + + + + + + + + 0.75pt + + + + + + + + 0.92063cm + true + true + + + true + true + true + + + + + ="© " + Variables!CompanyName.Value + " " + Year(Today).ToString + + + + 2pt + + + + + + =Variables!UrlReport.Value + + + + ="javascript:void(window.open('" + Variables!UrlReportWithParameters.Value + "','_blank'))" + + + + Open the report with the current parameters in a separate tab + + + + 2pt + + + + 0.92063cm + 21cm + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + true + + + + + ="Page: " & Globals!PageNumber.ToString() + " of " + Globals!TotalPages.ToString() + Environment.NewLine + "Produced By: " + Variables!UserName.Value + " @ " + Variables!ReportRunDateTime.Value + + + + 2pt + + + + 21cm + 0.92063cm + 8.16986cm + 1 + + + + + 0.75pt + + + + + + + 21cm + 29.7cm + 11in + 8.5in + 0.25cm + 0.25cm + 0.25cm + 0.25cm + 1cm + + + + + + + +
+ + +
+
+
+ + + +
+
+
+ + +
+ + +
+ +
+
+
+ + + + +

+Free JavaScripts provided
+by The JavaScript Source
+

+ + + + + +Source: https://web.archive.org/web/20000815215258/http://javascript.internet.com/games/maze.html \ No newline at end of file diff --git a/Languages/JavaScript/LegacyJSMaze/js maze 2 - copilot.htm b/Languages/JavaScript/LegacyJSMaze/js maze 2 - copilot.htm new file mode 100644 index 0000000..d698e52 --- /dev/null +++ b/Languages/JavaScript/LegacyJSMaze/js maze 2 - copilot.htm @@ -0,0 +1,357 @@ + + + + + + +

+

+        
+ + +
+ + +
+ +
+
+
+ + \ No newline at end of file diff --git a/Languages/JavaScript/LegacyJSMaze/js maze 3 - embellished.htm b/Languages/JavaScript/LegacyJSMaze/js maze 3 - embellished.htm new file mode 100644 index 0000000..fff2988 --- /dev/null +++ b/Languages/JavaScript/LegacyJSMaze/js maze 3 - embellished.htm @@ -0,0 +1,398 @@ + + +
+

+    

+
+ + + +
+ + +
+
+ + \ No newline at end of file diff --git a/Languages/JavaScript/LegacyJSMaze/readme.md b/Languages/JavaScript/LegacyJSMaze/readme.md new file mode 100644 index 0000000..57195e5 --- /dev/null +++ b/Languages/JavaScript/LegacyJSMaze/readme.md @@ -0,0 +1 @@ +[Bringing a 25 year old JS maze back to life · Grant Winney](https://grantwinney.com/old-js-maze-game/) From 13aeede0e368434ced72d47b231012db90f440f3 Mon Sep 17 00:00:00 2001 From: Grant Winney <1354059+grantwinney@users.noreply.github.com> Date: Thu, 4 Jun 2026 11:01:08 -0400 Subject: [PATCH 49/49] old js games --- .../LegacyGames/LegacyJSBattleship/batt1.gif | Bin 0 -> 871 bytes .../LegacyGames/LegacyJSBattleship/batt10.gif | Bin 0 -> 871 bytes .../LegacyJSBattleship/batt100.gif | Bin 0 -> 824 bytes .../LegacyJSBattleship/batt101.gif | Bin 0 -> 867 bytes .../LegacyJSBattleship/batt102.gif | Bin 0 -> 881 bytes .../LegacyJSBattleship/batt103.gif | Bin 0 -> 899 bytes .../LegacyGames/LegacyJSBattleship/batt2.gif | Bin 0 -> 865 bytes .../LegacyJSBattleship/batt201.gif | Bin 0 -> 851 bytes .../LegacyJSBattleship/batt202.gif | Bin 0 -> 834 bytes .../LegacyJSBattleship/batt203.gif | Bin 0 -> 849 bytes .../LegacyJSBattleship/batt204.gif | Bin 0 -> 850 bytes .../LegacyJSBattleship/batt205.gif | Bin 0 -> 850 bytes .../LegacyJSBattleship/batt206.gif | Bin 0 -> 855 bytes .../LegacyGames/LegacyJSBattleship/batt3.gif | Bin 0 -> 867 bytes .../LegacyGames/LegacyJSBattleship/batt4.gif | Bin 0 -> 864 bytes .../LegacyGames/LegacyJSBattleship/batt5.gif | Bin 0 -> 869 bytes .../LegacyGames/LegacyJSBattleship/batt6.gif | Bin 0 -> 873 bytes .../LegacyGames/LegacyJSBattleship/batt7.gif | Bin 0 -> 882 bytes .../LegacyGames/LegacyJSBattleship/batt8.gif | Bin 0 -> 882 bytes .../LegacyGames/LegacyJSBattleship/batt9.gif | Bin 0 -> 883 bytes .../battleship 1 - original.htm | 362 ++++++++++++++++ .../battleship 2 - copilot.htm | 406 ++++++++++++++++++ .../breakout 1 - original.txt | 359 ++++++++++++++++ .../breakout 2 - copilot.html | 293 +++++++++++++ .../LegacyJSBreakout/breakout 3 - final.htm | 291 +++++++++++++ .../LegacyJSConcentration/conc0.gif | Bin 0 -> 155 bytes .../LegacyJSConcentration/conc1.gif | Bin 0 -> 1702 bytes .../LegacyJSConcentration/conc10.gif | Bin 0 -> 1591 bytes .../LegacyJSConcentration/conc11.gif | Bin 0 -> 1754 bytes .../LegacyJSConcentration/conc12.gif | Bin 0 -> 1583 bytes .../LegacyJSConcentration/conc13.gif | Bin 0 -> 1658 bytes .../LegacyJSConcentration/conc14.gif | Bin 0 -> 1510 bytes .../LegacyJSConcentration/conc15.gif | Bin 0 -> 1644 bytes .../LegacyJSConcentration/conc16.gif | Bin 0 -> 1619 bytes .../LegacyJSConcentration/conc17.gif | Bin 0 -> 1691 bytes .../LegacyJSConcentration/conc18.gif | Bin 0 -> 1742 bytes .../LegacyJSConcentration/conc2.gif | Bin 0 -> 1781 bytes .../LegacyJSConcentration/conc3.gif | Bin 0 -> 1718 bytes .../LegacyJSConcentration/conc4.gif | Bin 0 -> 1606 bytes .../LegacyJSConcentration/conc5.gif | Bin 0 -> 1938 bytes .../LegacyJSConcentration/conc6.gif | Bin 0 -> 1462 bytes .../LegacyJSConcentration/conc7.gif | Bin 0 -> 1533 bytes .../LegacyJSConcentration/conc8.gif | Bin 0 -> 1467 bytes .../LegacyJSConcentration/conc9.gif | Bin 0 -> 1604 bytes .../concentration 1 - original.txt | 149 +++++++ .../concentration 2 - copilot.html | 155 +++++++ .../concentration 3 - final.html | 179 ++++++++ .../LegacyJSMaze/js maze 1 - original.txt | 0 .../LegacyJSMaze/js maze 2 - copilot.htm | 0 .../LegacyJSMaze/js maze 3 - final.htm} | 0 .../{ => LegacyGames}/LegacyJSMaze/readme.md | 0 51 files changed, 2194 insertions(+) create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt1.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt10.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt100.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt101.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt102.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt103.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt2.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt201.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt202.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt203.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt204.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt205.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt206.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt3.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt4.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt5.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt6.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt7.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt8.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt9.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/battleship 1 - original.htm create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBattleship/battleship 2 - copilot.htm create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 1 - original.txt create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 2 - copilot.html create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 3 - final.htm create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc0.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc1.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc10.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc11.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc12.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc13.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc14.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc15.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc16.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc17.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc18.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc2.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc3.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc4.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc5.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc6.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc7.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc8.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc9.gif create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 1 - original.txt create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 2 - copilot.html create mode 100644 Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 3 - final.html rename Languages/JavaScript/{ => LegacyGames}/LegacyJSMaze/js maze 1 - original.txt (100%) rename Languages/JavaScript/{ => LegacyGames}/LegacyJSMaze/js maze 2 - copilot.htm (100%) rename Languages/JavaScript/{LegacyJSMaze/js maze 3 - embellished.htm => LegacyGames/LegacyJSMaze/js maze 3 - final.htm} (100%) rename Languages/JavaScript/{ => LegacyGames}/LegacyJSMaze/readme.md (100%) diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt1.gif b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt1.gif new file mode 100644 index 0000000000000000000000000000000000000000..5f81ec92f702d464aa1fa7ab76b1fc93b7ed8952 GIT binary patch literal 871 zcmZ?wbhEHb6krfw_|5HYW{LPjqV7W^J)Ba&Voc TnQq3DS+Mv_i$gOT3xhQPQim18 literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt10.gif b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt10.gif new file mode 100644 index 0000000000000000000000000000000000000000..b92ff14258249b47d76b83dbd858754ccb1f4817 GIT binary patch literal 871 zcmZ?wbhEHb6krfw_|54jE2C74FMenAOPhB1`b&UMh+Q|4GRu7a|mn2oY=7N UaJzuA*Bp=6Zt0HVhc12I{%$_MOp*_+6jF5K;b5=^06p^_ A=l}o! literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt2.gif b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt2.gif new file mode 100644 index 0000000000000000000000000000000000000000..6572d5c624db6add9bd91fded16b3792dc359767 GIT binary patch literal 865 zcmZ?wbhEHb6krfw_|5)1uyLa(Bcm0ttOgY{yS@z^(s+?=??ZL)Y^(i4s#rG^Fu25SH^^AMW= literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt205.gif b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt205.gif new file mode 100644 index 0000000000000000000000000000000000000000..7d14e8f96626320b482994bb7da45bc44190aef7 GIT binary patch literal 850 zcmZ?wbhEHb6krfw_|Cx4((?a51H=DOFd70QG6ZxOfB=*i7&y!s7#TPmHY{*#Vq%qx ykx+Q((8ea~)H9oSz<^nxdh9YKcejVxM-7 L;#WEn0u0sw=e!j! literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt5.gif b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt5.gif new file mode 100644 index 0000000000000000000000000000000000000000..4b9de4bc4b9098d637547b75a93194ce852b7f99 GIT binary patch literal 869 zcmZ?wbhEHb6krfw_|5DNJ|iQ8H2|&G6Z-%F literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt6.gif b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt6.gif new file mode 100644 index 0000000000000000000000000000000000000000..eebe9f567abefed004a7c2d5ca0ae1b455f497af GIT binary patch literal 873 zcmZ?wbhEHb6krfw_|5y&45vPo;1QFFw_w VklS`9A}HN;o@s2{6G;IEYXEbp7XbhO literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt7.gif b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt7.gif new file mode 100644 index 0000000000000000000000000000000000000000..6a89a7339c0310dd07df3e4270819ebda9ff4e1e GIT binary patch literal 882 zcmZ?wbhEHb6krfw_|5nsrg0S0RTO*0$z literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt8.gif b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/batt8.gif new file mode 100644 index 0000000000000000000000000000000000000000..23946c465976e34c84d830742a817f27009b912a GIT binary patch literal 882 zcmZ?wbhEHb6krfw_|5*V3*EZ;70u?{5O{dBhsSvpPv@jXCnu{|&ibMepz1W$ f(A8>*=7DENCm6=N@n}s+KRMkk_1+l?0S0RT3pE*V3*EZ;70u?{5O{dBhsSc(ml>Cycuvw1+_dCHz>_n* gii-Ev%n(-gX|i>%>xn2*51gQpDb}lDpuk`a0Azw2c>n+a literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/battleship 1 - original.htm b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/battleship 1 - original.htm new file mode 100644 index 0000000..dcd1416 --- /dev/null +++ b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/battleship 1 - original.htm @@ -0,0 +1,362 @@ + + + + + + + + + + + + + + + + + + + + + + +

"...We have located the enemy fleet under the command of Admiral Kompüter, + but do not yet have visual contact. We suggest the best course of action is to fire + at random into their vicinity and listen for the impact of the shells...

+

...Our intelligence sources indicate the composition of the enemy fleet is the same + as our own, and has likewise been forced to resort to the same tactics as ourselves. In accordance with + the rules of war, fire will be exchanged one shell at a time and vessels lost will be announced + immediately...

+

...As per your orders you have been placed directly in command of the fleet's guns. Select the target + location by clicking in the left-hand grid above. The right hand grid shows the status of our own fleet. + Information as to the remaining strength of the enemy will be relayed directly to your status bar...

+

...We believe this battle will not be over until one or other fleet is sunk in it's entirety. Our + gunners + await your commands. We're counting on you, Sir..."

+ + + +

+

+ Free JavaScripts provided
+ by The JavaScript Source +
+
+

+ + \ No newline at end of file diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBattleship/battleship 2 - copilot.htm b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/battleship 2 - copilot.htm new file mode 100644 index 0000000..626652d --- /dev/null +++ b/Languages/JavaScript/LegacyGames/LegacyJSBattleship/battleship 2 - copilot.htm @@ -0,0 +1,406 @@ + + + + + + Battleship (Modern JS) + + + + +

+

Battleship

+
+
+
COMPUTER'S FLEET
+
+
+
+
PLAYER'S FLEET
+
+
+
+
+
+ + + + + \ No newline at end of file diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 1 - original.txt b/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 1 - original.txt new file mode 100644 index 0000000..f5c253b --- /dev/null +++ b/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 1 - original.txt @@ -0,0 +1,359 @@ + + + + + +
+
+ +
+
+ + + + + + + + + + + + + + + + + +
+BREAK OUT
+
+Ball: +Time: +
+
+
+ + + +

+Free JavaScripts provided
+by The JavaScript Source
+

+ + + + diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 2 - copilot.html b/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 2 - copilot.html new file mode 100644 index 0000000..46c2f39 --- /dev/null +++ b/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 2 - copilot.html @@ -0,0 +1,293 @@ + + + diff --git a/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 3 - final.htm b/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 3 - final.htm new file mode 100644 index 0000000..31140e1 --- /dev/null +++ b/Languages/JavaScript/LegacyGames/LegacyJSBreakout/breakout 3 - final.htm @@ -0,0 +1,291 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc0.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc0.gif new file mode 100644 index 0000000000000000000000000000000000000000..fb16fe70a2a3f8f997d005f683adc60785403f23 GIT binary patch literal 155 zcmV;M0A&A1Nk%w1VJHA70FeLyIXOAT#>W5u|2a81A^8La3IGEDEC2ui04M+`0007P zl#i*)?GFVoq1ubH-e8IihG0jDrb&M1%6aUIrSKfc^lRU1uA^>$;sHm$VMu7qAd{CR zv*LV4nbTy|cpYYe+g?}qy@hGxSs8Z56`!#++mdF*ckXws{+{RCu7$`VM_$N__ Jm`GRv06XDgL*oDd literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc1.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc1.gif new file mode 100644 index 0000000000000000000000000000000000000000..25aecd6602e7cf8ad04cee4c527ae8f910423273 GIT binary patch literal 1702 zcmeIx{ZA7I7zgl{zL!F;N2^5C4nC3=JAGwE+f!Wg6;+A#SKU|BmgOC!ajeuTSzd zY^YSD%}R!nvB-E4KA#T&fSew=90CA{7J^{89EM>P1gU6MDinfHS`@`02v@0a95=$S zk=AImz_10!E%ais5Goacq6Cf;Mk7I=1YxsSY&IK-q9j3(^g@yj6m{UZgCHC>n}a?b z4kwN~X`N1rqTCLLo7V02Ih{UQpU-cx_({_5_Xh|fKpO}IgTau^7NQM>hDdUVqK1Zs z5}{CnHjx+!g+@k3?%cVPbUKs4U^1DUbvkDQf!W#Fd5W6%`R3>67v1hfpKoz-@wwam z{QvxiKT!Ch0WZ41;6Gyo`8idWPDMKTS+6u+vrmHgH7ks|xt2If05%pL-(GN|N4BO1 zDfISpdzXW`4^G_zu6ObB*XrJwn~ofL38zwas5$;Kh38Wf(6oV*BlIHU-r8$Dc@>Cj zyc;ki&f+-LbjSqPLUOKpV&F8+y}rNLB!*k z)E^X9lt`~Ztx*nCfEP|flU*K8;hC!I%+=@I%gY+A;ioJPFtZZlKbaWrXP=dqKeKwj z((y<9>JP6XN!=4_+4`$%r;BuYwz6_p-&5}o3EoI)3e#n6P$;6AB57na6HJApBCWd1 z%vFD5iipki1uU~hbSauHUTQtCH4XBH)8``FvcQ6-{64JpQAf11p&bKcHB@Q}D@Ibx zI%0r|vF>L`^_&uZv&B^=ibaK1mq*iBjhOI0b^N<%w|Sj{lGXSCZ#pz>#WTdpaWA{L z9%3^$3#pgIv*=?6SWN-rl?Ffo?p*4JS(_?yI%3_$`rR$Z;SzZq?Q>9#Gk>Y#m@88P3ykOht*5BIDYtS2;YRepT(Jm~Ul=EnC< zQ#%r6Gs7&l$T^zHq!{Gknxpmy;$myZR)Jx1_ZBX*^oU6+V5e67I9C3+Mes*+T+2;c zhfRH!-C_?ji(IYtSpM<>tsw92pedZE!a7>tk?D8U^yP-b!ZIWk#SMr;`|d4)e}=A#Wu`u7mA z`>$k$W_=5CBK`fcwm(^Qdp@~>S*6W4S@&)?J=B*dB>ya=p^rM#f3h^jE>E2M#e^{! G75@UdV9yT# literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc10.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc10.gif new file mode 100644 index 0000000000000000000000000000000000000000..774c5e24eaefcddf2bd7b68450c6fc47eea04117 GIT binary patch literal 1591 zcmeIx{ZCU@7zgl6fwpRkw<2{1-9aqgl%Zn9smJUS`7AvBKmJKK<29p)J z1$32>c}3i+@?zDQG%1@6x~vJxD7r~k$yS+b8VzoDiF0RWnv=MNv%CLdKkUiLlh60$ z`RO@1TelVEGNx77Dhy&6L0}{)r6?&)OBqI5T#Oryctr(XT}{|*L|Yr-bdnrLdOVcR zNBRA9Fi3~PbTld)hPO$18_u^$`8J^wJd5)z!Sf7YaljIQB>_tTCk~thaFW0&mrNoWKfhwQ9p_XP&9~m8u1L`1Be$KMu0|uK|nwh0Uim%P={bKf<^>| z2oQt_F$n1pvLPh+|N8H4U=1eJzkdOf&SB4`YQ1;hc84@^_3<->gX3NCpH=3HBt!YR z`&Or0o3!HzrzOvhm(F^(ITn}cmDVBc{gditlJLFk**ghcwMEV9#*7^WippUBwI}cF zcdcEY6A6tyH6<#_on~Ti_-(^4NaT=A+?wbo@X zD$gzW@yn)OV5eY~26-h&l7a&Me#0NMHV@*5?~4Ei)&Fe^S@t~=nEoSQq?q1uW z)?w0#+M^dtL|G}Wt~vNZE#I_su&N5ju*c%xYR;wZ%L%B%az-Y(9H^nRVRrPAzD z&&3d=ea4+RnW#Ko+N;$3eJJGv-_*!Z4|=la;nGaJ5my&D^JZFN-#wT9(VCUFIu*+! zqtjAvyk5OfZq-QoDh^$Bh)Z%`PApi{+;_0&t-5k{t7;`zBv+cX`)c%uCiAT~R}8i% zJdmH)iP`#N_So7*qjr(i$`33_zl?R}SDQ7TG>Bzm2ae3GH6$-OTc0^DXFGch781JlNB`NM0+<~6@&T~_sOk$9bcuR)o% ztSu#3F2(b(IGH9d_DUU@U$)YmCsG`|am(Kcul(Xw5iPQ99Moq4R=E^?2I mr?u`lUmuz_UT}nx;cNc}S@LE3=o7qMkv!YGK2><+&Hn%lsD5AiGf}k>rhEPl<3QiOd3PGqS6~>SVf@lb;p{S0c28tONZs3%GV^Iu? zS>SjKC#)LBaT5nH8o()lAVE+7A@Qet;tKpV*h&K{b55un!1@qW#c%~9LMW=Dn2K2t zDvqm`B|)krsnWDg&;~^r6dfbUI8Db1!lWpZrcIimF-Bq-jbUO8W8$pJusY2eG^f#= zj`2Lsiv%wt0!<4vDlnMH;u6P%BvK(Mh5f$+rBZa5CUk-{NIFUoae|z4AXtK}-(D|p zD93SfeSs>GVSx;bWJDk%BB?W^&XPJu>VlPwFgP+w5mCm1jIvaWB4acWqsbUU#wpSy zNz{Nf99uiI|ay8i`unjF_B8@N@8jCWx9S z%^}H}qG_h2OR_G9byYTG#ZXj3)eKEDqK09HqhV`-His6Cnp#ZLW4aMDVzHPJH==Vy zWARvgPUhS*%{;);+${j$EMU6RD^B$ew16o|lgF!%tlyjX_#bzF+xcEu>%4?J^T(S9 zUEY8;<-c^V5^sJuyz5B`GI>e3SyfVTy0r^g;I8>7W#Xim`l{pNfu1chIs1LLp}n^N zhwJFZ3qN1@{ZsyyFB|@SRzk0IeD{SX|IbASzX6kT$~8}0it}<;R@H@LO4nF)MD$Ge zHrXCtIDE!kI6K|6cIw4rHQx}My7p7hv6>6S*6%;7d-2oahCQ9Ztshmr@LH|;i9KI7;v&E6oV?J_6!0u0We)x;h=BGQqbCDNc z`r?zZ<0HP|;yur`UTLS_Ny=`XeKpm(*}C5x1~;Va=qUSPMov25%V1gpb#)%+qLs$t z?CO)j)tBe5EXk@)y!s?gKHWWyWi&L51{+fbix6jU;=s6f*}?R4E^m(5=S#@nIe{$Q zbujAit(Stfg_W=k@TTdxzj6n_$&UGcrweJw%39@cvbTTTz9>UH_5QAz`^W#e#&Ouu zlvI4Eyv&iE50oytv~i|#u~*F8_LqTgJ4@F&rj8OGv~Ao4W<9vyIPaC$e;8VnlMfBn z7al4kG7=R3InVmxcgpPfZ`YP4GbP>g7XYWyN_Q93ecrq-@kF=HUAUkv&Fcor2ko2S z0U@~}9hx|DWc%}j;Oz3=H=&|H2~_IImulJfit=hBD?byFMCZP1js42s37|BiCug#w zNFV*f#U(2q^rSg=ZY=Yz{{72CWscV?c-OQ4*|z!HdDyheo_=jLXLI+g``yRH<87lzaMyeJHcAA~>|LdUMc$t{b$2 z8g90Dm!ApxhjQ0c)Ord&-Q4RMquT#ieI>_XZ_oP}OnDF(>qBh5kT^xcRna_OLX))2 zGvt}bq~A z-S&!YU&6oI3hf#4-3j|we{ITi)z_Zt|MHC+eSy&>`j5asdTr*+h9%2d^}8>9-cojN zDV{f7mHPFb(j@2mfzh3J?h19O&Z#~36Q22R9`v$%`6K3W@x#2}Gwzkwue7K3Ke=U} zSM=P*$B$-5F}n{EW=0Cno|ze0o7Q;sMt@?5r?DiVWw9&cjn!v!Z{A$u6>s$0?ZDdq E0ZiQ#bpQYW literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc12.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc12.gif new file mode 100644 index 0000000000000000000000000000000000000000..c19faf27bd5ed744bd3b4da9ba660e69cbef437c GIT binary patch literal 1583 zcmcJO>vPm(6vngAF4Lj;jeVCWs;yp&}w6#Ux3>5`u{YPM8T<#@UKEr3j5Kwtq?#j2%3h#|5e!q9?9f(Y11b-)Nh1a$;W1Z@N{LKs=PCYzdU zX$qq$mIfjkFg0LlYD`l_4JI@w>!PkJl&;Xa!sv>q16l`+4p<%VIuLXG>l$~LFi zykZ-KZIHI%7+{-(Z9>~3Y|H7$wshOFY#aY4QpA*qX$dn92`3+zl`*g20KfvkQHY}m z$2BbJIALJf!NiJ*RU0FWEdtvPCdPy_U}xL^S%uCEIG<2J5abZihhzov(_2X#F(4 z%<#vK%`2&1+M9Is+)VoVq@1A}hfZ0?rmi&dce*p*&Ffk9(5BtQ&Gf9GXZ=4e_kwvJ zlrAm&`jcI4xA&Dad76HCXPD?ACKcTMceck{yZU?<)FW*>V@7|SKkh!;K)pvQZ86dZ8$#M2bk8eb6!{{gaD-Mzcua|zdzc91$#OZbN z-6s*#R=sZL0~@Z77gOiZ)aJG1$&$|t4)=z?9oKk;J(K@x=P$W+;k6@t%N8xK8b%b; z%~fpWK;MYm)$7~^bX+zD87vIa7 zEd<&|dI_p4^QE%d?J2Xbd@`P1y=L6$(6mR1uHlalwsaR}j%sd9@5zoI&1ox$rQPK& zJSO_GKmO(|_Nn4fYIFO#*2QBdJDKu4on%smZ!PzVX<5nszOa7d6!PW~q4LbyWOz#| zo1sue_YilQQYOCa+N0L=R}qAlzPNi-?%}G{(=vwVZ}Cy_HMg=K9oSHw{%qZc-6NVS zyeGWhH?+?k8ETOy5cKlS>)VQJYNa&d_l6pp8FQgw*v}L5o3cZ-2b$a&z0_~hBjxoC zo=JOK-akHkVX|lB)QauJXG3-C`%h5!Hn literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc13.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc13.gif new file mode 100644 index 0000000000000000000000000000000000000000..f12c9681a2f8ba77d8cab024690eb322600713b1 GIT binary patch literal 1658 zcmeH`?@t>A7{{-)&|`Gn(I0Rykh?KAF0zcn5jh>My;A6IB+_Fpa6@f(0}E$n;Y7F9 z2&K2u&5N?78pcj7Xs27!h=iKGu!cJ5ATHQt+K`x3*i2w<8Jo_qUvA$1319i-lTW^R z-aSw9t>0N!O*qSdGGG;WG9U;-5Cp?8ilP`MgW(vAV17O_MZD(KO9a5JSNX4KcKA zf{{0j48zh8OT#RKv2tcwx7 z4-0uX8O+1s9**$vjE84E9?s+O2plBvn7|W)Ac#C9@~G$`L=P>Bf+&hX4-^arB>|Lz zyd(uBNeT;KSb)MJ7!HRcA{Y_jNLY$QBGDiijYeZZFeZVqXe1VkB_uE*L5VP!kaI#N zF&75s=H^lnAQb^qsZ=@wq$6ND3ZzqsbZRc0PA^4)r5LcZw6qcfR#sM46Ts@~%IfOs z;{@<{4tV_k{D&VXf6{;_T>!vGz}oC0+gK>>1NC`#uGWv7A5f{+-UHg9srQwNS-a8} zDtXqhW#3z_x(jNJo*BC4nz<;{l*%<{6+|xIau!#>e#55afgfjeFoPt1aP(gp>R~h;XL|y}BaNHfRSv+_U}>e0zb}tk zUCMTK{3Nod5_PAyYAb#5HRcPAAP7{1CeX^9`G+UFouKr2XwL1XWkj<_3nLsaeNsVsQc`sz|M)v zX5Wz;W6EQK>O_Cw$Q_q2-{~HM&3)(E1BLz9OrN3eITmUMpC5(y!|QM1`_MMYJ&?H< z`JFzXa^41tOY3fvNU5${t$JP6Vk?>;)>Gd3WG%d* zs32FbvAzAvn%-|)X7blRbaogvj}fCGmk{#xnB$6R$l`FQhWF@nnc$;ON1Of1gQ~M} zW2rmdXY8r|BiHcscHpZplILt2JXi}Y1)MI2Pt#a2Y07SfCkEO(%P*agjw~#i;E(fk zw#dCTW*_)HZ%w8KdBjS@n^WYAG8;B=h@BRyH5$$obt8(=e6(5L)Ot> zyLYL-H|tLHE1BvqvaF5Gcl=7D1l6wxgI(pvoV$|)r+cdr@7Foe#thhB)@D+5ZDf?E zN?%iuB^JNkWQ3+){z$t8I8M%TV&E^SAh4X7kqhSDvToBTY&vk>Z6%hhKido~ZzSVz>%`^55KURw#fM{sk48TG9Xj literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc14.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc14.gif new file mode 100644 index 0000000000000000000000000000000000000000..139ccadd074568140ca0b06cd60041ce31acaba6 GIT binary patch literal 1510 zcmeIx|4$Ql7{KxJMcXFBTw%b0ZQ+mzRVKT*byiI*MQH7i;l(AaK}I=H@HT~NZsIK8cI(qt|xo!ic3k;NrWZkqAX?Na05rkP>w`666GiZN833s#uF${Av|T^DGN{8d0K|? zUI)*}@Q}k0!qE_A2+=Y}$WI9ti{L;7he`0FLclAqGDalqqK^{&K9Q4gA|DV1K@`P^ zpNRwlk&ujy2waq9qY)t*5hctnVVLA_NQ6V8Nr|Q;)-SQF#IaH+B*_cWs3b|iZU>kQ z0}cnkaX=7&BmqSMng(7kU>M-@0lyyv0)UmVfRk~6=Rqh01ObR5h(tg%3M82Xfb9SI zFD_7^kmuiDP^gv_8nxCo_QAx{)dE~KJ2n{1%PX5$=%^T+I=NzfPFwQiF-_XqoXL?6 z%@C58pIct!>{NHB>Q0SkhtJj(8!csreT|cDPyUeRBA~fT{WJ7p{ciQK#$JPjj)9%5QE5TjMk0w=2tabDc|lWv6DJ ztDSu(aswI7>_WCQDKb94er{>{4yU=+^?)zWT;I5uTaEiiCW=}tUv{Oq=cmore^hlm zD19q+r6Onfth%_~)vij@+;ic1ANn=3SS#SgHQ#0%Co6Wm3G-JsvDlt$u`>&B}UnbNdOMDtET- z&Z8D04$8t-9vJUaM{ax+DLJ#Ondv_I{JQ-kt@B+sI}TRvZx|WX_tsQj z)nC~B^La8B>~VgUcI*6kFPGt5XAcr@>wm)+*AbVH-`*aVxx1~vH>|&8P1|*(BFN>~TzqZxp5}tt)gFsi z=hEhcl&Y?!smpz?26%Ph=vc8D`DJ3e>WRaxS8Do?on)qsbWLJK_Apf12WsE#PFl0u zJEnfB!S9|5f9y(JRY;G;S8TkZD9JXw-`W|+A=S3?TLmVW?= C-i2NO literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc15.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc15.gif new file mode 100644 index 0000000000000000000000000000000000000000..5bc0ce5ed60ba891dedb6f8884564d947c4f6e7d GIT binary patch literal 1644 zcmeIx|4$QV90%|#-wRa=0#;gVZ<;|#-6+8?r?}B76mBST>ckErtU|ydf)xlmBxO5G z(FPR{#Mu}?iZZQ=YZv^2m5vC;>@8c;sIpAqa{hN+qJ#BPJ7KwJRTcC*o;OSfe92$D8U2< zU@k@p7&TxRz+!;a0+s-*39#_W0uBcp0XPb9G~k>tE8z8jHvrxU-bOP5KmtI)$>2b6 z2pIN%|7}3^_6NNE3rNU3vPme*ywcg1+apTM_l_6#WgU(x-jmti-AA;>)V=Bnc@Td@ z5w>}M6uvDXrzPc3K87EUKheFhxaW0MaXN8$ZJTOI-%%-6Cw}BAo5@|8`rf7*{IxFU z%-YJSnZAt&Cgam8Cm*YOGKuBsO-OU#^K&hy*I2)5xc z&)yX_cYAj0sUu1>Jak@^G*j3_Em)n9=AGQFhz!d85!o{!+{OMj?)D%_o{=> zT9sXmftYw!BZ^>)-Ir?fDC>8Kf43(b>j?{q!2?w7@|#!7Bjly$_U_pBeZ;c%y$@sl z&To=0I-*Lx`$L8CL0OgP^zYufje&pQN5}44WFWNsq`YqZ3*+|Q{NF0?)crCWb-8@= h!s}^m;#S>Qb&5S0t+`zB=H&o;>CLZ!fdR<6e*n*AoD={6 literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc16.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc16.gif new file mode 100644 index 0000000000000000000000000000000000000000..c5cbd929751ddd288d988911da36df27b5c5913f GIT binary patch literal 1619 zcmb``|4-C*7zgkUI4NH(9E^%bb_ErR%-taliq1(PfaP$bk_DTQiA6;(8t}~GJeSR* zpkNs|iW=8#pwX0faO4SVICe4bA}pFBT3 zPtnH09IPr0NCN`ED-Zx8AcR3M1i=OxhMh3%f)N--3@C!&2*Mx;kDw@m+Kr$nj-ot@ ziZ4sM0khi`JBFghiQyQgVwevzzTkGdal;K1j;lDX;kX|s3@kw?1fdZmj*|pI8aR^l zlBAC$HInp`6hTlVNf{)H@=}yW(IiPz6m4+Qv`RZk(n(Q9=`?6g7e%>f+GUVkZkl!* zd~SxK7@B6BPR8Y8+-}AoF^tNvAj?85>vXa%7wdMj29D)GBOC`o9K>=E$GKdb+s!cy zXFM8Yj`MLmXoTk>hKE=l;(3_kVV*~L9_4wrn>R?j02vVkm=R!BKsW*A1-l?{oFE7y zB#I0pvaD$EiV`eII4|LXgi8`3Nu(rEl0gPR8J1<#Efc&-F-yR}j2juL=Mvs;U&PvZ~5)D$lEepsK15 z0DKJN<9$9s@QI?&5b$XLpxHG|6g5fGBu$ewgC79=cE6u=`US}^$bL!ktA4-FZ!qR3 z06_s14Pb!)K?GJ+8ZwC;53E|>0h z>uyG87@cKxj?;Nw7X)1pby3tMNta|@mUTtZRaN)-biZGJ)m8tWWW3yfm%9LfFMz2q zOL1@K^?J~p{^4kE*YFW2g;@8f=ftI^=#}byv(nsw$G2A%9OypVVQa9=%^m3bW%Tga zp~`)pR0mv?lN8_Q8ENU*e63*9v)T5YNa`U=CHW`V8eg01Y%-Uwb66dYkHFJI`p-@VD2yL-vQ{Q8Elq^kW7 zpALi+yc+vwJBx-rJ3a&eR$w^Vv=#RN=(Wzs+(Q+;6X~l5XNx~dUN{pR zlQUIl${Zbqf)>M88y*v$R{K*#RLJMn+_6b(eFJ8xgZF#@ZeOxL_YqW*Gt=t{4q5ZV zq$kMX=o&PqIBcGkV@w&ay!znK(Bi4rkl#0an{_-So^Hn2x*x&xTcrRprJmvd>{GLmnx%4dbpF`gnb3@yWwBq_LlZ3h*GDXyN5*Tc zLpR5w=8{brLmRd!D|Qy=9ZB9*e7SJh#@h%Hw;_LM(Uyp>^N%LB)s}@OwhhLHCY&DJ z2PUj+eJ51iRU2ED`6Za#6nA=Ea7kRiMH{C-**o9AgRr*8T?qiv{5T literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc17.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc17.gif new file mode 100644 index 0000000000000000000000000000000000000000..0a10cbf3a5f5a1adfe203e21fc4b7ce4a5940f2d GIT binary patch literal 1691 zcmc)J{ZkZm90%}~2R-1D2cJ++<$U1o;LKYEAh(n{XX*9S-LufRlMngsVm?9%7y$@~D>rFm1s@J0? z6KX>LWkpdNiZWJ{$=j@`^imL>?=M`Rohh9nt=VF?H8!*e9bQZ%63)u7KbX6s;UB(1sn%>5r`BJMc^cW(+OMza5;d71rh-y5=bnNaUk1) zOag@f3I!AzC=5_opm0DXfa(A$4^#p8KuFV&@eTu78nWJGAxA-uh8zPqZ|5LSLY{^^ z4+RDa-V~rnL6L@{2t_A!QqajjrvRN!=%S#DhAtQM(9pv`j|WOLlqo2CQ-%r&6&k7} zRK4khstc+LR8HsW)0B6UdHV5tnP3Y=sg*w=gb%JWAZIu;url~LS#)W2fxBHh#HLp|4ZIh`+W-F{lu9jM=w z@jAb^b{RS8i?t`payd&3HK{=orAF%m>4-0`n8rt4$4Zj{MvFK!7kRA;5{ z)MyTTd}f3-`plB}`FWOP)11P-khSfbOUh&G^D10^sojWQsOeVJ-TjsHE&rG*^ZS?~ zsbr1T*x=5NHhx*t)U{Ya3*L=R%xl_Rk>jx)ThYDwPWjB7+P+IyHQymeS=6%EOCAa@}abVMws*`@_8&0hWKR52#j`RynON#v5IzhNLb9!w} zL1#!_K*X}}m2qbu#qP>NOGa{S**#kxlne+n#Jq~`fG`BzHELsV;_R`O#rY*;svZ?; z&lGK;R?My~j#wT#dPPlF*u0wjlHoB6!n0y~*LAFLP1&TqJd4W+9uXe%qoqr`ltw=> z)J-39Um8Z7bL(u0b*bM_Bl`l!Y*>et8-97dxw+l%Qh__Icd)a^&=_C~EFJej$DQNG zj^}Oh?t-!ht1Zo2pOj6^>e#turoI2w+`h0cUJay`T`$C9P7Fr;bZgOuiLHa1OFu2T zUqP%(h-*0VaNc$F3i`vJLfyg__Wp*P9`y9k4z1SD?oNsCKR;=!MeSIB fIZ53? literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc18.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc18.gif new file mode 100644 index 0000000000000000000000000000000000000000..a3dceaa03e11cfddc08e607817a25dda5132ba5e GIT binary patch literal 1742 zcma)5k5f}u77iiUfIuSxO%XZ-ZR?{{$w~rIwi7}@NDYH@yJb@BsLxJyqYjIld7H{#_WoNZ-@K>*Ptyj>QJG0yI?6ZHtp6|@} zoilUho;h>wSy^3KVp+FXwOGYfih))OI>mLM*MmU^1_KCsF6co}0s)LVZq$R(K#c}& z6qwNn7CpCEz-9xxjoTHrQ@b7N>cHtFPA7;06YD?}i6}Br1ecDwjLfA3F79%HTR?7s zy4_K?o4MWK5va!#^?}bXa=*{-_ftRkgQ6Vt1%ts*5P~5c3AtD(B!@yY6aocdXDAHe zNH`RUxFR4%AR_6oBoN6aOJSE31}Q=%$tg)LNg@(R5=5hV95vvmn?@xPje-KCLP(2{ z4k0~428;xZj0jl>vdhRtkmN*BCqjyY0t6Tv5H?^eU~G(HBgPhtZ3K%l4l#_J7}sG; zFb2#C22oLBBg7sec8SFJr9#iSz`31s;L7w0Q9DosR0aybFeoE30ImZr0Jj5o14qCyaH7-#=m7Kp1^@xT z2w(xQ0oVcR0Gt3KfD6D4-~sRf_yK~Td;tgpL;xgEHmU3fFaQCN;pdi0Gv(d?-wK|b zz>`~0X& zqN=+z?&3^k`-{DwXphCed;aRN4^M3zZY_(ScpTJ`9{sYukS$nN< zHh#{Wf#&-sR{wivsywnOQ@mTRzOCN*%HNxHZ+v|IUnNcK#%`Op^Rups`9+&&H)Qmi zwtRnatn=u-RlT;gDdV1J_`r)<>rU*dI{bBSTFI5;gRf83Og~@n$G=_9(SDR;**bN~ zpvn3^u-6f|vF$$@OZu1pR=vA_wed#k`sVu+TmHH;uwd+~IUO^TW##Q@m8H|8j*nB1 z#;P4j$+Zi2l494D(Z?Nc9ZfeJe)tI*AIz*-vwT*)eNEh8ESB`vm%|?{JBs_?T-PD& zJN5KLOL@-HJ@xB5^4m4nV~Lx8N}DL@yE~g`*mP|jG9;(OPni2=KCj4hG_;-0cs_UL zHS?|PjoM6ycCaGn^~M9b(gO)|9LcKWLTlX9quq&x*9UsKmR8s1##CyJHO|naI?!#o z>=*kA$_fTln#|@4-xSl)sdIDFthJxU#g`aR{(^Uoq%{4g^{z}w-8N8dzFqs2W5IK) zruS>ok|)PAdJ8vTQ=4?@!jk%Xv83Y4gO|>wJoA&KO{1x8MLFZa?Yh#d`m?x>U7P)8 zS>>lE_lJLtWyKQ0d)tG6rWb4?O zGulIsm$#`m{d(}6?T6a(8j-cS1HC7%wYH7ivKO|+CGC3;ElFzg2AYnUJFEBJR=e(p zHI3Foh1#e$#S-6pGqdQ!lGd&7-*NsXHlDQDYE_wcz1Oi{Ee+u>)K`+amj2E+9gCay z>Tp|P%7(`Aj>Gq#;M~52M~Lv%I;-vEowq?AOAWsytx2+B!egaz~#SSUUOY z(1dZQ;V*0RE1FI^z7S`Iy^iAIv1K*p%Xi+aIXL-Xd}UgtJ}Sx4;q>Ta6TUFoqX4*@d~RDM~yw(GH#IOw4LE@xSo%Cp^jb zsc)>SCU%uUWl$3O7l1$-0ssjB4S*d0F93c3H~<6yqcDuYFb>0B81}<32g5uJM_^ch z5gb7X1o0w>A3-<-;SnT^AOeDj2%1Kss2@c+6y;Ggh@xQ>ji9KAVmO8o7)E259m6;b z<1s9VVPOmtFigZS3B%JIIPS!8FOG9K&f|Cx$HO=-;JAq65>BKs1mPkGo*=>m5g`bH zAS8l_5u}$Sd6Ep0WP~IIl9Wg?MpAx?;wUOeQDKS_C`zQL7)8kxoyOC2n5IRVmS{Rg z(=u%j+wBp%U9#I_cDro1C+v>2u)`rZ9J0faa5&S#PG`jF6r4`U>5Ms@38ypZWLSm~ z879UsGQ%VoCdn`<#>Ki^qRS<@TuGNJt= zw1gxjrC3@b7E8wDq%5c8L^6>`C6Z~WWa@waEnxYlfPY$mz-?$#R&hgUaI6>Pm2aO4 z1;!7-s~)fzv|B!*wU0b@t_+_WEGelx*nYIlU$e!_vBg)X=EiHxm1=a=Tgj<3rx86V%c@~@i<(_F#oId|ceEU_PbvAwz@stmQzT=uG`RJ%7t zZ3Xk^5Zd1|l>5-s_UK05-12Ej&0^1eXWEo2;8hg2X6xDPqGeljFOSA~ zcChEeb#E2&wHj78nPV;K*>nEw-ghbwUJbdnWGkBMZlmQ(Zda!_WAgif-Kq^^O(p&_ z@ICEwFF?v@^8ru%{7_=S@Og>piBAR#YCftuU9(#C%t{D?_s`a6frgf7@1KUn`m7ht zODb|;{S9St<$JW&fQ&BmEYE4Z(Zc@f`7WB<&AKzm59fX3nMdaKWab>Wb;<)Qtv0Ct z09@Ky)VkHyNcs-O$*fm>Rv7EsI7@=o^>I?Mc5d?r=AyPs0graYZ%|fVnWtfOA2>Az z(2yd1P}z7*?sGo(-ADQkyZfOpFS*|fXy?t3juCeRwxVC#jap=s= zp2L=+id$X5;vDtLrZVHKTbZ$J%G^Kt$K`F;^VoU!#PGe<9{n2Qty#A4vB9rwTFtfN zH=gTjIGPE**s(M=VV?3>O#5zzP89-|#c8S^_SNm2I_g=o*634wR%mUSRn1r{4r_94 zU4hDc^E-D>YZ~VdYYJ33cQDZlKkT}0+veN&Q}Iu<7ML7uUeeH!ud6Itj#%N+<=c-; z?lTUD`Y$=ALeO>9UCn|1>8)}{uQsUb$~;+q&I1Zw>buyfUz;6*GVZF{{BYj3p@4ww zYkRp*HIScA>6QYu^mSPH?qM`D&)RJp`^D7kJFC&XeZYEcqBnG(mtYpJt deqgZHJRDb7Y~8i2_^-IRs%8VLRzuMJe*>?Xf~x=k literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc3.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc3.gif new file mode 100644 index 0000000000000000000000000000000000000000..3297e7675d1be084cff1226d307502ada59688bf GIT binary patch literal 1718 zcmdthjZf4D7{~ED?ifAbw4z9Paa?)xs&KIz)7{Wa3k;~59E}Kcn1E$bESsKXLabY0 z^c1CTVCurK7$9~kQU|*Fw%x|vyz_0`&}kLjx=FTNGLxM%Y_}|nuKpYQ<&$rof8Z&r zc;i)PgWX^^L=Dde000Q;KnMgN2!tRA*1DHNbkka7YP22%t^Q55Y2 zX$+c-FRvrL z0_7EGugG}4-XMnsc^w|)iJ(9R1u7`gL6HecY%mxM2}DRBLn0lLn2^MVBrYWDcvU1- zky0fcqe`qQGpfw0il8c@>J`?K3;c!F?MKm=MRwI#cBoc{+)o56YMs(q5G!l(QpG70j^gh%5-9#m=Wm&lOUBN-zwLrc9dL9k_-*(VrAkWjNWfp-ECi5h|ONjO4w#!T7V4#4W@OyFC_KXk2KWZSe=^UpY7?!Dr_g- z-u><22U*uS>nZb#Lk8NGXD*$&EuxV9n=LT0+^*c!`t?vD)dy2{g(_8tAZB;uGI`hvL{{k}IL#G@~DNpBD zzO>3<*wkk~l38w#`8!Z}X?2}Fe(jwZ;?wf>WSik1bKmR=SMuD(H6`wXy59I=Wx$mY zU)$xLX!2Hoi`Epi+4d!!9|AqOi5F3Gv%UV0I8znah*?J~>r3G3l~BNzfULOOSpv&=VriS}$?(`>#Gx2)w!dCIi)W)SuHlb5;mdcs&Q3nLUy<3S zss6DuyI}Gt_`5Iv{Ls!@OU|)LU!1&nZ|`GMTL0*c(PORs$X)CB!kil^PqmLd89y#( z;}5?F(pe&)I$avddk`_Lmn1OmVJu-<_mHmw(Y| zvN^UZL5jIM8MryfO+hv9DaJXs)h3{zaVWm{OnXCK^Qx|KVo$r-VxEY}|NP5VM$4$&{9xRDet2y`S+ngQ&!sNkH=Q1fzc;`32l->D z@Zv$oLWXIKo0o%ETGkH^94UsLIF8|uCOazIc4md{)O_#y^alus-Gxa26?A#gQf~qX`f_(YX#E(ruaEER%I3CKsLCnV8tM|H1x%z4FfIr_WEH z`IZ2;xA2 z97O<%+ECPiqE0O$*CL2kYtw3-m{yAg*)Yt3VJwaU9LI3nf#WQWyY(p0&xhRS^nFO<$HJkmk9-+-F9pty@5sS%Y z#etP}T7%qHtA{aLnIMmiKx{UfgG8Jp>ZA~-)9E6Bi$YvMoXh27Nx)KoH6bj^x+%nM zLfvN69pv+na*rAH1o501~$NZ=_sPXXQ}=S_i$@Mgf90~6)x zKw92{@r<5lNZ!TpL4sgH1T!koT7kv{OCVgZ>IEwyFr>gxf{hX!Cc$AA9JJsJWD#6i z!DSU(jKJCi&MgG_{jAOJcKF>+zsKe0SU>0X`vQ6Vyw5N2{@}*{{?i541V1473y|~; zv_4!})Hs}!(HgP3a(=>)o)R9Z>s#ytmyU~jq)-$2ndrDYT)(=x6eu!k#N)-eSXZ=C z_5rP&viGV^yerdWe!4OGv^e|lR9X!1-Ywo2nV%vZZI>kF?9k3!Ux58C8d$U9`(CRk$z#y^SCiO|aa!nkx5l)xL4Lfb^M5!KTu*VZyUMzqCl zuj^EP5m!?@xG4+Di!Ocn1PUXDXX{&*@Ui;QmaC&Z*n#Hpn^BoFGjmb)uYa=Bd#AnE zZpgUned?C2C1d^f?e8}@Is z+$mX5cXVG~+KrALp1h-DE%#CvHeWK0pv&2hlUpX9U-==TX`msWBF+j!9FBRP+cWs7@M`7a&|^NUH@uS&Y$^jF>p!;DCNqHOg5 literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc5.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc5.gif new file mode 100644 index 0000000000000000000000000000000000000000..bc6f9dd1f8e679ebeea9928270622fd78efec612 GIT binary patch literal 1938 zcmd7SjZYir831rQ{<@g23mAF`nsQcxeS9V7WGT0%tGPgm4NDBT0i5(}KbhT?Ym(gdnz}hSIJ@UDt`W$pl22Xe%w*UH4Dy zr_-zFbno-Lx<`867i|agu?Dlktk_ii51>$h3IznnKmd>e7yu9eKmh;)0T=`jPzHmb z6ks5TgCGHd6a<10h(I!FMIi`-APRzL2x1_}2|+GchQTln!&2;n;Q$P?2n-`I@)Ha} za0KBHgh!Atf{Y=EfFcNraHxz#Q3^!`6ctf)0Y#TkbVaHq5J^&`D3PW`h7p}k(d80-J~0pw zSytpYk>|y5SR5M@r6QuZu&}VSw6wCavbwsuwzjspx%uS(TaG*d@+>HT$BH+%rWZ#- zlU^VxtFC*#cBDt_&*dEDsUy$Tm%D?L8!G=UufL*hpmfm?v;V`1cbkqTnF@~$%|@)< z7vAsF9^MEl+wNa2d&hCD@#I_zQt7_s-rHRnvRI#4wl@|9F65S7sjZ09__NIweNBzg zw;smot=A5|wRrKn%5Zh{i}xFMwj^I~;658r6prL15EmOe{mt#mNZCcuW=tlstE)#X z&5P(azrvee>97tqKVaW06KXYs(dHPfuEOy2;GF(KcExS=yU=A2)Z2z1t|S)~YqrGw z>~-}I+op=Uws%l2od5Sp^fRn& z-fr36QhSZy$CBOvtRE)*`i!bKCCgqrQW%#IsPG@V?jf~lT3g$Z-CjO=HsSk|?J8Yt zdNBG_f4T~QRGFTGuT^&~&gx3zF3%h40lFl!K-ic__~LB2Rk~|})3x`^NxGD>@m8hr z+^0r=>~XL#pz%7svhC{O3!?4DF9GYh%8Wf=WO-qo-R!A>P^^+U+;pc2om~ zy(<|L7fxg1I=d|^%35NKDb`Q^VK~}h(KA(!FV)-9Yi(CFmD7`3)9Q!U zUj`Gv#F+9>OWW_QcioX5bJQ_&SCg|Jo>o0RAs#JAtlUxIQU7>6RG9VWQ2*TSdN&+I zOZ~Q3WBgxxy~>e&C9BE9U9+{mk(*YyK?N-{6`+RhA>1v0Mv zN%_s~8``S;n(FlByaNw2ZZ&mTZIgfe`o|cnBHN{#R-RtAR2_SDwzbk?{(5q# zhR=WG5p(O(A1Ghwcy>4N2hZZYtXpoQn5sHm&|^Nwf1=WTp*cG-v&HK1PT*FLHv6Uz z|E+1z?U}WD-4WZ#!RO0WpXNHig2(E#<%zf33xl4?s-f{MbBMRrI&YmOR|jew8Lc-L zUw*LpcG6CJFde-fvKUhL7w-jAE6cn5d3=!crzVWA-<)7$`hG}1f8^OC1&g-#=W^ch zB@($qp$(5Zr}qdJztid|c!v59UQ#pcaS!?HOFz169_^Ud@AzfaxC)#>eWqo-Ifz;!A1&P&X7PKb%XVW=;`8eT2~khaslzkLEonvOe6$PcUC7|R zS7bOw%r(Af@~HjXNSpJi@bIAF3e=5Q`#vzh)BCz3MY^()7s!bj@4@dvu`l)M4A6V~ z%&m2O`;ULn5R4|f@=m--&z+d+n*LWTcU7NdC^BAeYD^go6^)fzZVW|mtqoF}jw=1p z{Gq&8F^%b~3@_LU6Pjss`z6jJ?0rBd0v#W3ln$*l~=%8hJwA@iJ(t&<;ii3~d; zc&InHaZC#vql`_vxasN+r3r#HLTIv$rQkG8AXxm8)PWmSV=O^UF)^Gy{5SkOue@LH zAD_>YJhgROH{q=TAOKhZ0J0zivJk}D2jU&%p~nlvt~io-jh{WR%JPe<6s+}LpTl*I8x@@^U5K&PiY!s0cMM@MkQNkn%mn2e>C>u?RN)j!}xGWPk zicD#8OqO+7He`iR6w*dj;);?~6hl!=MX?l>RMn`i(uSH;RaUicqw=b1sH&-Il%_>B zjn_0&)1$gh>w3)8MO~M4UDkC|H)z993_~>x%P?c6$ylaln!0IPro~uRJYyM_U9F6j ziDxp&jP3vDzZX~s*pvMW0QeAS^!T@(8=X1~E)KR_J2!SE1(lQQ_IET*MBu7pWgD^E zX>$K;^Vkg`Z&_gH?1L|7_TC9J!sr{_l(6I7svfVeY-XZxNgx(#^>6IBeI{~L>-zg* zmy+XlI|I$5;e^xeKNucvTNpouy;`)dGSE?29DF4Q`+lZ(t0QlH$IlNM=Tpa*uPrHV zaDHqG)rS@Sujjf(0~>ZO-y3{+wh66sR{qm`etg@)SNo7A@S87~Gxdi@=a3Pf^({bj*!iBrrTbm}nzSQdq?i+vNshvkdt%uxsckzLtt_$dE zfrevhxVi>wJbj_<#>2u7sEOB&KaOwTQdzzmdcUIO&4IC-=jYOq-uZMRE!6*-ximcO zS@z=PPjgC6w%`AO7-{f%5>VymsXdEF%2M#C3%hU#WC%|{s7k2%K#LhZW{#Y7Im5aJ=o}U783jC!rYZnc-CRV5W+j<|{9k@Tgxgs&=@&)tzQ{nM% z6VB2I8%j8G{ry{NHzns>MK%7(WcY2ka|+09FJ0uTP2O|7S5$C)($}{G+RRt)0;WIe z`~AB_!N`hVuta{};G6?Juqzxa>MOZ^#g+fe4IhfZ;ZM9p2k%U~3)+F{yw#CVA~*5p zgI*~AT7R|o`Ii3N(#DxNBEMp2%yVjeMe8K6swT8%IJX;{1a@>BmpJS&TGYE MXE$tiIDo2u0Z=C+%K!iX literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc7.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc7.gif new file mode 100644 index 0000000000000000000000000000000000000000..98873e17d0df7d51a0aecccb77d5504fb5354944 GIT binary patch literal 1533 zcmeH`?@t?b9LGN`rTs!nxekyoP#Cv?qYFb05O;%^qZGPzBN-i4aK;r0gVV0x%JT31gGVL;+9) zL19dhBqdjhq5)`vpfRRNlBQ`hfEgh(Nt#V2Gewzc+6G|5*k&@>Y&I5vB?uN{mZDg> zvMdL{Va%D$9LG5UoEST4+Ua!i06b0eW;4&SJjd}o?*eck24fQwG1+4=2|z+f5=BXp76BGzE-uCa;*u1P$5#MWR#r9uHe_yW zYyxagi-iW+TLT)h}WBa8rwo+9Sy$c z)62_*a#2cBG~a8#g}^)gT$1tAuKaKy$9H=D%6MAm+VuIhctO$dhV12mGprPn zclpQ0>61vUQQDr#zid6^*JkUY{p@}VyV{>n%${?H1yZA7F~twdRKHw z7@sR{Jggrp3v2C_s?w$rr!`S~PI>pB0}7p&^o^SKh21~*-Q87wB|=getLKt6(Y8?9 z88CeHa`nxL@9KTre)RQ|CdM#ZQM)I(WTU0rS8A`yQ$o>T;_BHqF#MZY;+vjaj;`9v#MfRWj|aDA6pI#I;_Uw z$4sBMD>fN!DsFbvwQ3!tA6z}HrAa}PH+Xd39U$X%iBVINRpqG2vSt>Rj`$Tv z0`CmJ=_V#;&+dv0YYgf~771lnJ4VCz=PPrPm?P;Hb-#gp-DNw$_%-d7&2OAMUYvi) zvi24psWYyO&tFin*UtHL_gX&Eq^7T3CGz%0M_Ra~{e+^`QO(SX0qLRFkYx`uSyLC% zA-Vg*)tLlW;J7tIJ4V@6)$J5>K6x~|FGW2_%;$8DHuh=@rkQo~OU8%_fA-0AAnb1U z`IV^!#yzU`_pA1G9CXQU1#o-noN4hn~=f`kSA^( TJN4l4ZAag}-Z>vI0kO98Ghyp3~cTRK(L9PxHLi%j@-Ct=ET4KE2PE&-$34-{AL~{6VA*qU@k4 z7|ITXSW}4ghq#b{kbp?REC^mK2$CSkV!kLAiK0&wMZYM@5<(K9q#{WQX{C@LNe)S3 zB#Dy|k`XD}WLdDu0+t0%7J~9*o{>ebEQ$&u6uY8GvLY#pEGr7BD59bOAOsEo4Dhc3 zAOJ`J3V;UC0_Xt@049KJ05d>7KoNiqzz&l!27m+b0{8&@06~BdfCwM~$P1XTHboQcKqow0Vv1zFN9wo?3-|=nBtu545c;d%|kFQ@m(?(kIC1cAvN#wWTm@ zB(J3U?l}TcSEdfV{egqCD>g@;9(_2( zFIM_iHlLIPPr+y78zag`ZZSye&;l**52X&GfmryN0BSZxob%oAkh{E<8(`h=is>Q*8Rq!m!BK#|GE9{@zew$yn=A zMNl~(x&jr+PhEkCoGNGVu*uUKzmq7hi_loocV$jb!=ukN+j~CeOE$&6^m1#$9cs8O z=V=|^BFx-2=q|7RBEoZ^cVlbiV(Val!%dPLRL&R8`^ziiE}T-aEf)YvrR>Ztp4Ktma!}I>l4Q` Nv+ZR!FRN5&#XoK_hrR#+ literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc9.gif b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/conc9.gif new file mode 100644 index 0000000000000000000000000000000000000000..721c37acaba727eff99592293b1660097cd5876d GIT binary patch literal 1604 zcmeIx|4$PK7zXebDqL$@4^TLv>w2YVyD;UPFgi@E2TEJ4(<)9YW0vcHrO^Pz*x6;F zSSn~2p`K`#TL!YjY3!oQYL?7fM&^;l*`0sGe%+H#p1eQ5 z$y4pvP;T{_WoDTulYsyYf;99J13?T7GO*MT3&RWyvlfW4SR^b0vj`&LtT1b}N;ni| zQ45Qr65i=#olf43aBjCm@IXlq!g)LbhOijIVO9>qBm#zsehclla(=%=32_%s~C3M1>NI1EKJCR5TNhF!HN~k2tB%R5mMr9!DxB$bkm|MMR{P%M-3atkuxh3s{u&VGJi&ds=vbO2=asf6@!9J5F;&sKExpF* z5y%WIZUulzqAb*DR-OTmc4Vy`s_zD$?k=(vsesMk1f4q!JOS-lw@%lb&ycqQ9rE=G zdCjHmrDl6a#^=FT>rU2`xV3WV#rTp_;$>sUw84C_iT?-y7 ziDxL5tf?}{h63@GD&t(0cY4hDR%7#&!+fSY`s>#DY+u#T;as`8%+Ng0)!6~owmiRT z|4FMgZF$Q#e?2-s4NK-4? z&1lYpha;7%r)A3h3>@w@7W)R$VNmfn>~2<$Pb^${cjU98s409uVPt$kR%8W?wC+S~mKdss7US`+Y~Dkp+7y{+i2C0qP>qutS@6y0EQTxx64PTC1;L zvCVeN_K6)yFQ^;+&}4k^byw;3ohyi2C-SMD-yik6&INl7io3P_iqO*bYH)4yf!V$& z(%IW^d}12%Wg@4>7ajfM&S2p>`v<*E13eq^_qexRC_d4s_72;U_lDQ)Ro)Aa>Dzr3 zJ;ps#HA-XIxBI>CRj%<8{=+s|hw|B`8{@gD{J9J*Sl5IW$h*G;;%$+$n@z#li;dtr z`2MAxs=a@w>s+;l4xlmG8ZkbbX&O58UH_osNalL?$iC%^+X1a7ey;N3olTv9_Rtm8 zl8l7|$LWQxlY^PYRk`W+*pa^X)ZbGw?hIZUzVGaGW JG?@xn#lOnZfS~{Y literal 0 HcmV?d00001 diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 1 - original.txt b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 1 - original.txt new file mode 100644 index 0000000..86917ac --- /dev/null +++ b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 1 - original.txt @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + +

+

Concentration

+
+ + +
+

+ +
+
+ +

+Free JavaScripts provided
+by The JavaScript Source
+

+ + + + \ No newline at end of file diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 2 - copilot.html b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 2 - copilot.html new file mode 100644 index 0000000..eceb041 --- /dev/null +++ b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 2 - copilot.html @@ -0,0 +1,155 @@ + + + + +Concentration + + + + + +

Concentration

+ +
0:00
+
+ + + + + \ No newline at end of file diff --git a/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 3 - final.html b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 3 - final.html new file mode 100644 index 0000000..659b67d --- /dev/null +++ b/Languages/JavaScript/LegacyGames/LegacyJSConcentration/concentration 3 - final.html @@ -0,0 +1,179 @@ + + + + + + + + + +
+
+ +
+
+ + + \ No newline at end of file diff --git a/Languages/JavaScript/LegacyJSMaze/js maze 1 - original.txt b/Languages/JavaScript/LegacyGames/LegacyJSMaze/js maze 1 - original.txt similarity index 100% rename from Languages/JavaScript/LegacyJSMaze/js maze 1 - original.txt rename to Languages/JavaScript/LegacyGames/LegacyJSMaze/js maze 1 - original.txt diff --git a/Languages/JavaScript/LegacyJSMaze/js maze 2 - copilot.htm b/Languages/JavaScript/LegacyGames/LegacyJSMaze/js maze 2 - copilot.htm similarity index 100% rename from Languages/JavaScript/LegacyJSMaze/js maze 2 - copilot.htm rename to Languages/JavaScript/LegacyGames/LegacyJSMaze/js maze 2 - copilot.htm diff --git a/Languages/JavaScript/LegacyJSMaze/js maze 3 - embellished.htm b/Languages/JavaScript/LegacyGames/LegacyJSMaze/js maze 3 - final.htm similarity index 100% rename from Languages/JavaScript/LegacyJSMaze/js maze 3 - embellished.htm rename to Languages/JavaScript/LegacyGames/LegacyJSMaze/js maze 3 - final.htm diff --git a/Languages/JavaScript/LegacyJSMaze/readme.md b/Languages/JavaScript/LegacyGames/LegacyJSMaze/readme.md similarity index 100% rename from Languages/JavaScript/LegacyJSMaze/readme.md rename to Languages/JavaScript/LegacyGames/LegacyJSMaze/readme.md