Finish MP1, broken files

This commit is contained in:
2022-09-06 20:00:35 -05:00
parent bb25fe9ac8
commit 2d70bdf789
2605 changed files with 10473 additions and 47 deletions

View File

@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.3.32825.248
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StadiumSeating_CalebFontenot", "StadiumSeating_CalebFontenot\StadiumSeating_CalebFontenot.csproj", "{B1A73704-9FC3-475F-89C9-DE9B828E71C5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B1A73704-9FC3-475F-89C9-DE9B828E71C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1A73704-9FC3-475F-89C9-DE9B828E71C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1A73704-9FC3-475F-89C9-DE9B828E71C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1A73704-9FC3-475F-89C9-DE9B828E71C5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {83836FF6-776A-4A3D-AC3D-3FA80C67BE3E}
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,289 @@
namespace StadiumSeating_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.groupBox1 = new System.Windows.Forms.GroupBox();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.ticketsSoldC = new System.Windows.Forms.TextBox();
this.ticketsSoldB = new System.Windows.Forms.TextBox();
this.ticketsSoldA = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.totalLabel = new System.Windows.Forms.TextBox();
this.revenueGeneratedCLabel = new System.Windows.Forms.TextBox();
this.revenueGeneratedBLabel = new System.Windows.Forms.TextBox();
this.revenueGeneratedALabel = new System.Windows.Forms.TextBox();
this.label8 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.calculateButton = new System.Windows.Forms.Button();
this.clearButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label4);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Controls.Add(this.ticketsSoldC);
this.groupBox1.Controls.Add(this.ticketsSoldB);
this.groupBox1.Controls.Add(this.ticketsSoldA);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(265, 198);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Tickets Sold";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(58, 148);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(48, 15);
this.label4.TabIndex = 6;
this.label4.Text = "Class C:";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(58, 119);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(47, 15);
this.label3.TabIndex = 5;
this.label3.Text = "Class B:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(58, 90);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(48, 15);
this.label2.TabIndex = 4;
this.label2.Text = "Class A:";
//
// ticketsSoldC
//
this.ticketsSoldC.Location = new System.Drawing.Point(112, 145);
this.ticketsSoldC.Name = "ticketsSoldC";
this.ticketsSoldC.Size = new System.Drawing.Size(100, 23);
this.ticketsSoldC.TabIndex = 3;
this.ticketsSoldC.TextChanged += new System.EventHandler(this.ticketsSoldC_TextChanged);
//
// ticketsSoldB
//
this.ticketsSoldB.Location = new System.Drawing.Point(112, 116);
this.ticketsSoldB.Name = "ticketsSoldB";
this.ticketsSoldB.Size = new System.Drawing.Size(100, 23);
this.ticketsSoldB.TabIndex = 2;
this.ticketsSoldB.TextChanged += new System.EventHandler(this.ticketsSoldB_TextChanged);
//
// ticketsSoldA
//
this.ticketsSoldA.Location = new System.Drawing.Point(112, 87);
this.ticketsSoldA.Name = "ticketsSoldA";
this.ticketsSoldA.Size = new System.Drawing.Size(100, 23);
this.ticketsSoldA.TabIndex = 1;
this.ticketsSoldA.TextChanged += new System.EventHandler(this.ticketsSoldA_TextChanged);
//
// label1
//
this.label1.Location = new System.Drawing.Point(32, 35);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(180, 39);
this.label1.TabIndex = 0;
this.label1.Text = "Enter the number of tickets sold for each class of seats.";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.totalLabel);
this.groupBox2.Controls.Add(this.revenueGeneratedCLabel);
this.groupBox2.Controls.Add(this.revenueGeneratedBLabel);
this.groupBox2.Controls.Add(this.revenueGeneratedALabel);
this.groupBox2.Controls.Add(this.label8);
this.groupBox2.Controls.Add(this.label7);
this.groupBox2.Controls.Add(this.label6);
this.groupBox2.Controls.Add(this.label5);
this.groupBox2.Location = new System.Drawing.Point(321, 12);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(213, 198);
this.groupBox2.TabIndex = 1;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "Revenue Generated";
//
// totalLabel
//
this.totalLabel.Location = new System.Drawing.Point(80, 145);
this.totalLabel.Name = "totalLabel";
this.totalLabel.ReadOnly = true;
this.totalLabel.Size = new System.Drawing.Size(100, 23);
this.totalLabel.TabIndex = 7;
//
// revenueGeneratedCLabel
//
this.revenueGeneratedCLabel.Location = new System.Drawing.Point(80, 111);
this.revenueGeneratedCLabel.Name = "revenueGeneratedCLabel";
this.revenueGeneratedCLabel.ReadOnly = true;
this.revenueGeneratedCLabel.Size = new System.Drawing.Size(100, 23);
this.revenueGeneratedCLabel.TabIndex = 6;
//
// revenueGeneratedBLabel
//
this.revenueGeneratedBLabel.Location = new System.Drawing.Point(80, 82);
this.revenueGeneratedBLabel.Name = "revenueGeneratedBLabel";
this.revenueGeneratedBLabel.ReadOnly = true;
this.revenueGeneratedBLabel.Size = new System.Drawing.Size(100, 23);
this.revenueGeneratedBLabel.TabIndex = 5;
//
// revenueGeneratedALabel
//
this.revenueGeneratedALabel.Location = new System.Drawing.Point(80, 53);
this.revenueGeneratedALabel.Name = "revenueGeneratedALabel";
this.revenueGeneratedALabel.ReadOnly = true;
this.revenueGeneratedALabel.Size = new System.Drawing.Size(100, 23);
this.revenueGeneratedALabel.TabIndex = 4;
//
// label8
//
this.label8.AutoSize = true;
this.label8.Location = new System.Drawing.Point(39, 148);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(35, 15);
this.label8.TabIndex = 3;
this.label8.Text = "Total:";
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(27, 114);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(48, 15);
this.label7.TabIndex = 2;
this.label7.Text = "Class C:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(26, 85);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(47, 15);
this.label6.TabIndex = 1;
this.label6.Text = "Class B:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(27, 56);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(48, 15);
this.label5.TabIndex = 0;
this.label5.Text = "Class A:";
//
// calculateButton
//
this.calculateButton.Location = new System.Drawing.Point(149, 230);
this.calculateButton.Name = "calculateButton";
this.calculateButton.Size = new System.Drawing.Size(75, 54);
this.calculateButton.TabIndex = 2;
this.calculateButton.Text = "Calculate Revenue";
this.calculateButton.UseVisualStyleBackColor = true;
this.calculateButton.Click += new System.EventHandler(this.calculateButton_Click);
//
// clearButton
//
this.clearButton.Enabled = false;
this.clearButton.Location = new System.Drawing.Point(230, 230);
this.clearButton.Name = "clearButton";
this.clearButton.Size = new System.Drawing.Size(75, 54);
this.clearButton.TabIndex = 3;
this.clearButton.Text = "Clear";
this.clearButton.UseVisualStyleBackColor = true;
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(311, 230);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(75, 54);
this.exitButton.TabIndex = 4;
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(542, 296);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.clearButton);
this.Controls.Add(this.calculateButton);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Name = "Form1";
this.Text = "Stadium Seating - Caleb Fontenot";
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private GroupBox groupBox1;
private TextBox ticketsSoldA;
private Label label1;
private GroupBox groupBox2;
private Label label4;
private Label label3;
private Label label2;
private TextBox ticketsSoldC;
private TextBox ticketsSoldB;
private TextBox totalLabel;
private TextBox revenueGeneratedCLabel;
private TextBox revenueGeneratedBLabel;
private TextBox revenueGeneratedALabel;
private Label label8;
private Label label7;
private Label label6;
private Label label5;
private Button calculateButton;
private Button clearButton;
private Button exitButton;
}
}

