More MP2 Progress

master
Chloe Fontenot 🏳️‍⚧️ 2022-09-15 14:58:29 +07:00
parent 5be278f113
commit b90ebbb217
110 changed files with 1800 additions and 0 deletions

@ -0,0 +1,187 @@
namespace Problem1Color_CalebFontenot
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.firstColorGroupBox = new System.Windows.Forms.GroupBox();
this.firstYellowRadioButton = new System.Windows.Forms.RadioButton();
this.firstBlueRadioButton = new System.Windows.Forms.RadioButton();
this.firstRedRadioButton = new System.Windows.Forms.RadioButton();
this.secondColorGroupBox = new System.Windows.Forms.GroupBox();
this.secondYellowRadioButton = new System.Windows.Forms.RadioButton();
this.secondBlueRadioButton = new System.Windows.Forms.RadioButton();
this.secondRedRadioButton = new System.Windows.Forms.RadioButton();
this.mixButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.firstColorGroupBox.SuspendLayout();
this.secondColorGroupBox.SuspendLayout();
this.SuspendLayout();
//
// firstColorGroupBox
//
this.firstColorGroupBox.Controls.Add(this.firstYellowRadioButton);
this.firstColorGroupBox.Controls.Add(this.firstBlueRadioButton);
this.firstColorGroupBox.Controls.Add(this.firstRedRadioButton);
this.firstColorGroupBox.Location = new System.Drawing.Point(12, 12);
this.firstColorGroupBox.Name = "firstColorGroupBox";
this.firstColorGroupBox.Size = new System.Drawing.Size(156, 169);
this.firstColorGroupBox.TabIndex = 0;
this.firstColorGroupBox.TabStop = false;
this.firstColorGroupBox.Text = "Select the First Color";
//
// firstYellowRadioButton
//
this.firstYellowRadioButton.AutoSize = true;
this.firstYellowRadioButton.Location = new System.Drawing.Point(40, 89);
this.firstYellowRadioButton.Name = "firstYellowRadioButton";
this.firstYellowRadioButton.Size = new System.Drawing.Size(59, 19);
this.firstYellowRadioButton.TabIndex = 2;
this.firstYellowRadioButton.TabStop = true;
this.firstYellowRadioButton.Text = "Yellow";
this.firstYellowRadioButton.UseVisualStyleBackColor = true;
//
// firstBlueRadioButton
//
this.firstBlueRadioButton.AutoSize = true;
this.firstBlueRadioButton.Location = new System.Drawing.Point(40, 64);
this.firstBlueRadioButton.Name = "firstBlueRadioButton";
this.firstBlueRadioButton.Size = new System.Drawing.Size(48, 19);
this.firstBlueRadioButton.TabIndex = 1;
this.firstBlueRadioButton.TabStop = true;
this.firstBlueRadioButton.Text = "Blue";
this.firstBlueRadioButton.UseVisualStyleBackColor = true;
//
// firstRedRadioButton
//
this.firstRedRadioButton.AutoSize = true;
this.firstRedRadioButton.Location = new System.Drawing.Point(40, 39);
this.firstRedRadioButton.Name = "firstRedRadioButton";
this.firstRedRadioButton.Size = new System.Drawing.Size(45, 19);
this.firstRedRadioButton.TabIndex = 0;
this.firstRedRadioButton.TabStop = true;
this.firstRedRadioButton.Text = "Red";
this.firstRedRadioButton.UseVisualStyleBackColor = true;
//
// secondColorGroupBox
//
this.secondColorGroupBox.Controls.Add(this.secondYellowRadioButton);
this.secondColorGroupBox.Controls.Add(this.secondBlueRadioButton);
this.secondColorGroupBox.Controls.Add(this.secondRedRadioButton);
this.secondColorGroupBox.Location = new System.Drawing.Point(174, 12);
this.secondColorGroupBox.Name = "secondColorGroupBox";
this.secondColorGroupBox.Size = new System.Drawing.Size(163, 169);
this.secondColorGroupBox.TabIndex = 1;
this.secondColorGroupBox.TabStop = false;
this.secondColorGroupBox.Text = "Select the Second Color";
//
// secondYellowRadioButton
//
this.secondYellowRadioButton.AutoSize = true;
this.secondYellowRadioButton.Location = new System.Drawing.Point(39, 89);
this.secondYellowRadioButton.Name = "secondYellowRadioButton";
this.secondYellowRadioButton.Size = new System.Drawing.Size(59, 19);
this.secondYellowRadioButton.TabIndex = 3;
this.secondYellowRadioButton.TabStop = true;
this.secondYellowRadioButton.Text = "Yellow";
this.secondYellowRadioButton.UseVisualStyleBackColor = true;
//
// secondBlueRadioButton
//
this.secondBlueRadioButton.AutoSize = true;
this.secondBlueRadioButton.Location = new System.Drawing.Point(39, 64);
this.secondBlueRadioButton.Name = "secondBlueRadioButton";
this.secondBlueRadioButton.Size = new System.Drawing.Size(48, 19);
this.secondBlueRadioButton.TabIndex = 2;
this.secondBlueRadioButton.TabStop = true;
this.secondBlueRadioButton.Text = "Blue";
this.secondBlueRadioButton.UseVisualStyleBackColor = true;
//
// secondRedRadioButton
//
this.secondRedRadioButton.AutoSize = true;
this.secondRedRadioButton.Location = new System.Drawing.Point(39, 39);
this.secondRedRadioButton.Name = "secondRedRadioButton";
this.secondRedRadioButton.Size = new System.Drawing.Size(45, 19);
this.secondRedRadioButton.TabIndex = 1;
this.secondRedRadioButton.TabStop = true;
this.secondRedRadioButton.Text = "Red";
this.secondRedRadioButton.UseVisualStyleBackColor = true;
//
// mixButton
//
this.mixButton.Location = new System.Drawing.Point(93, 183);
this.mixButton.Name = "mixButton";
this.mixButton.Size = new System.Drawing.Size(75, 23);
this.mixButton.TabIndex = 2;
this.mixButton.Text = "Mix";
this.mixButton.UseVisualStyleBackColor = true;
this.mixButton.Click += new System.EventHandler(this.mixButton_Click);
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(174, 183);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(75, 23);
this.exitButton.TabIndex = 3;
this.exitButton.Text = "Exit";
this.exitButton.UseVisualStyleBackColor = true;
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(347, 218);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.mixButton);
this.Controls.Add(this.secondColorGroupBox);
this.Controls.Add(this.firstColorGroupBox);
this.Name = "Form1";
this.Text = "Color Mixer - Caleb Fontenot";
this.firstColorGroupBox.ResumeLayout(false);
this.firstColorGroupBox.PerformLayout();
this.secondColorGroupBox.ResumeLayout(false);
this.secondColorGroupBox.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private GroupBox firstColorGroupBox;
private RadioButton firstYellowRadioButton;
private RadioButton firstBlueRadioButton;
private RadioButton firstRedRadioButton;
private GroupBox secondColorGroupBox;
private RadioButton secondYellowRadioButton;
private RadioButton secondBlueRadioButton;
private RadioButton secondRedRadioButton;
private Button mixButton;
private Button exitButton;
}
}

