From c74d3b984fae11c3eeb4ddd14676ee21882fdbb9 Mon Sep 17 00:00:00 2001 From: ​ Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: sentence capitalization --- .../3e9ec482-82bd-4417-8a74-7e17767bfff9.vsidx | Bin 0 -> 37128 bytes .../7d4d25ae-c8e4-4a92-bc2b-e7c0f622873a.vsidx | Bin 0 -> 13735 bytes .../9c698fee-9d56-4fb0-a962-b39713c4f990.vsidx | Bin 0 -> 40072 bytes .../.vs/Sentence Capitalization/v17/.suo | Bin 0 -> 41984 bytes .../Sentence Capitalization.sln | 25 +++++ .../Sentence Capitalization/App.config | 6 + .../Sentence Capitalization/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 ++ .../Sentence Capitalization.csproj | 83 ++++++++++++++ .../bin/Debug/Sentence Capitalization.exe | Bin 0 -> 10240 bytes .../bin/Debug/Sentence Capitalization.exe.config | 6 + .../bin/Debug/Sentence Capitalization.pdb | Bin 0 -> 34304 bytes .../Sentence Capitalization/mainForm.Designer.cs | 124 +++++++++++++++++++++ .../Sentence Capitalization/mainForm.cs | 52 +++++++++ .../Sentence Capitalization/mainForm.resx | 120 ++++++++++++++++++++ ...TFramework,Version=v4.7.2.AssemblyAttributes.cs | 4 + .../DesignTimeResolveAssemblyReferences.cache | Bin 0 -> 139 bytes .../DesignTimeResolveAssemblyReferencesInput.cache | Bin 0 -> 7255 bytes ...e Capitalization.csproj.AssemblyReference.cache | Bin 0 -> 6030 bytes ...e Capitalization.csproj.CoreCompileInputs.cache | 1 + ...ence Capitalization.csproj.FileListAbsolute.txt | 20 ++++ ...ce Capitalization.csproj.GenerateResource.cache | Bin 0 -> 132 bytes .../obj/Debug/Sentence Capitalization.exe | Bin 0 -> 10240 bytes .../obj/Debug/Sentence Capitalization.pdb | Bin 0 -> 34304 bytes ...e_Capitalization.Properties.Resources.resources | Bin 0 -> 180 bytes ...Capitalization.sentenceCapitalization.resources | Bin 0 -> 180 bytes 30 files changed, 724 insertions(+) create mode 100644 sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/3e9ec482-82bd-4417-8a74-7e17767bfff9.vsidx create mode 100644 sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/7d4d25ae-c8e4-4a92-bc2b-e7c0f622873a.vsidx create mode 100644 sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/9c698fee-9d56-4fb0-a962-b39713c4f990.vsidx create mode 100644 sentence_capitalization/.vs/Sentence Capitalization/v17/.suo create mode 100644 sentence_capitalization/Sentence Capitalization.sln create mode 100644 sentence_capitalization/Sentence Capitalization/App.config create mode 100644 sentence_capitalization/Sentence Capitalization/Program.cs create mode 100644 sentence_capitalization/Sentence Capitalization/Properties/AssemblyInfo.cs create mode 100644 sentence_capitalization/Sentence Capitalization/Properties/Resources.Designer.cs create mode 100644 sentence_capitalization/Sentence Capitalization/Properties/Resources.resx create mode 100644 sentence_capitalization/Sentence Capitalization/Properties/Settings.Designer.cs create mode 100644 sentence_capitalization/Sentence Capitalization/Properties/Settings.settings create mode 100644 sentence_capitalization/Sentence Capitalization/Sentence Capitalization.csproj create mode 100644 sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.exe create mode 100644 sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.exe.config create mode 100644 sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.pdb create mode 100644 sentence_capitalization/Sentence Capitalization/mainForm.Designer.cs create mode 100644 sentence_capitalization/Sentence Capitalization/mainForm.cs create mode 100644 sentence_capitalization/Sentence Capitalization/mainForm.resx create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/DesignTimeResolveAssemblyReferences.cache create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.AssemblyReference.cache create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.CoreCompileInputs.cache create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.FileListAbsolute.txt create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.GenerateResource.cache create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.exe create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.pdb create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence_Capitalization.Properties.Resources.resources create mode 100644 sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence_Capitalization.sentenceCapitalization.resources diff --git a/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/3e9ec482-82bd-4417-8a74-7e17767bfff9.vsidx b/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/3e9ec482-82bd-4417-8a74-7e17767bfff9.vsidx new file mode 100644 index 0000000..d01b555 Binary files /dev/null and b/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/3e9ec482-82bd-4417-8a74-7e17767bfff9.vsidx differ diff --git a/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/7d4d25ae-c8e4-4a92-bc2b-e7c0f622873a.vsidx b/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/7d4d25ae-c8e4-4a92-bc2b-e7c0f622873a.vsidx new file mode 100644 index 0000000..5c955e7 Binary files /dev/null and b/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/7d4d25ae-c8e4-4a92-bc2b-e7c0f622873a.vsidx differ diff --git a/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/9c698fee-9d56-4fb0-a962-b39713c4f990.vsidx b/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/9c698fee-9d56-4fb0-a962-b39713c4f990.vsidx new file mode 100644 index 0000000..01266c9 Binary files /dev/null and b/sentence_capitalization/.vs/Sentence Capitalization/FileContentIndex/9c698fee-9d56-4fb0-a962-b39713c4f990.vsidx differ diff --git a/sentence_capitalization/.vs/Sentence Capitalization/v17/.suo b/sentence_capitalization/.vs/Sentence Capitalization/v17/.suo new file mode 100644 index 0000000..400ec46 Binary files /dev/null and b/sentence_capitalization/.vs/Sentence Capitalization/v17/.suo differ diff --git a/sentence_capitalization/Sentence Capitalization.sln b/sentence_capitalization/Sentence Capitalization.sln new file mode 100644 index 0000000..2940992 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34009.444 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sentence Capitalization", "Sentence Capitalization\Sentence Capitalization.csproj", "{3563A971-0E27-4412-A177-C8D16BB321E1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3563A971-0E27-4412-A177-C8D16BB321E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3563A971-0E27-4412-A177-C8D16BB321E1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3563A971-0E27-4412-A177-C8D16BB321E1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3563A971-0E27-4412-A177-C8D16BB321E1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {18C55653-362F-440F-8A2D-56DD2F985BAF} + EndGlobalSection +EndGlobal diff --git a/sentence_capitalization/Sentence Capitalization/App.config b/sentence_capitalization/Sentence Capitalization/App.config new file mode 100644 index 0000000..5754728 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/sentence_capitalization/Sentence Capitalization/Program.cs b/sentence_capitalization/Sentence Capitalization/Program.cs new file mode 100644 index 0000000..94fc8e4 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Sentence_Capitalization +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new sentenceCapitalization()); + } + } +} diff --git a/sentence_capitalization/Sentence Capitalization/Properties/AssemblyInfo.cs b/sentence_capitalization/Sentence Capitalization/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..975672e --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/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("Sentence Capitalization")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Sentence Capitalization")] +[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("3563a971-0e27-4412-a177-c8d16bb321e1")] + +// 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/sentence_capitalization/Sentence Capitalization/Properties/Resources.Designer.cs b/sentence_capitalization/Sentence Capitalization/Properties/Resources.Designer.cs new file mode 100644 index 0000000..43a998e --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/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 Sentence_Capitalization.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("Sentence_Capitalization.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/sentence_capitalization/Sentence Capitalization/Properties/Resources.resx b/sentence_capitalization/Sentence Capitalization/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/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/sentence_capitalization/Sentence Capitalization/Properties/Settings.Designer.cs b/sentence_capitalization/Sentence Capitalization/Properties/Settings.Designer.cs new file mode 100644 index 0000000..cae8311 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/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 Sentence_Capitalization.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/sentence_capitalization/Sentence Capitalization/Properties/Settings.settings b/sentence_capitalization/Sentence Capitalization/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sentence_capitalization/Sentence Capitalization/Sentence Capitalization.csproj b/sentence_capitalization/Sentence Capitalization/Sentence Capitalization.csproj new file mode 100644 index 0000000..8c3deb9 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/Sentence Capitalization.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {3563A971-0E27-4412-A177-C8D16BB321E1} + WinExe + Sentence_Capitalization + Sentence Capitalization + 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 + + + mainForm.cs + + + + + mainForm.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/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.exe b/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.exe new file mode 100644 index 0000000..3555d5a Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.exe differ diff --git a/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.exe.config b/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.exe.config new file mode 100644 index 0000000..5754728 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.pdb b/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.pdb new file mode 100644 index 0000000..50e8373 Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/bin/Debug/Sentence Capitalization.pdb differ diff --git a/sentence_capitalization/Sentence Capitalization/mainForm.Designer.cs b/sentence_capitalization/Sentence Capitalization/mainForm.Designer.cs new file mode 100644 index 0000000..e4497b7 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/mainForm.Designer.cs @@ -0,0 +1,124 @@ +namespace Sentence_Capitalization +{ + partial class sentenceCapitalization + { + /// + /// 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.inputTxtBox = new System.Windows.Forms.TextBox(); + this.outputLbl = new System.Windows.Forms.Label(); + this.calculateBtn = new System.Windows.Forms.Button(); + this.clearBtn = new System.Windows.Forms.Button(); + this.exitBtn = new System.Windows.Forms.Button(); + this.helpLbl = new System.Windows.Forms.Label(); + this.SuspendLayout(); + // + // inputTxtBox + // + this.inputTxtBox.Location = new System.Drawing.Point(16, 71); + this.inputTxtBox.Name = "inputTxtBox"; + this.inputTxtBox.Size = new System.Drawing.Size(340, 20); + this.inputTxtBox.TabIndex = 0; + this.inputTxtBox.Text = "this is an example sentence."; + // + // outputLbl + // + this.outputLbl.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.outputLbl.Location = new System.Drawing.Point(16, 103); + this.outputLbl.Name = "outputLbl"; + this.outputLbl.Size = new System.Drawing.Size(340, 23); + this.outputLbl.TabIndex = 1; + this.outputLbl.Text = "?"; + this.outputLbl.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // calculateBtn + // + this.calculateBtn.Location = new System.Drawing.Point(150, 140); + this.calculateBtn.Name = "calculateBtn"; + this.calculateBtn.Size = new System.Drawing.Size(75, 36); + this.calculateBtn.TabIndex = 2; + this.calculateBtn.Text = "Calculate"; + this.calculateBtn.UseVisualStyleBackColor = true; + this.calculateBtn.Click += new System.EventHandler(this.calculateBtn_Click); + // + // clearBtn + // + this.clearBtn.Location = new System.Drawing.Point(69, 145); + this.clearBtn.Name = "clearBtn"; + this.clearBtn.Size = new System.Drawing.Size(75, 27); + this.clearBtn.TabIndex = 3; + this.clearBtn.Text = "Clear"; + this.clearBtn.UseVisualStyleBackColor = true; + this.clearBtn.Click += new System.EventHandler(this.clearBtn_Click); + // + // exitBtn + // + this.exitBtn.Location = new System.Drawing.Point(231, 145); + this.exitBtn.Name = "exitBtn"; + this.exitBtn.Size = new System.Drawing.Size(75, 27); + this.exitBtn.TabIndex = 4; + this.exitBtn.Text = "Exit"; + this.exitBtn.UseVisualStyleBackColor = true; + this.exitBtn.Click += new System.EventHandler(this.exitBtn_Click); + // + // helpLbl + // + this.helpLbl.AutoSize = true; + this.helpLbl.Location = new System.Drawing.Point(26, 44); + this.helpLbl.Name = "helpLbl"; + this.helpLbl.Size = new System.Drawing.Size(323, 13); + this.helpLbl.TabIndex = 5; + this.helpLbl.Text = "Click calculate to make the first letter in every sentence uppercase."; + // + // sentenceCapitalization + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(384, 211); + this.Controls.Add(this.helpLbl); + this.Controls.Add(this.exitBtn); + this.Controls.Add(this.clearBtn); + this.Controls.Add(this.calculateBtn); + this.Controls.Add(this.outputLbl); + this.Controls.Add(this.inputTxtBox); + this.Name = "sentenceCapitalization"; + this.Text = "Sentence Capitalization"; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.TextBox inputTxtBox; + private System.Windows.Forms.Label outputLbl; + private System.Windows.Forms.Button calculateBtn; + private System.Windows.Forms.Button clearBtn; + private System.Windows.Forms.Button exitBtn; + private System.Windows.Forms.Label helpLbl; + } +} + diff --git a/sentence_capitalization/Sentence Capitalization/mainForm.cs b/sentence_capitalization/Sentence Capitalization/mainForm.cs new file mode 100644 index 0000000..c096cb1 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/mainForm.cs @@ -0,0 +1,52 @@ +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 Sentence_Capitalization +{ + public partial class sentenceCapitalization : Form + { + public sentenceCapitalization() + { + InitializeComponent(); + } + + private string Capitalized(string str) + { + char[] ch = str.ToCharArray(); + bool makeUpper = true; + + for (int i = 0; i < ch.Length; i++) + if (makeUpper && char.IsLetter(ch[i])) { + ch[i] = char.ToUpper(ch[i]); + makeUpper = false; + } + else if (ch[i] == '.' || ch[i] == '?' || ch[i] == '!') + makeUpper = true; + + return new string(ch); + } + + private void calculateBtn_Click(object sender, EventArgs e) + { + outputLbl.Text = Capitalized(inputTxtBox.Text); + } + + private void clearBtn_Click(object sender, EventArgs e) + { + inputTxtBox.Text = ""; + outputLbl.Text = "?"; + } + + private void exitBtn_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/sentence_capitalization/Sentence Capitalization/mainForm.resx b/sentence_capitalization/Sentence Capitalization/mainForm.resx new file mode 100644 index 0000000..29dcb1b --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/mainForm.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/sentence_capitalization/Sentence Capitalization/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/sentence_capitalization/Sentence Capitalization/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..057ed7f --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/sentence_capitalization/Sentence Capitalization/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..10a1a65 Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/sentence_capitalization/Sentence Capitalization/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..ffe52d9 Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.AssemblyReference.cache b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.AssemblyReference.cache new file mode 100644 index 0000000..25ff1ca Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.AssemblyReference.cache differ diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.CoreCompileInputs.cache b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..462b932 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +525fe8fce396e28f759b3dc5cde100ed87f80ea9 diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.FileListAbsolute.txt b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..6866665 --- /dev/null +++ b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.FileListAbsolute.txt @@ -0,0 +1,20 @@ +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\bin\Debug\Sentence Capitalization.exe.config +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\bin\Debug\Sentence Capitalization.exe +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\bin\Debug\Sentence Capitalization.pdb +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.csproj.AssemblyReference.cache +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\obj\Debug\Sentence_Capitalization.sentenceCapitalization.resources +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\obj\Debug\Sentence_Capitalization.Properties.Resources.resources +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.csproj.GenerateResource.cache +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.csproj.CoreCompileInputs.cache +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.exe +C:\Users\User\source\repos\Sentence Capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.pdb +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\bin\Debug\Sentence Capitalization.exe.config +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\bin\Debug\Sentence Capitalization.exe +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\bin\Debug\Sentence Capitalization.pdb +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.csproj.AssemblyReference.cache +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\obj\Debug\Sentence_Capitalization.sentenceCapitalization.resources +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\obj\Debug\Sentence_Capitalization.Properties.Resources.resources +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.csproj.GenerateResource.cache +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.csproj.CoreCompileInputs.cache +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.exe +C:\Users\User\Documents\Comp\sentence_capitalization\Sentence Capitalization\obj\Debug\Sentence Capitalization.pdb diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.GenerateResource.cache b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.GenerateResource.cache new file mode 100644 index 0000000..8e1680d Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.csproj.GenerateResource.cache differ diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.exe b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.exe new file mode 100644 index 0000000..3555d5a Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.exe differ diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.pdb b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.pdb new file mode 100644 index 0000000..50e8373 Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence Capitalization.pdb differ diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence_Capitalization.Properties.Resources.resources b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence_Capitalization.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence_Capitalization.Properties.Resources.resources differ diff --git a/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence_Capitalization.sentenceCapitalization.resources b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence_Capitalization.sentenceCapitalization.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/sentence_capitalization/Sentence Capitalization/obj/Debug/Sentence_Capitalization.sentenceCapitalization.resources differ -- cgit 1.4.1