View File

@@ -0,0 +1,80 @@
using System.CodeDom;
namespace StadiumSeating_CalebFontenot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
// Define constants
public readonly double classASeatsCost = 15;
public readonly double classBSeatsCost = 12;
public readonly double classCSeatsCost = 9;
private void calculateButton_Click(object sender, EventArgs e)
{
// Define Vars
double ticketsSoldNumberA; // Used to store number of tickets sold for Class A
double ticketsSoldNumberB; // Used to store number of tickets sold for Class B
double ticketsSoldNumberC; // Used to store number of tickets sold for Class C
double revenueGeneratedA; //Used to store revenue for Class A
double revenueGeneratedB; //Used to store revenue for Class B
double revenueGeneratedC; //Used to store revenue for Class C
double total;
// Get data
ticketsSoldNumberA = double.Parse(ticketsSoldA.Text);
ticketsSoldNumberB = double.Parse(ticketsSoldB.Text);
ticketsSoldNumberC = double.Parse(ticketsSoldC.Text);
// Calculate!
revenueGeneratedA = ticketsSoldNumberA * classASeatsCost;
revenueGeneratedB = ticketsSoldNumberB * classBSeatsCost;
revenueGeneratedC = ticketsSoldNumberC * classCSeatsCost;
total = revenueGeneratedA + revenueGeneratedB + revenueGeneratedC;
//Output
revenueGeneratedALabel.Text = "$ " + revenueGeneratedA;
revenueGeneratedBLabel.Text = "$ " + revenueGeneratedB;
revenueGeneratedCLabel.Text = "$ " + revenueGeneratedC;
totalLabel.Text = "$ " + total;
}
private void ticketsSoldA_TextChanged(object sender, EventArgs e)
{
clearButton.Enabled = true;
}
private void ticketsSoldB_TextChanged(object sender, EventArgs e)
{
clearButton.Enabled = true;
}
private void ticketsSoldC_TextChanged(object sender, EventArgs e)
{
clearButton.Enabled = true;
}
private void clearButton_Click(object sender, EventArgs e)
{
clearButton.Enabled = false;
revenueGeneratedALabel.Text = "";
revenueGeneratedBLabel.Text = "";
revenueGeneratedCLabel.Text = "";
totalLabel.Text = "";
ticketsSoldA.Text = "";
ticketsSoldB.Text = "";
ticketsSoldC.Text = "";
}
private void exitButton_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -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>