@ -0,0 +1,53 @@
namespace Problem1Color_CalebFontenot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void mixButton_Click(object sender, EventArgs e)
{
try
{
// Check what radioButtons are selected, change color accordingly
if (firstRedRadioButton.Checked && secondRedRadioButton.Checked) //Double Red
{
this.BackColor = Color.Red;
}
else if (firstBlueRadioButton.Checked && secondBlueRadioButton.Checked) //Double Blue
{
this.BackColor = Color.Blue;
}
else if (firstYellowRadioButton.Checked && secondYellowRadioButton.Checked) //Double Yellow
{
this.BackColor = Color.Yellow;
}
else if(firstRedRadioButton.Checked && secondBlueRadioButton.Checked || firstBlueRadioButton.Checked && secondRedRadioButton.Checked) //Purple
{
this.BackColor = Color.Purple;
}
else if (firstRedRadioButton.Checked && secondYellowRadioButton.Checked || firstYellowRadioButton.Checked && secondRedRadioButton.Checked) //Orange
{
this.BackColor = Color.Orange;
}
else if (firstBlueRadioButton.Checked && secondYellowRadioButton.Checked || firstYellowRadioButton.Checked && secondBlueRadioButton.Checked) //Green
{
this.BackColor = Color.Green;
}
}
catch
{
MessageBox.Show("Invalid Input");
}
}
private void exitButton_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

