diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/.vs/A2Cw_Clark0/v16/.suo b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/.vs/A2Cw_Clark0/v16/.suo deleted file mode 100755 index 15eccd6..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/.vs/A2Cw_Clark0/v16/.suo and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/.vs/A2Cw_Clark0/v16/Server/sqlite3/db.lock b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/.vs/A2Cw_Clark0/v16/Server/sqlite3/db.lock deleted file mode 100755 index e69de29..0000000 diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/.vs/A2Cw_Clark0/v16/Server/sqlite3/storage.ide b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/.vs/A2Cw_Clark0/v16/Server/sqlite3/storage.ide deleted file mode 100755 index c33440c..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/.vs/A2Cw_Clark0/v16/Server/sqlite3/storage.ide and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0.sln b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0.sln deleted file mode 100755 index 14ca9fe..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29424.173 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "A2Cw_Clark0", "A2Cw_Clark0\A2Cw_Clark0.csproj", "{5AAC2E12-701A-4BFE-A159-9CC1BC649C4A}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {5AAC2E12-701A-4BFE-A159-9CC1BC649C4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5AAC2E12-701A-4BFE-A159-9CC1BC649C4A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5AAC2E12-701A-4BFE-A159-9CC1BC649C4A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5AAC2E12-701A-4BFE-A159-9CC1BC649C4A}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {53CC11B7-B3E1-4C11-8970-ECCB6566C047} - EndGlobalSection -EndGlobal diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/A2Cw_Clark0.csproj b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/A2Cw_Clark0.csproj deleted file mode 100755 index ac27547..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/A2Cw_Clark0.csproj +++ /dev/null @@ -1,83 +0,0 @@ - - - - - Debug - AnyCPU - {5AAC2E12-701A-4BFE-A159-9CC1BC649C4A} - WinExe - A2Cw_Clark0 - A2Cw_Clark0 - v4.7.2 - 512 - true - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - Form - - - sortsAndSearches.cs - - - - - sortsAndSearches.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - - \ No newline at end of file diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/App.config b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/App.config deleted file mode 100755 index 5754728..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/App.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Program.cs b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Program.cs deleted file mode 100755 index 8998eab..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Program.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace A2Cw_Clark0 -{ - static class Program - { - /// - /// The main entry point for the application. - /// - [STAThread] - static void Main() - { - Application.EnableVisualStyles(); - Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new sortsAndSearches()); - } - } -} diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/AssemblyInfo.cs b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/AssemblyInfo.cs deleted file mode 100755 index 78e20a7..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -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("A2Cw_Clark0")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("A2Cw_Clark0")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[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("5aac2e12-701a-4bfe-a159-9cc1bc649c4a")] - -// 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/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Resources.Designer.cs b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Resources.Designer.cs deleted file mode 100755 index a779612..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Resources.Designer.cs +++ /dev/null @@ -1,71 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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 A2Cw_Clark0.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("A2Cw_Clark0.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/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Resources.resx b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Resources.resx deleted file mode 100755 index ffecec8..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Resources.resx +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Settings.Designer.cs b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Settings.Designer.cs deleted file mode 100755 index a19ed6e..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Settings.Designer.cs +++ /dev/null @@ -1,30 +0,0 @@ -//------------------------------------------------------------------------------ -// -// 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 A2Cw_Clark0.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/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Settings.settings b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Settings.settings deleted file mode 100755 index abf36c5..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/Properties/Settings.settings +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.exe b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.exe deleted file mode 100755 index 8ffcc35..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.exe and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.exe.config b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.exe.config deleted file mode 100755 index 5754728..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.exe.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.pdb b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.pdb deleted file mode 100755 index 842474a..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/bin/Debug/A2Cw_Clark0.pdb and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.Form1.resources b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.Form1.resources deleted file mode 100755 index 6c05a97..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.Form1.resources and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.Properties.Resources.resources b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.Properties.Resources.resources deleted file mode 100755 index 6c05a97..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.Properties.Resources.resources and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.CoreCompileInputs.cache b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.CoreCompileInputs.cache deleted file mode 100755 index 0bc28eb..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -465acf6b0f3b533376501df6b802a8cf60f61a22 diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.FileListAbsolute.txt b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.FileListAbsolute.txt deleted file mode 100755 index a6ea48d..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,79 +0,0 @@ -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe.config -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.pdb -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csprojAssemblyReference.cache -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Form1.resources -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Properties.Resources.resources -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.GenerateResource.cache -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.exe -C:\Users\4matt\source\repos\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.pdb -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe.config -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.pdb -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csprojAssemblyReference.cache -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Form1.resources -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Properties.Resources.resources -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.GenerateResource.cache -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.CoreCompileInputs.cache -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.exe -C:\Users\matthew-clark\OneDrive - York College\Downloads\A2Cw_Clark0-20201112T090430Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.pdb -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe.config -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.pdb -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csprojAssemblyReference.cache -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Form1.resources -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Properties.Resources.resources -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.GenerateResource.cache -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.exe -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.pdb -C:\Users\4matt\source\repos\A2Cw_Clark0-20201115T202002Z-001\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.CoreCompileInputs.cache -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe.config -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.pdb -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csprojAssemblyReference.cache -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Form1.resources -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Properties.Resources.resources -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.GenerateResource.cache -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.CoreCompileInputs.cache -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.exe -C:\Users\4matt\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.pdb -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csprojAssemblyReference.cache -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Form1.resources -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Properties.Resources.resources -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.GenerateResource.cache -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.CoreCompileInputs.cache -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.exe -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.pdb -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe.config -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe -C:\Users\matthew-clark\OneDrive - York College\CS\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.pdb -F:\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csprojAssemblyReference.cache -F:\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.sortsAndSearches.resources -F:\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Properties.Resources.resources -F:\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.GenerateResource.cache -F:\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.CoreCompileInputs.cache -F:\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.exe -F:\project\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.pdb -F:\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe.config -F:\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe -F:\project\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.pdb -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe.config -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.pdb -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csprojAssemblyReference.cache -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.sortsAndSearches.resources -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Properties.Resources.resources -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.GenerateResource.cache -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.CoreCompileInputs.cache -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.exe -C:\Users\4matt\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.pdb -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csprojAssemblyReference.cache -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.sortsAndSearches.resources -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.Properties.Resources.resources -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.GenerateResource.cache -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.csproj.CoreCompileInputs.cache -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.exe -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\obj\Debug\A2Cw_Clark0.pdb -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe.config -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.exe -C:\Users\matthew-clark\OneDrive - York College\CS\projectFixedForm\A2Cw_Clark0\A2Cw_Clark0\bin\Debug\A2Cw_Clark0.pdb diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.GenerateResource.cache b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.GenerateResource.cache deleted file mode 100755 index 7473d6a..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csproj.GenerateResource.cache and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csprojAssemblyReference.cache b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csprojAssemblyReference.cache deleted file mode 100755 index aaf0268..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.csprojAssemblyReference.cache and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.exe b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.exe deleted file mode 100755 index 8ffcc35..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.exe and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.pdb b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.pdb deleted file mode 100755 index 842474a..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.pdb and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.sortsAndSearches.resources b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.sortsAndSearches.resources deleted file mode 100755 index 6c05a97..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/A2Cw_Clark0.sortsAndSearches.resources and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/DesignTimeResolveAssemblyReferences.cache deleted file mode 100755 index b83a454..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/DesignTimeResolveAssemblyReferences.cache and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100755 index acf5ea4..0000000 Binary files a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and /dev/null differ diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.Designer.cs b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.Designer.cs deleted file mode 100755 index 60d2e83..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.Designer.cs +++ /dev/null @@ -1,411 +0,0 @@ -using System; - -namespace A2Cw_Clark0 -{ - partial class sortsAndSearches - { - /// - /// 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.btnStart = new System.Windows.Forms.Button(); - this.btnExit = new System.Windows.Forms.Button(); - this.txtInput = new System.Windows.Forms.TextBox(); - this.lblInput = new System.Windows.Forms.Label(); - this.btnShowList = new System.Windows.Forms.Button(); - this.btnAddNumber = new System.Windows.Forms.Button(); - this.txtArraySize = new System.Windows.Forms.TextBox(); - this.lblArraySize = new System.Windows.Forms.Label(); - this.lblArrayData = new System.Windows.Forms.Label(); - this.btnArrayHelp = new System.Windows.Forms.Button(); - this.btnDrawBars = new System.Windows.Forms.Button(); - this.btnBubbleSort = new System.Windows.Forms.Button(); - this.btnLinearSearch = new System.Windows.Forms.Button(); - this.txtSearchData = new System.Windows.Forms.TextBox(); - this.lblSearch = new System.Windows.Forms.Label(); - this.lblhelp = new System.Windows.Forms.Label(); - this.btnInsertionSort = new System.Windows.Forms.Button(); - this.btnMergeSort = new System.Windows.Forms.Button(); - this.btnQuickSort = new System.Windows.Forms.Button(); - this.btnBinarySearch = new System.Windows.Forms.Button(); - this.label1 = new System.Windows.Forms.Label(); - this.lblShowSteps = new System.Windows.Forms.Label(); - this.chkShowSteps = new System.Windows.Forms.CheckBox(); - this.SuspendLayout(); - // - // btnStart - // - this.btnStart.BackColor = System.Drawing.Color.Gray; - this.btnStart.Font = new System.Drawing.Font("Comic Sans MS", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnStart.ForeColor = System.Drawing.Color.Yellow; - this.btnStart.Location = new System.Drawing.Point(565, 285); - this.btnStart.Name = "btnStart"; - this.btnStart.Size = new System.Drawing.Size(234, 124); - this.btnStart.TabIndex = 0; - this.btnStart.Text = "Start"; - this.btnStart.UseVisualStyleBackColor = false; - this.btnStart.Click += new System.EventHandler(this.btnStart_Click); - // - // btnExit - // - this.btnExit.BackColor = System.Drawing.Color.Gray; - this.btnExit.Font = new System.Drawing.Font("Comic Sans MS", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnExit.ForeColor = System.Drawing.Color.Yellow; - this.btnExit.Location = new System.Drawing.Point(325, 285); - this.btnExit.Name = "btnExit"; - this.btnExit.Size = new System.Drawing.Size(234, 124); - this.btnExit.TabIndex = 1; - this.btnExit.Text = "Exit"; - this.btnExit.UseVisualStyleBackColor = false; - this.btnExit.Click += new System.EventHandler(this.btnExit_Click); - // - // txtInput - // - this.txtInput.BackColor = System.Drawing.Color.White; - this.txtInput.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtInput.ForeColor = System.Drawing.Color.Yellow; - this.txtInput.Location = new System.Drawing.Point(129, 197); - this.txtInput.Name = "txtInput"; - this.txtInput.Size = new System.Drawing.Size(324, 26); - this.txtInput.TabIndex = 2; - this.txtInput.TextChanged += new System.EventHandler(this.txtInput_TextChanged); - // - // lblInput - // - this.lblInput.AutoSize = true; - this.lblInput.BackColor = System.Drawing.Color.Black; - this.lblInput.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblInput.ForeColor = System.Drawing.Color.Yellow; - this.lblInput.Location = new System.Drawing.Point(27, 108); - this.lblInput.Name = "lblInput"; - this.lblInput.Size = new System.Drawing.Size(765, 18); - this.lblInput.TabIndex = 3; - this.lblInput.Text = "If you are using your own data please enter it below then press start when ready " + - "or if using random numbers just press start"; - this.lblInput.Click += new System.EventHandler(this.lblInput_Click); - // - // btnShowList - // - this.btnShowList.BackColor = System.Drawing.Color.Gray; - this.btnShowList.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnShowList.ForeColor = System.Drawing.Color.Yellow; - this.btnShowList.Location = new System.Drawing.Point(129, 229); - this.btnShowList.Name = "btnShowList"; - this.btnShowList.Size = new System.Drawing.Size(108, 39); - this.btnShowList.TabIndex = 4; - this.btnShowList.Text = "Show list"; - this.btnShowList.UseVisualStyleBackColor = false; - this.btnShowList.Click += new System.EventHandler(this.btnShowList_Click); - // - // btnAddNumber - // - this.btnAddNumber.BackColor = System.Drawing.Color.Gray; - this.btnAddNumber.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnAddNumber.ForeColor = System.Drawing.Color.Yellow; - this.btnAddNumber.Location = new System.Drawing.Point(243, 229); - this.btnAddNumber.Name = "btnAddNumber"; - this.btnAddNumber.Size = new System.Drawing.Size(158, 39); - this.btnAddNumber.TabIndex = 5; - this.btnAddNumber.Text = "Add number to list"; - this.btnAddNumber.UseVisualStyleBackColor = false; - this.btnAddNumber.Click += new System.EventHandler(this.btnAddNumber_Click); - // - // txtArraySize - // - this.txtArraySize.BackColor = System.Drawing.Color.White; - this.txtArraySize.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtArraySize.ForeColor = System.Drawing.Color.Yellow; - this.txtArraySize.Location = new System.Drawing.Point(129, 165); - this.txtArraySize.Name = "txtArraySize"; - this.txtArraySize.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.txtArraySize.Size = new System.Drawing.Size(324, 26); - this.txtArraySize.TabIndex = 6; - this.txtArraySize.TextChanged += new System.EventHandler(this.txtArraySize_TextChanged); - // - // lblArraySize - // - this.lblArraySize.AutoSize = true; - this.lblArraySize.BackColor = System.Drawing.Color.Black; - this.lblArraySize.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblArraySize.ForeColor = System.Drawing.Color.Yellow; - this.lblArraySize.Location = new System.Drawing.Point(29, 168); - this.lblArraySize.Name = "lblArraySize"; - this.lblArraySize.Size = new System.Drawing.Size(94, 23); - this.lblArraySize.TabIndex = 7; - this.lblArraySize.Text = "Array size:"; - // - // lblArrayData - // - this.lblArrayData.AutoSize = true; - this.lblArrayData.BackColor = System.Drawing.Color.Black; - this.lblArrayData.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblArrayData.ForeColor = System.Drawing.Color.Yellow; - this.lblArrayData.Location = new System.Drawing.Point(26, 196); - this.lblArrayData.Name = "lblArrayData"; - this.lblArrayData.Size = new System.Drawing.Size(97, 23); - this.lblArrayData.TabIndex = 8; - this.lblArrayData.Text = "Array data:"; - // - // btnArrayHelp - // - this.btnArrayHelp.BackColor = System.Drawing.Color.Gray; - this.btnArrayHelp.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnArrayHelp.ForeColor = System.Drawing.Color.Yellow; - this.btnArrayHelp.Location = new System.Drawing.Point(30, 285); - this.btnArrayHelp.Name = "btnArrayHelp"; - this.btnArrayHelp.Size = new System.Drawing.Size(121, 124); - this.btnArrayHelp.TabIndex = 10; - this.btnArrayHelp.Text = "Array config help"; - this.btnArrayHelp.UseVisualStyleBackColor = false; - this.btnArrayHelp.Click += new System.EventHandler(this.btnArrayHelp_Click); - // - // btnDrawBars - // - this.btnDrawBars.BackColor = System.Drawing.Color.Gray; - this.btnDrawBars.Font = new System.Drawing.Font("Comic Sans MS", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnDrawBars.ForeColor = System.Drawing.Color.Yellow; - this.btnDrawBars.Location = new System.Drawing.Point(157, 285); - this.btnDrawBars.Name = "btnDrawBars"; - this.btnDrawBars.Size = new System.Drawing.Size(162, 124); - this.btnDrawBars.TabIndex = 11; - this.btnDrawBars.Text = "Draw bars"; - this.btnDrawBars.UseVisualStyleBackColor = false; - this.btnDrawBars.Click += new System.EventHandler(this.btnDrawBars_Click); - // - // btnBubbleSort - // - this.btnBubbleSort.BackColor = System.Drawing.Color.Gray; - this.btnBubbleSort.Font = new System.Drawing.Font("Comic Sans MS", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnBubbleSort.ForeColor = System.Drawing.Color.Yellow; - this.btnBubbleSort.Location = new System.Drawing.Point(26, 12); - this.btnBubbleSort.Name = "btnBubbleSort"; - this.btnBubbleSort.Size = new System.Drawing.Size(118, 81); - this.btnBubbleSort.TabIndex = 12; - this.btnBubbleSort.Text = "Bubble Sort"; - this.btnBubbleSort.UseVisualStyleBackColor = false; - this.btnBubbleSort.Click += new System.EventHandler(this.btnBubbleSort_Click); - // - // btnLinearSearch - // - this.btnLinearSearch.BackColor = System.Drawing.Color.Gray; - this.btnLinearSearch.Font = new System.Drawing.Font("Comic Sans MS", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnLinearSearch.ForeColor = System.Drawing.Color.Yellow; - this.btnLinearSearch.Location = new System.Drawing.Point(538, 12); - this.btnLinearSearch.Name = "btnLinearSearch"; - this.btnLinearSearch.Size = new System.Drawing.Size(118, 81); - this.btnLinearSearch.TabIndex = 13; - this.btnLinearSearch.Text = "Linear search"; - this.btnLinearSearch.UseVisualStyleBackColor = false; - this.btnLinearSearch.Click += new System.EventHandler(this.btnLinearSearch_Click); - // - // txtSearchData - // - this.txtSearchData.BackColor = System.Drawing.Color.White; - this.txtSearchData.Font = new System.Drawing.Font("Comic Sans MS", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.txtSearchData.ForeColor = System.Drawing.Color.Yellow; - this.txtSearchData.Location = new System.Drawing.Point(565, 169); - this.txtSearchData.Name = "txtSearchData"; - this.txtSearchData.Size = new System.Drawing.Size(100, 23); - this.txtSearchData.TabIndex = 14; - this.txtSearchData.TextChanged += new System.EventHandler(this.txtSearchData_TextChanged); - // - // lblSearch - // - this.lblSearch.AutoSize = true; - this.lblSearch.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblSearch.ForeColor = System.Drawing.Color.Yellow; - this.lblSearch.Location = new System.Drawing.Point(459, 165); - this.lblSearch.Name = "lblSearch"; - this.lblSearch.Size = new System.Drawing.Size(103, 23); - this.lblSearch.TabIndex = 15; - this.lblSearch.Text = "Search data:"; - // - // lblhelp - // - this.lblhelp.AutoSize = true; - this.lblhelp.BackColor = System.Drawing.Color.Black; - this.lblhelp.Font = new System.Drawing.Font("Comic Sans MS", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblhelp.ForeColor = System.Drawing.Color.Yellow; - this.lblhelp.Location = new System.Drawing.Point(23, 126); - this.lblhelp.Name = "lblhelp"; - this.lblhelp.Size = new System.Drawing.Size(428, 18); - this.lblhelp.TabIndex = 16; - this.lblhelp.Text = "Put your number in array size box and press start for a random array"; - this.lblhelp.Click += new System.EventHandler(this.lblhelp_Click); - // - // btnInsertionSort - // - this.btnInsertionSort.BackColor = System.Drawing.Color.Gray; - this.btnInsertionSort.Font = new System.Drawing.Font("Comic Sans MS", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnInsertionSort.ForeColor = System.Drawing.Color.Yellow; - this.btnInsertionSort.Location = new System.Drawing.Point(150, 12); - this.btnInsertionSort.Name = "btnInsertionSort"; - this.btnInsertionSort.Size = new System.Drawing.Size(118, 81); - this.btnInsertionSort.TabIndex = 17; - this.btnInsertionSort.Text = "Insertion sort"; - this.btnInsertionSort.UseVisualStyleBackColor = false; - this.btnInsertionSort.Click += new System.EventHandler(this.btnInsertionSort_Click); - // - // btnMergeSort - // - this.btnMergeSort.BackColor = System.Drawing.Color.Gray; - this.btnMergeSort.Font = new System.Drawing.Font("Comic Sans MS", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnMergeSort.ForeColor = System.Drawing.Color.Yellow; - this.btnMergeSort.Location = new System.Drawing.Point(274, 12); - this.btnMergeSort.Name = "btnMergeSort"; - this.btnMergeSort.Size = new System.Drawing.Size(118, 81); - this.btnMergeSort.TabIndex = 18; - this.btnMergeSort.Text = "Merge sort"; - this.btnMergeSort.UseVisualStyleBackColor = false; - this.btnMergeSort.Click += new System.EventHandler(this.btnMergeSort_Click); - // - // btnQuickSort - // - this.btnQuickSort.BackColor = System.Drawing.Color.Gray; - this.btnQuickSort.Font = new System.Drawing.Font("Comic Sans MS", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnQuickSort.ForeColor = System.Drawing.Color.Yellow; - this.btnQuickSort.Location = new System.Drawing.Point(398, 12); - this.btnQuickSort.Name = "btnQuickSort"; - this.btnQuickSort.Size = new System.Drawing.Size(118, 81); - this.btnQuickSort.TabIndex = 19; - this.btnQuickSort.Text = "Quick sort"; - this.btnQuickSort.UseVisualStyleBackColor = false; - this.btnQuickSort.Click += new System.EventHandler(this.btnQuickSort_Click); - // - // btnBinarySearch - // - this.btnBinarySearch.BackColor = System.Drawing.Color.Gray; - this.btnBinarySearch.Font = new System.Drawing.Font("Comic Sans MS", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnBinarySearch.ForeColor = System.Drawing.Color.Yellow; - this.btnBinarySearch.Location = new System.Drawing.Point(662, 12); - this.btnBinarySearch.Name = "btnBinarySearch"; - this.btnBinarySearch.Size = new System.Drawing.Size(118, 81); - this.btnBinarySearch.TabIndex = 20; - this.btnBinarySearch.Text = "Binary search"; - this.btnBinarySearch.UseVisualStyleBackColor = false; - this.btnBinarySearch.Click += new System.EventHandler(this.btnBinarySearch_Click); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(503, 209); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(35, 13); - this.label1.TabIndex = 21; - this.label1.Text = "label1"; - // - // lblShowSteps - // - this.lblShowSteps.AutoSize = true; - this.lblShowSteps.Font = new System.Drawing.Font("Comic Sans MS", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblShowSteps.ForeColor = System.Drawing.Color.Yellow; - this.lblShowSteps.Location = new System.Drawing.Point(459, 202); - this.lblShowSteps.Name = "lblShowSteps"; - this.lblShowSteps.Size = new System.Drawing.Size(100, 23); - this.lblShowSteps.TabIndex = 22; - this.lblShowSteps.Text = "Show steps?"; - this.lblShowSteps.Click += new System.EventHandler(this.lblShowSteps_Click); - // - // chkShowSteps - // - this.chkShowSteps.AutoSize = true; - this.chkShowSteps.Location = new System.Drawing.Point(576, 209); - this.chkShowSteps.Name = "chkShowSteps"; - this.chkShowSteps.Size = new System.Drawing.Size(80, 17); - this.chkShowSteps.TabIndex = 23; - this.chkShowSteps.Text = "checkBox1"; - this.chkShowSteps.UseVisualStyleBackColor = true; - this.chkShowSteps.CheckedChanged += new System.EventHandler(this.chkShowSteps_CheckedChanged); - // - // sortsAndSearches - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.AutoSize = true; - this.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; - this.BackColor = System.Drawing.Color.Black; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Controls.Add(this.chkShowSteps); - this.Controls.Add(this.lblShowSteps); - this.Controls.Add(this.label1); - this.Controls.Add(this.btnBinarySearch); - this.Controls.Add(this.btnQuickSort); - this.Controls.Add(this.btnMergeSort); - this.Controls.Add(this.btnInsertionSort); - this.Controls.Add(this.lblhelp); - this.Controls.Add(this.lblSearch); - this.Controls.Add(this.txtSearchData); - this.Controls.Add(this.btnLinearSearch); - this.Controls.Add(this.btnBubbleSort); - this.Controls.Add(this.btnDrawBars); - this.Controls.Add(this.btnArrayHelp); - this.Controls.Add(this.lblArrayData); - this.Controls.Add(this.lblArraySize); - this.Controls.Add(this.txtArraySize); - this.Controls.Add(this.btnAddNumber); - this.Controls.Add(this.btnShowList); - this.Controls.Add(this.lblInput); - this.Controls.Add(this.txtInput); - this.Controls.Add(this.btnExit); - this.Controls.Add(this.btnStart); - this.Name = "sortsAndSearches"; - this.Text = "Sorts and Searches"; - this.Load += new System.EventHandler(this.sortsAndSearches_Load); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - - - - #endregion - - private System.Windows.Forms.Button btnStart; - private System.Windows.Forms.Button btnExit; - private System.Windows.Forms.TextBox txtInput; - private System.Windows.Forms.Label lblInput; - private System.Windows.Forms.Button btnShowList; - private System.Windows.Forms.Button btnAddNumber; - private System.Windows.Forms.TextBox txtArraySize; - private System.Windows.Forms.Label lblArraySize; - private System.Windows.Forms.Label lblArrayData; - private System.Windows.Forms.Button btnArrayHelp; - private System.Windows.Forms.Button btnDrawBars; - private System.Windows.Forms.Button btnBubbleSort; - private System.Windows.Forms.Button btnLinearSearch; - private System.Windows.Forms.TextBox txtSearchData; - private System.Windows.Forms.Label lblSearch; - private System.Windows.Forms.Label lblhelp; - private System.Windows.Forms.Button btnInsertionSort; - private System.Windows.Forms.Button btnMergeSort; - private System.Windows.Forms.Button btnQuickSort; - private System.Windows.Forms.Button btnBinarySearch; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label lblShowSteps; - private System.Windows.Forms.CheckBox chkShowSteps; - } -} - diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.cs b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.cs deleted file mode 100755 index 4da5459..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.cs +++ /dev/null @@ -1,748 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace A2Cw_Clark0 -{ - public partial class sortsAndSearches : Form - { - public sortsAndSearches() - { - InitializeComponent(); - } - - private void sortsAndSearches_Load(object sender, EventArgs e) - { - btnBubbleSort.Visible = false; //hides the buttons and labels at the start - - btnLinearSearch.Visible = false; - - btnInsertionSort.Visible = false; - - btnMergeSort.Visible = false; - - btnQuickSort.Visible = false; - - btnBinarySearch.Visible = false; - - btnDrawBars.Visible = false; - - lblSearch.Visible = false; - txtSearchData.Visible = false; - - lblArrayData.Visible = false; - txtInput.Visible = false; - - btnShowList.Visible = false; - btnAddNumber.Visible = false; - - btnArrayHelp.Visible = false; - - lblInput.Visible = false; - - lblShowSteps.Visible = false; - chkShowSteps.Visible = false; - - btnStart.Enabled = false; - } - - - private void btnExit_Click(object sender, EventArgs e) //if the exit button is clicked - { - MessageBox.Show("Closing program"); //opens a message box telling the user the program is going to close - Application.Exit(); //closes the program - } - - - //not currently used. will return to when done with random array side - private int[] createArray() //function is called when the user clicks the create array button - { - int arraySize = int.Parse(txtArraySize.Text); //takes the input from the array size text box and converts it to an integer - int[] arrayData = new int[arraySize]; //sets the array to have the size of what the user specified - return (arrayData); //returns the array - will be all 0 when created - } - - //only array creating function working (18.11.20) - private int[] createRandomArray() //function for creating a random array - { - int arraySize = int.Parse(txtArraySize.Text); //sets the size of the array to the number in the array size text box chosen by the user - int[] arrayData = new int[arraySize]; //creates the array with the size made above - int min = 1; //sets min number to 1 - int max = 100; //sets max number to 100 - - Random randNum = new Random(); //initialises the random class - for (int k = 0; k < arrayData.Length; k++) //for the length of the array - { - arrayData[k] = randNum.Next(min, max); //generates a random number between 1 and 100 for each position in the array. for example size 4: 3,87,14,8 - } - - return (arrayData); //returns the new array - } - - - //particularly important as is is used for both user input array and random array - private void txtArraySize_TextChanged(object sender, EventArgs e) - { - //int parsedValue; //temporary variable for parsing statement - //if (txtArraySize.Text == string.Empty) //if the box is empty - //{ - // MessageBox.Show("This box cannot be empty"); //tells the user the box should not be empty empty - // txtArraySize.BackColor = Color.Red; //changes the box colour to red - // btnAddNumber.Enabled = false; //disables the button - // btnShowList.Enabled = false; - // btnStart.Enabled = false; - //} - - //else if (!int.TryParse(txtArraySize.Text, out parsedValue)) //this statement was adapted from: https://stackoverflow.com/questions/15399323/validating-whether-a-textbox-contains-only-numbers - it checks if the text in the box is an not an integer - //{ - // MessageBox.Show("This is a whole number only box. Please enter a whole number"); //tells the user they need to enter an integer - // txtArraySize.BackColor = Color.Red; - // btnAddNumber.Enabled = false; //disables the button - // btnShowList.Enabled = false; - // btnStart.Enabled = false; - //} - - //else if (int.TryParse(txtArraySize.Text, out parsedValue)) - //{ - // int arraySize = int.Parse(txtArraySize.Text); - // if (arraySize <= 0 || arraySize > 100) - // { - // MessageBox.Show("Number must be between 1 and 100"); - // txtArraySize.BackColor = Color.Red; - // btnAddNumber.Enabled = false; //disables the button - // btnShowList.Enabled = false; - // btnStart.Enabled = false; - // } - // else - // { - // txtArraySize.BackColor = Color.Green; //changes the box colour to green - // btnAddNumber.Enabled = true; //enables the button - // btnShowList.Enabled = true; - // btnStart.Enabled = true; - // } - //} - validateInput(sender); - } - - - - //not used at this stage - private void txtInput_TextChanged(object sender, EventArgs e) - { - int parsedValue; - if (txtInput.Text == string.Empty) - { - MessageBox.Show("This box cannot be empty"); - txtInput.BackColor = Color.Red; - btnAddNumber.Enabled = false; - btnShowList.Enabled = false; - btnStart.Enabled = false; - } - - else if (!int.TryParse(txtInput.Text, out parsedValue)) - { - MessageBox.Show("This is a whole number only box. Please enter a whole number between 1 and 100"); - txtInput.BackColor = Color.Red; - btnAddNumber.Enabled = false; - btnShowList.Enabled = false; - btnStart.Enabled = false; - } - - else if (int.TryParse(txtInput.Text, out parsedValue)) - { - int arrayItem = int.Parse(txtInput.Text); - if (arrayItem <= 0 || arrayItem > 100) - { - MessageBox.Show("Number must be between 1 and 100"); - txtInput.BackColor = Color.Red; - btnAddNumber.Enabled = false; - btnShowList.Enabled = false; - btnStart.Enabled = false; - } - - else - { - txtInput.BackColor = Color.Green; - btnAddNumber.Enabled = true; - btnShowList.Enabled = true; - btnStart.Enabled = true; - } - } - } - - - //not currently being used. will go back to once random array is done - private void btnAddNumber_Click(object sender, EventArgs e) - { - if (txtInput.Text == string.Empty) - { - MessageBox.Show("Box is empty"); - } - else - { - string displayArray = string.Join(",", updateArray()); //creates a new variable that stores all of the numbers in the array and seperates them with ',' to make it easier to read - MessageBox.Show(displayArray); //displays the formatted array - - } - } - - - //not working as intended. need to look into this once random array side is finished - private int[] updateArray() //this will be used to update the array when the user adds a number - { - - //int i =0; //variable for array positioning - int arraySize = int.Parse(txtArraySize.Text); //redefines the array size to the number in the size box - int[] arrayData = new int[arraySize]; //recreates the array with size specified - //arrayData[0] = 1; - - for (int i = 0; i < arraySize; i++) - { - while (arrayData[i] != 0) - { - i++; - } - - arrayData[i] = int.Parse(txtInput.Text); - i = arraySize; - } - return (arrayData); - } - - - //at the moment this only works with the random array due to issues with creating the user array. need to look into passing arrays to functions properly. will come back to that once random array functionality is complete/working sufficiently - private void btnStart_Click(object sender, EventArgs e) //when the user presses start - { - if (txtArraySize.Text == string.Empty) - { - MessageBox.Show("Box is empty"); //not needed anymore - } - else - { - // string displayArray = string.Join(",", createRandomArray()); //creates a new variable that stores all of the numbers in the array and seperates them with ',' to make it easier to read - //MessageBox.Show(displayArray); //displays the formatted array - - //next section hides all unneccessary parts that won't be used beyond this point - //along with making new areas (sort and search) visible - - lblArrayData.Visible = false; //hides the labels - lblArraySize.Visible = false; - lblInput.Visible = false; - - txtArraySize.Visible = false; //hides the text boxes - txtInput.Visible = false; - - btnAddNumber.Visible = false; //hides the buttons - btnArrayHelp.Visible = false; - btnShowList.Visible = false; - - btnStart.Visible = false; //hides the start button when you press it - - btnDrawBars.Visible = false; //shows the draw bars button as that option can now be used --keeps false for now - - btnBubbleSort.Visible = true; //shows the bubble sort button as that option can now be used - btnLinearSearch.Visible = true; ////shows the linear search button as that option can now be used - btnInsertionSort.Visible = true; - btnMergeSort.Visible = true; - btnQuickSort.Visible = true; - lblSearch.Visible = true; - txtSearchData.Visible = true; - - btnStart.Visible = false; - - lblhelp.Visible = false; - - lblShowSteps.Visible = true; - chkShowSteps.Visible = true; - } - - } - - - //not used at this point. will return to once random array side is done - private void btnShowList_Click(object sender, EventArgs e) - { - if (txtArraySize.Text == string.Empty) - { - MessageBox.Show("Box is empty"); - } - else - { - string displayArray = string.Join(",", createArray()); //creates a new variable that stores all of the numbers in the array and seperates them with ',' to make it easier to read - MessageBox.Show(displayArray); //displays the formatted array - } - } - - - //not used at this point because development of the random array side doesn't involve arrayData. array size is still used - private void btnArrayHelp_Click(object sender, EventArgs e) //when the user presses the help button - { - MessageBox.Show("This is where you can find help on how to create your own array (list) \nFirst you should enter a number between 1 and 100 in the text box marked array size. Please make sure you enter in a number and nothing else or the program won't work. \nNext enter in the numbers you want to add to your array in the array data text box. Enter them in one by one, pressing add number to list after each one. \nYou can see what the array will look like at any point by pressing the show list button. If there is no data in the array then pressing show list will bring up '0' as the items."); - } - - - //still in development (18.11.20) - private void btnDrawBars_Click(object sender, EventArgs e) //draws a bar when the button is clicked - { - //int Min = 1; //used for testing random line lengths - //int Max = 100; - - //Random randNum = new Random(); - - //int x1 = randNum.Next(Min, Max); - //int y1 = randNum.Next(Min, Max); - //int x2 = randNum.Next(Min, Max); - //int y2 = randNum.Next(Min, Max); - - - drawBars(createRandomArray()); //issue with this is that you will always get a new random array. need to look into passing arrays more. (18.11.20) - } - - private void drawBars(int[] arrayData) - { - Graphics line = CreateGraphics(); //adapted from https://www.homeandlearn.co.uk/extras/graphics/graphics-paint-event.html - Pen pen = new Pen(Color.White, 1); //creates the pen with colour white and width 2 - - Point a = new Point(100, 100); //sets co-ords of first point (x,y) - Point b = new Point(100, 500); //sets co-ords of second point (x,y) - - line.DrawLine(pen, a, b); - - line.DrawLine(pen, 50, 50, 50, 200); - line.DrawLine(pen, 60, 60, 60, 200); - line.DrawLine(pen, 70, 70, 70, 200); - line.DrawLine(pen, 80, 80, 80, 200); - line.DrawLine(pen, 90, 90, 90, 200); - line.Dispose(); - - string displayArray = string.Join(",", arrayData); //creates a new variable that stores all of the numbers in the array and seperates them with ',' to make it easier to read - MessageBox.Show(displayArray); //displays the formatted array - } - - - //unused code - - //private int [] test() - //{ - // int arraySize = int.Parse(txtArraySize.Text); - // int[] arrayData = new int[arraySize]; - // int Min = 1; - // int Max = 100; - - // Random randNum = new Random(); - // for (int k = 0; k < arrayData.Length; k++) - // { - // arrayData[k] = randNum.Next(Min, Max); - // } - - // return (arrayData); - //} - - - private void btnBubbleSort_Click(object sender, EventArgs e) - { - int[] arrayData = createRandomArray(); - - bubbleSort(arrayData); - } - - private void bubbleSort(int[] arrayData) - { - int temp; //temporary value used for swapping two values - string displayArray = string.Join(",", arrayData); - MessageBox.Show("Unsorted array is " + displayArray); - - for (int i = 0; i < arrayData.Length - 1; i++) //loop will repeat as many times as length of array -1 - { - for (int j = 0; j < arrayData.Length - 1; j++) //loop will repeat as many times as length of array -1 - { - if (arrayData[j] > arrayData[j + 1]) //if first number is larger than second number - { - temp = arrayData[j]; //sets temp to the first (larger) number - arrayData[j] = arrayData[j + 1]; //sets the first number to the second (smaller) number - arrayData[j + 1] = temp; //sets the second number to the temp number (first number) which comletes the swap - - showSteps(arrayData); - } - } - } - displayArray = string.Join(",", arrayData); - MessageBox.Show("The sorted array is " + displayArray); //shows the (hopefully) sorted array - } - - private void btnLinearSearch_Click(object sender, EventArgs e) - { - if (txtSearchData.Text == string.Empty) - { - MessageBox.Show("Box is empty"); - } - else - { - int[] arrayData = createRandomArray(); - linearSearch(arrayData); - } - - } - - private void linearSearch(int[] arrayData) - { - - int search = int.Parse(txtSearchData.Text); //sets the variable used to hold what we search for to the number the user put in the text box specified - - string displayArray = string.Join(",", arrayData); //formats the array to a single string - MessageBox.Show("searching for: " + search + " in " + displayArray); //tells the user what they are searching for and what the array is - - bool found = false; //sets found to false - for (int i = 0; i < arrayData.Length; i++) //for length of the array - { - if (arrayData[i] == search) //if the current position holds the number we are looking for - { - found = true; //sets found to true - MessageBox.Show("found " + search + " at position " + i); //tells the user the number has been found along wih its position - } - } - if (found == false) //if found is false - { - MessageBox.Show(search + " not found"); //tells the user the number was not found - } - - } - - private void txtSearchData_TextChanged(object sender, EventArgs e) - { - int parsedValue; //temporary variable for parsing statement - if (txtSearchData.Text == string.Empty) //if the box is empty - { - MessageBox.Show("This box cannot be empty"); //tells the user the box should not be empty empty - txtSearchData.BackColor = Color.Red; //changes the box colour to red - btnLinearSearch.Enabled = false; - } - - else if (!int.TryParse(txtSearchData.Text, out parsedValue)) - { - MessageBox.Show("This is a whole number only box. Please enter a whole number"); //tells the user they need to enter an integer - txtSearchData.BackColor = Color.Red; - btnLinearSearch.Enabled = false; - - } - - else if (int.TryParse(txtSearchData.Text, out parsedValue)) - { - int searchData = int.Parse(txtSearchData.Text); - if (searchData <= 0 || searchData > 100) - { - MessageBox.Show("Number must be between 1 and 100"); - txtSearchData.BackColor = Color.Red; - btnLinearSearch.Enabled = false; - - } - else - { - txtSearchData.BackColor = Color.Green; //changes the box colour to green - btnLinearSearch.Enabled = true; - - } - } - } - - private void lblInput_Click(object sender, EventArgs e) - { - - } - - private void lblhelp_Click(object sender, EventArgs e) - { - - } - - private void btnInsertionSort_Click(object sender, EventArgs e) - { - int[] arrayData = createRandomArray(); - string displayArray = string.Join(",", arrayData); - MessageBox.Show("Original array is " + displayArray); - insertionSort(arrayData); - } - - private void insertionSort(int[] arrayData) - { - int i = 0; - int j = 0; - - int temp = 0; - string displayArray = string.Join(",", arrayData); - while (i < arrayData.Length) //while i is smaller than the length of the array - { - j = i; - while (j > 0 && arrayData[j - 1] > arrayData[j]) - { - temp = arrayData[j]; // } - arrayData[j] = arrayData[j - 1]; // } swaps the two numbers - arrayData[j - 1] = temp; // } - - showSteps(arrayData); - - j -= 1; - } - i += 1; - } - displayArray = string.Join(",", arrayData); - MessageBox.Show("Sorted array is " + displayArray); - } - private void btnMergeSort_Click(object sender, EventArgs e) - { - int[] arrayData = createRandomArray(); - int[] sortedArrayData = new int[arrayData.Length]; - string displayArray = string.Join(",", arrayData); - MessageBox.Show("Original array is " + displayArray); - - sortedArrayData = mergeSort(arrayData); - - displayArray = string.Join(",", sortedArrayData); - MessageBox.Show("Sorted array is " + displayArray); //comment this out to stop showing steps - - } - - private static int[] mergeSort(int[] arrayData) - { - int[] left; //creates 'left' array - int[] right; //creates 'right' array - - if (arrayData.Length <= 1) //if there is one element - { - return arrayData; //returns the array as it is just one element so is already sorted - } - - int midpoint = arrayData.Length / 2; //sets midpont to half of the array size - left = new int[midpoint]; //sets the length of the left array to the midpoint value, so half of the numbers - if (arrayData.Length % 2 == 0) //if there are an even number of elements in the array - { - right = new int[midpoint]; //sets the size of right to be midpoint value - } - else - { - right = new int[midpoint + 1]; //sets right size to one more than midpoint - } - - - for (int i = 0; i < midpoint; i++) - { - left[i] = arrayData[i]; //fills the left array with numbers up to midpoint - } - - int j = 0; - for (int i = midpoint; i < arrayData.Length; i++) - { - right[j] = arrayData[i]; // fills the right array with numbers from midpoint to the end - j++; - } - - left = mergeSort(left); //recursively splits - right = mergeSort(right); //recursively splits - - string displayLeft = string.Join(",", left); - string displayRight = string.Join(",", right); - MessageBox.Show("Splitting " + displayLeft + " " + displayRight); //comment this out to stop showing steps - return merge(left, right); //calls merge function to merge the lists and sort them, passing the left and right arrays - } - - private static int[] merge(int[] left, int[] right) - { - int sortedArrayLength = right.Length + left.Length; - int[] sortedArray = new int[sortedArrayLength]; - - int leftPos = 0; - int rightPos = 0; - int sortedArrayPos = 0; - //while either array still has an element - while (leftPos < left.Length || rightPos < right.Length) - { - //if both arrays have elements - if (leftPos < left.Length && rightPos < right.Length) - { - //If item on left array is less than item on right array, add that item to the sortedArray array - if (left[leftPos] <= right[rightPos]) - { - sortedArray[sortedArrayPos] = left[leftPos]; - leftPos++; - sortedArrayPos++; - } - // else the item in the right array wll be added to the sortedArrays array - else - { - sortedArray[sortedArrayPos] = right[rightPos]; - rightPos++; - sortedArrayPos++; - } - } - //if only the left array still has elements, add all its items to the sortedArrays array - else if (leftPos < left.Length) - { - sortedArray[sortedArrayPos] = left[leftPos]; - leftPos++; - sortedArrayPos++; - } - //if only the right array still has elements, add all its items to the sortedArrays array - else if (rightPos < right.Length) - { - sortedArray[sortedArrayPos] = right[rightPos]; - rightPos++; - sortedArrayPos++; - } - string displayArray = string.Join(",", sortedArray); - MessageBox.Show("Merging " + displayArray); - } - return sortedArray; - } - - private void btnQuickSort_Click(object sender, EventArgs e) - { - int[] arrayData = createRandomArray(); - string displayArray = string.Join(",", arrayData); - MessageBox.Show("Original array is " + displayArray); - - - quickSort(arrayData, 0, arrayData.Length - 1); //passes the array, start position and end position - displayArray = string.Join(",", arrayData); - MessageBox.Show("Sorted array is: " + displayArray); - } - - //following two functions adapted from https://www.w3resource.com/csharp-exercises/searching-and-sorting-algorithm/searching-and-sorting-algorithm-exercise-9.php - - private static void quickSort(int[] arrayData, int start, int end) - { - if (start < end) - { - int pivot = partition(arrayData, start, end); - - if (pivot > 1) - { - quickSort(arrayData, start, pivot - 1); - } - if (pivot + 1 < end) - { - quickSort(arrayData, pivot + 1, end); - } - } - string displayArray = string.Join(",", arrayData); - MessageBox.Show("Sorting " + displayArray); - } - - private static int partition(int[] arrayData, int start, int end) - { - int pivot = arrayData[start]; - while (true) - { - - while (arrayData[start] < pivot) - { - start++; - } - - while (arrayData[end] > pivot) - { - end--; - } - - if (start < end) - { - int temp = arrayData[start]; - arrayData[start] = arrayData[end]; - arrayData[end] = temp; - - if (arrayData[start] == arrayData[end]) - { - start++; - } - } - else - { - return end; - } - - string displayArray = string.Join(",", arrayData); - MessageBox.Show("Partitioning " + displayArray); - } - } - - private void btnBinarySearch_Click(object sender, EventArgs e) - { - if (txtSearchData.Text == string.Empty) - { - MessageBox.Show("Box is empty"); - } - - int[] arrayData = createRandomArray(); - binarySearch(arrayData); - } - - private void binarySearch(int[] arrayData) - { - - } - - private void validateInput(object sender) - { - var textBox = (TextBox)sender; - int parsedValue; - if (textBox.Text == string.Empty) //if the box is empty - presence check - { - MessageBox.Show("This box cannot be empty"); //tells the user the box should not be empty empty - textBox.BackColor = Color.Red; //changes the box colour to red - btnStart.Enabled = false; - } - - else if (!int.TryParse(textBox.Text, out parsedValue)) //format check -- this statement was adapted from: https://stackoverflow.com/questions/15399323/validating-whether-a-textbox-contains-only-numbers - it checks if the text in the box is an not an integer - { - MessageBox.Show("This is a whole number only box. Please enter a whole number"); //tells the user they need to enter an integer - textBox.BackColor = Color.Red; - btnStart.Enabled = false; - } - - else if (int.TryParse(textBox.Text, out parsedValue)) //range check - { - int arraySize = int.Parse(textBox.Text); - if (arraySize <= 0 || arraySize > 100) - { - MessageBox.Show("Number must be between 1 and 100"); - textBox.BackColor = Color.Red; - btnStart.Enabled = false; - } - else - { - textBox.BackColor = Color.Green; //changes the box colour to green - btnStart.Enabled = true; - } - } - } - - private void chkShowSteps_CheckedChanged(object sender, EventArgs e) - { - //does nothing on its own - } - - - - private void showSteps(int [] arrayData) - { - if (chkShowSteps.Checked == true) //if user has chosen to not show steps - { - string displayArray = string.Join(",", arrayData); - MessageBox.Show("Sorting: " + displayArray); - } - } - - private void lblShowSteps_Click(object sender, EventArgs e) - { - //does nothing on its own - } - } - - -} diff --git a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.resx b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.resx deleted file mode 100755 index 29dcb1b..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/A2Cw_Clark0/sortsAndSearches.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/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/desktop.ini b/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/desktop.ini deleted file mode 100755 index bb9f3d6..0000000 --- a/projectFixedForm/Project Code Backups/03 01 2021 1651/A2Cw_Clark0/desktop.ini +++ /dev/null @@ -1,4 +0,0 @@ -[ViewState] -Mode= -Vid= -FolderType=Generic