View File

@@ -0,0 +1,17 @@
namespace StadiumSeating_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());
}
}
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\net6.0-windows\publish\win-x64\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<_TargetId>Folder</_TargetId>
<TargetFramework>net6.0-windows</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishSingleFile>false</PublishSingleFile>
<PublishReadyToRun>false</PublishReadyToRun>
</PropertyGroup>
</Project>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2022-09-06T22:21:48.7013812Z;True|2022-09-06T17:19:09.3434734-05:00;True|2022-09-06T17:18:49.3146531-05:00;True|2022-09-06T17:13:16.1926148-05:00;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>

View File

@@ -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>

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>Z:\home\caleb\Documents\ASDV-C-Sharp\MP1\StadiumSeating_CalebFontenot\StadiumSeating_CalebFontenot\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile Update="Form1.cs">
<SubType>Form</SubType>
</Compile>
</ItemGroup>
</Project>

View File

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

View File

@@ -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"
}
]
}
}

View File

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

View File

@@ -0,0 +1,18 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"frameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
}

View File

@@ -0,0 +1,18 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"includedFrameworks": [
{
"name": "Microsoft.NETCore.App",
"version": "6.0.0"
},
{
"name": "Microsoft.WindowsDesktop.App",
"version": "6.0.0"
}
],
"configProperties": {
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false
}
}
}

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