@ -0,0 +1,60 @@
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Update="Form1.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32804.467
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Problem1Color_CalebFontenot", "Problem1Color_CalebFontenot.csproj", "{39336EBC-72B3-4FC4-8BA4-A22572EB92F0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{39336EBC-72B3-4FC4-8BA4-A22572EB92F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{39336EBC-72B3-4FC4-8BA4-A22572EB92F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{39336EBC-72B3-4FC4-8BA4-A22572EB92F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{39336EBC-72B3-4FC4-8BA4-A22572EB92F0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {F90C590E-5677-4E57-9411-D74F302621B0}
EndGlobalSection
EndGlobal

@ -0,0 +1,17 @@
namespace Problem1Color_CalebFontenot
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
}

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Problem1Color_CalebFontenot/1.0.0": {
"runtime": {
"Problem1Color_CalebFontenot.dll": {}
}
}
}
},
"libraries": {
"Problem1Color_CalebFontenot/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

@ -0,0 +1,15 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
]
}
}

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]

@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Problem1Color_CalebFontenot")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Problem1Color_CalebFontenot")]
[assembly: System.Reflection.AssemblyTitleAttribute("Problem1Color_CalebFontenot")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// Generated by the MSBuild WriteCodeFragment class.

@ -0,0 +1,16 @@
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Problem1Color_CalebFontenot
build_property.ProjectDir = Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\

@ -0,0 +1,10 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Drawing;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
global using global::System.Windows.Forms;

@ -0,0 +1,17 @@
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\bin\Debug\net6.0-windows\Problem1Color_CalebFontenot.exe
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\bin\Debug\net6.0-windows\Problem1Color_CalebFontenot.deps.json
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\bin\Debug\net6.0-windows\Problem1Color_CalebFontenot.runtimeconfig.json
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\bin\Debug\net6.0-windows\Problem1Color_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\bin\Debug\net6.0-windows\Problem1Color_CalebFontenot.pdb
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.csproj.AssemblyReference.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.Form1.resources
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.csproj.GenerateResource.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.GeneratedMSBuildEditorConfig.editorconfig
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.AssemblyInfoInputs.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.AssemblyInfo.cs
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.csproj.CoreCompileInputs.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\refint\Problem1Color_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.pdb
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\Problem1Color_CalebFontenot.genruntimeconfig.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem1Color_CalebFontenot\obj\Debug\net6.0-windows\ref\Problem1Color_CalebFontenot.dll

@ -0,0 +1,11 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {}
},
"libraries": {}
}

@ -0,0 +1,22 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"additionalProbingPaths": [
"C:\\Users\\caleb\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\caleb\\.nuget\\packages"
],
"configProperties": {
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}

@ -0,0 +1,66 @@
{
"format": 1,
"restore": {
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\Problem1Color_CalebFontenot.csproj": {}
},
"projects": {
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\Problem1Color_CalebFontenot.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\Problem1Color_CalebFontenot.csproj",
"projectName": "Problem1Color_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\Problem1Color_CalebFontenot.csproj",
"packagesPath": "C:\\Users\\caleb\\.nuget\\packages\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\caleb\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\caleb\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.3.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\caleb\.nuget\packages\" />
</ItemGroup>
</Project>

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

@ -0,0 +1,71 @@
{
"version": 3,
"targets": {
"net6.0-windows7.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0-windows7.0": []
},
"packageFolders": {
"C:\\Users\\caleb\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\Problem1Color_CalebFontenot.csproj",
"projectName": "Problem1Color_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\Problem1Color_CalebFontenot.csproj",
"packagesPath": "C:\\Users\\caleb\\.nuget\\packages\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\caleb\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "Vw/a26HZ1eecYdaxHijc8vbx5pqqcLETHQRSfz+XDrTqWn+qE8RzWWHpWA5yxItaqHnLQwOu5IRCfaTHecI2qg==",
"success": true,
"projectFilePath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem1Color_CalebFontenot\\Problem1Color_CalebFontenot.csproj",
"expectedPackageFiles": [],
"logs": []
}

@ -0,0 +1,119 @@
namespace Problem2BookClubPoints_CalebFontenot
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.booksPurchasedTextBox = new System.Windows.Forms.TextBox();
this.pointsTextBox = new System.Windows.Forms.TextBox();
this.okButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(245, 15);
this.label1.TabIndex = 0;
this.label1.Text = "Please enter the number of books purchased:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(166, 39);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(91, 15);
this.label2.TabIndex = 1;
this.label2.Text = "Points awarded:";
//
// booksPurchasedTextBox
//
this.booksPurchasedTextBox.Location = new System.Drawing.Point(263, 6);
this.booksPurchasedTextBox.Name = "booksPurchasedTextBox";
this.booksPurchasedTextBox.Size = new System.Drawing.Size(100, 23);
this.booksPurchasedTextBox.TabIndex = 2;
//
// pointsTextBox
//
this.pointsTextBox.Location = new System.Drawing.Point(263, 35);
this.pointsTextBox.Name = "pointsTextBox";
this.pointsTextBox.ReadOnly = true;
this.pointsTextBox.Size = new System.Drawing.Size(100, 23);
this.pointsTextBox.TabIndex = 3;
//
// okButton
//
this.okButton.Location = new System.Drawing.Point(103, 78);
this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(75, 23);
this.okButton.TabIndex = 4;
this.okButton.Text = "OK";
this.okButton.UseVisualStyleBackColor = true;
this.okButton.Click += new System.EventHandler(this.okButton_Click);
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(184, 78);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(75, 23);
this.exitButton.TabIndex = 5;
this.exitButton.Text = "Exit";
this.exitButton.UseVisualStyleBackColor = true;
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(376, 113);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.okButton);
this.Controls.Add(this.pointsTextBox);
this.Controls.Add(this.booksPurchasedTextBox);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Label label1;
private Label label2;
private TextBox booksPurchasedTextBox;
private TextBox pointsTextBox;
private Button okButton;
private Button exitButton;
}
}

@ -0,0 +1,62 @@
namespace Problem2BookClubPoints_CalebFontenot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void okButton_Click(object sender, EventArgs e)
{
try
{
// Define variables
int booksPurchased,
pointsEarned = 0;
// Get data
booksPurchased = int.Parse(booksPurchasedTextBox.Text);
// Determine points earned with if logic:
if (booksPurchased >= 4)
{
pointsEarned = 60;
}
if (booksPurchased == 3)
{
pointsEarned = 30;
}
if (booksPurchased == 2)
{
pointsEarned = 15;
}
if (booksPurchased == 1)
{
pointsEarned = 5;
}
if (booksPurchased == 0)
{
pointsEarned = 0;
}
// Write pointsEarned to textbox.
pointsTextBox.Text = pointsEarned.ToString();
}
catch
{
MessageBox.Show("Invalid Input");
}
}
private void exitButton_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

@ -0,0 +1,60 @@
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Update="Form1.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32804.467
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Problem2BookClubPoints_CalebFontenot", "Problem2BookClubPoints_CalebFontenot.csproj", "{F5B841A1-2AB8-4B91-BC83-A1434E275198}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F5B841A1-2AB8-4B91-BC83-A1434E275198}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F5B841A1-2AB8-4B91-BC83-A1434E275198}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F5B841A1-2AB8-4B91-BC83-A1434E275198}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F5B841A1-2AB8-4B91-BC83-A1434E275198}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8CFA783D-8EB9-4AB9-AF3D-011A8D57C41F}
EndGlobalSection
EndGlobal

@ -0,0 +1,17 @@
namespace Problem2BookClubPoints_CalebFontenot
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
}

@ -0,0 +1,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Problem2BookClubPoints_CalebFontenot/1.0.0": {
"runtime": {
"Problem2BookClubPoints_CalebFontenot.dll": {}
}
}
}
},
"libraries": {
"Problem2BookClubPoints_CalebFontenot/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}

@ -0,0 +1,15 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
]
}
}

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]

@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Problem2BookClubPoints_CalebFontenot")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Problem2BookClubPoints_CalebFontenot")]
[assembly: System.Reflection.AssemblyTitleAttribute("Problem2BookClubPoints_CalebFontenot")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// Generated by the MSBuild WriteCodeFragment class.

@ -0,0 +1,16 @@
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Problem2BookClubPoints_CalebFontenot
build_property.ProjectDir = Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\

@ -0,0 +1,10 @@
// <auto-generated/>
global using global::System;
global using global::System.Collections.Generic;
global using global::System.Drawing;
global using global::System.IO;
global using global::System.Linq;
global using global::System.Net.Http;
global using global::System.Threading;
global using global::System.Threading.Tasks;
global using global::System.Windows.Forms;

@ -0,0 +1,17 @@
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\bin\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.exe
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\bin\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.deps.json
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\bin\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.runtimeconfig.json
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\bin\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\bin\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.pdb
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.csproj.AssemblyReference.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.Form1.resources
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.csproj.GenerateResource.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.GeneratedMSBuildEditorConfig.editorconfig
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.AssemblyInfoInputs.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.AssemblyInfo.cs
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.csproj.CoreCompileInputs.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\refint\Problem2BookClubPoints_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.pdb
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\Problem2BookClubPoints_CalebFontenot.genruntimeconfig.cache
Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem2BookClubPoints_CalebFontenot\obj\Debug\net6.0-windows\ref\Problem2BookClubPoints_CalebFontenot.dll

@ -0,0 +1,11 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {}
},
"libraries": {}
}

@ -0,0 +1,22 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"additionalProbingPaths": [
"C:\\Users\\caleb\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\caleb\\.nuget\\packages"
],
"configProperties": {
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}

@ -0,0 +1,66 @@
{
"format": 1,
"restore": {
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\Problem2BookClubPoints_CalebFontenot.csproj": {}
},
"projects": {
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\Problem2BookClubPoints_CalebFontenot.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\Problem2BookClubPoints_CalebFontenot.csproj",
"projectName": "Problem2BookClubPoints_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\Problem2BookClubPoints_CalebFontenot.csproj",
"packagesPath": "C:\\Users\\caleb\\.nuget\\packages\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\caleb\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}
}

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\caleb\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.3.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\caleb\.nuget\packages\" />
</ItemGroup>
</Project>

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

@ -0,0 +1,71 @@
{
"version": 3,
"targets": {
"net6.0-windows7.0": {}
},
"libraries": {},
"projectFileDependencyGroups": {
"net6.0-windows7.0": []
},
"packageFolders": {
"C:\\Users\\caleb\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\Problem2BookClubPoints_CalebFontenot.csproj",
"projectName": "Problem2BookClubPoints_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\Problem2BookClubPoints_CalebFontenot.csproj",
"packagesPath": "C:\\Users\\caleb\\.nuget\\packages\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\caleb\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net6.0-windows"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net6.0-windows7.0": {
"targetAlias": "net6.0-windows",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.WindowsDesktop.App.WindowsForms": {
"privateAssets": "none"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.400\\RuntimeIdentifierGraph.json"
}
}
}
}

@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "DCRpx4PWHD8uCWb+zdPVNxn6TaL9sOB7br1y3bqa4B+AfFjfquCfAkP4lwx/JPOLxRMSbpyoABf1O7xDYCGT1A==",
"success": true,
"projectFilePath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\MP2\\Problem2BookClubPoints_CalebFontenot\\Problem2BookClubPoints_CalebFontenot.csproj",
"expectedPackageFiles": [],
"logs": []
}

@ -0,0 +1,139 @@
namespace Problem3FatPercentageCalculator_CalebFontenot
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.caloriesTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.fatGramsTextBox = new System.Windows.Forms.TextBox();
this.textBox3 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// caloriesTextBox
//
this.caloriesTextBox.Location = new System.Drawing.Point(177, 6);
this.caloriesTextBox.Name = "caloriesTextBox";
this.caloriesTextBox.Size = new System.Drawing.Size(125, 23);
this.caloriesTextBox.TabIndex = 0;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 9);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(159, 15);
this.label1.TabIndex = 1;
this.label1.Text = "Enter the number of calories:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(2, 40);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(169, 15);
this.label2.TabIndex = 2;
this.label2.Text = "Enter the number of fat grams:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(70, 73);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(101, 15);
this.label3.TabIndex = 3;
this.label3.Text = "Calories from fat: ";
//
// fatGramsTextBox
//
this.fatGramsTextBox.Location = new System.Drawing.Point(177, 37);
this.fatGramsTextBox.Name = "fatGramsTextBox";
this.fatGramsTextBox.Size = new System.Drawing.Size(125, 23);
this.fatGramsTextBox.TabIndex = 4;
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(177, 70);
this.textBox3.Name = "textBox3";
this.textBox3.ReadOnly = true;
this.textBox3.Size = new System.Drawing.Size(125, 23);
this.textBox3.TabIndex = 5;
//
// button1
//
this.button1.Location = new System.Drawing.Point(96, 114);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 6;
this.button1.Text = "Calculate!";
this.button1.UseVisualStyleBackColor = true;
//
// button2
//
this.button2.Location = new System.Drawing.Point(177, 114);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 7;
this.button2.Text = "Close";
this.button2.UseVisualStyleBackColor = true;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(313, 149);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox3);
this.Controls.Add(this.fatGramsTextBox);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.caloriesTextBox);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private TextBox caloriesTextBox;
private Label label1;
private Label label2;
private Label label3;
private TextBox fatGramsTextBox;
private TextBox textBox3;
private Button button1;
private Button button2;
}
}

@ -0,0 +1,10 @@
namespace Problem3FatPercentageCalculator_CalebFontenot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}

@ -0,0 +1,60 @@
<root>
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWindowsForms>true</UseWindowsForms>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
</Project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Update="Form1.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32804.467
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Problem3FatPercentageCalculator_CalebFontenot", "Problem3FatPercentageCalculator_CalebFontenot.csproj", "{8BA28C15-059D-46F2-A73B-20A168569B6F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8BA28C15-059D-46F2-A73B-20A168569B6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8BA28C15-059D-46F2-A73B-20A168569B6F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8BA28C15-059D-46F2-A73B-20A168569B6F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8BA28C15-059D-46F2-A73B-20A168569B6F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {53A665A1-E5AA-438E-8429-49257224DB5F}
EndGlobalSection
EndGlobal

@ -0,0 +1,17 @@
namespace Problem3FatPercentageCalculator_CalebFontenot
{
internal static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
// To customize application configuration such as set high DPI settings or default font,
// see https://aka.ms/applicationconfiguration.
ApplicationConfiguration.Initialize();
Application.Run(new Form1());
}
}
}

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]

@ -0,0 +1,25 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Problem3FatPercentageCalculator_CalebFontenot")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Problem3FatPercentageCalculator_CalebFontenot")]
[assembly: System.Reflection.AssemblyTitleAttribute("Problem3FatPercentageCalculator_CalebFontenot")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]
// Generated by the MSBuild WriteCodeFragment class.

@ -0,0 +1,16 @@
is_global = true
build_property.ApplicationManifest =
build_property.StartupObject =
build_property.ApplicationDefaultFont =
build_property.ApplicationHighDpiMode =
build_property.ApplicationUseCompatibleTextRendering =
build_property.ApplicationVisualStyles =
build_property.TargetFramework = net6.0-windows
build_property.TargetPlatformMinVersion = 7.0
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = Problem3FatPercentageCalculator_CalebFontenot
build_property.ProjectDir = Z:\media\DataEXT4\Documents\ASDV C#\MP2\Problem3FatPercentageCalculator_CalebFontenot\

Some files were not shown because too many files have changed in this diff Show More