master
Caleb Fontenot 2022-09-01 13:58:57 +07:00
parent bdffd2204f
commit 513d038109
48 changed files with 499 additions and 2 deletions

@ -0,0 +1 @@
,caleb,caleb-gaming-laptop-archlinux,01.09.2022 13:53,file:///home/caleb/.config/libreoffice/4;

@ -28,12 +28,113 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.milesPromptLabel = new System.Windows.Forms.Label();
this.gallonsPromptLabel = new System.Windows.Forms.Label();
this.outputDescriptionLabel = new System.Windows.Forms.Label();
this.milesTextBox = new System.Windows.Forms.TextBox();
this.gallonsTextBox = new System.Windows.Forms.TextBox();
this.mpgLabel = new System.Windows.Forms.TextBox();
this.calculateButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// milesPromptLabel
//
this.milesPromptLabel.AutoSize = true;
this.milesPromptLabel.Location = new System.Drawing.Point(12, 30);
this.milesPromptLabel.Name = "milesPromptLabel";
this.milesPromptLabel.Size = new System.Drawing.Size(183, 15);
this.milesPromptLabel.TabIndex = 0;
this.milesPromptLabel.Text = "Enter the number of miles driven:";
//
// gallonsPromptLabel
//
this.gallonsPromptLabel.AutoSize = true;
this.gallonsPromptLabel.Location = new System.Drawing.Point(27, 71);
this.gallonsPromptLabel.Name = "gallonsPromptLabel";
this.gallonsPromptLabel.Size = new System.Drawing.Size(168, 15);
this.gallonsPromptLabel.TabIndex = 1;
this.gallonsPromptLabel.Text = "Enther the gallons of gas used:";
//
// outputDescriptionLabel
//
this.outputDescriptionLabel.AutoSize = true;
this.outputDescriptionLabel.Location = new System.Drawing.Point(105, 105);
this.outputDescriptionLabel.Name = "outputDescriptionLabel";
this.outputDescriptionLabel.Size = new System.Drawing.Size(90, 15);
this.outputDescriptionLabel.TabIndex = 2;
this.outputDescriptionLabel.Text = "Your car\'s MPG:";
//
// milesTextBox
//
this.milesTextBox.Location = new System.Drawing.Point(212, 27);
this.milesTextBox.Name = "milesTextBox";
this.milesTextBox.Size = new System.Drawing.Size(102, 23);
this.milesTextBox.TabIndex = 3;
//
// gallonsTextBox
//
this.gallonsTextBox.Location = new System.Drawing.Point(214, 63);
this.gallonsTextBox.Name = "gallonsTextBox";
this.gallonsTextBox.Size = new System.Drawing.Size(100, 23);
this.gallonsTextBox.TabIndex = 4;
//
// mpgLabel
//
this.mpgLabel.Location = new System.Drawing.Point(214, 102);
this.mpgLabel.Name = "mpgLabel";
this.mpgLabel.Size = new System.Drawing.Size(100, 23);
this.mpgLabel.TabIndex = 5;
//
// calculateButton
//
this.calculateButton.Location = new System.Drawing.Point(68, 132);
this.calculateButton.Name = "calculateButton";
this.calculateButton.Size = new System.Drawing.Size(75, 44);
this.calculateButton.TabIndex = 6;
this.calculateButton.Text = "Calculate MPG";
this.calculateButton.UseVisualStyleBackColor = true;
this.calculateButton.Click += new System.EventHandler(this.calculateButton_Click);
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(149, 132);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(75, 44);
this.exitButton.TabIndex = 7;
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(800, 450);
this.ClientSize = new System.Drawing.Size(326, 188);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.calculateButton);
this.Controls.Add(this.mpgLabel);
this.Controls.Add(this.gallonsTextBox);
this.Controls.Add(this.milesTextBox);
this.Controls.Add(this.outputDescriptionLabel);
this.Controls.Add(this.gallonsPromptLabel);
this.Controls.Add(this.milesPromptLabel);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Label milesPromptLabel;
private Label gallonsPromptLabel;
private Label outputDescriptionLabel;
private TextBox milesTextBox;
private TextBox gallonsTextBox;
private TextBox mpgLabel;
private Button calculateButton;
private Button exitButton;
}
}

@ -6,5 +6,32 @@ namespace Lab3_2_CalebFontenot
{
InitializeComponent();
}
private void calculateButton_Click(object sender, EventArgs e)
{
double miles;
double gallons;
double mpg;
// Get the miles driven and assign it to
// the miles variable.
miles = double.Parse(milesTextBox.Text);
// Get the miles driven and assign it to
// the gallons variable.
gallons = double.Parse(gallonsTextBox.Text);
// Calculate MPG.
mpg = miles / gallons;
// Display the MPG in the mpgLabel control.
mpgLabel.Text = mpg.ToString();
}
private void exitButton_Click(object sender, EventArgs e)
{
// Close the form.
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,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Lab3_2_CalebFontenot/1.0.0": {
"runtime": {
"Lab3_2_CalebFontenot.dll": {}
}
}
}
},
"libraries": {
"Lab3_2_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("Lab3_2_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("Lab3_2_CalebFontenot")]
[assembly: System.Reflection.AssemblyTitleAttribute("Lab3_2_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 = Lab3_2_CalebFontenot
build_property.ProjectDir = Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_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#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\bin\Debug\net6.0-windows\Lab3_2_CalebFontenot.exe
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\bin\Debug\net6.0-windows\Lab3_2_CalebFontenot.deps.json
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\bin\Debug\net6.0-windows\Lab3_2_CalebFontenot.runtimeconfig.json
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\bin\Debug\net6.0-windows\Lab3_2_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\bin\Debug\net6.0-windows\Lab3_2_CalebFontenot.pdb
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.csproj.AssemblyReference.cache
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.Form1.resources
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.csproj.GenerateResource.cache
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.GeneratedMSBuildEditorConfig.editorconfig
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.AssemblyInfoInputs.cache
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.AssemblyInfo.cs
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.csproj.CoreCompileInputs.cache
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\refint\Lab3_2_CalebFontenot.dll
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.pdb
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\Lab3_2_CalebFontenot.genruntimeconfig.cache
Z:\media\DataEXT4\Documents\ASDV C#\Lab3_2_CalebFontenot\Lab3_2_CalebFontenot\obj\Debug\net6.0-windows\ref\Lab3_2_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#\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot.csproj": {}
},
"projects": {
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot.csproj",
"projectName": "Lab3_2_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot.csproj",
"packagesPath": "C:\\Users\\caleb\\.nuget\\packages\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\Lab3_2_CalebFontenot\\Lab3_2_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#\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot.csproj",
"projectName": "Lab3_2_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot.csproj",
"packagesPath": "C:\\Users\\caleb\\.nuget\\packages\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\Lab3_2_CalebFontenot\\Lab3_2_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": "IcXs72zpTLZOCRK5O/aErtNriYO7mg4CroP26J0jlkokPx3eQLKcv+qIcsmFvYhnTJKcctBRJRk8+D9j+YwM6g==",
"success": true,
"projectFilePath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot\\Lab3_2_CalebFontenot.csproj",
"expectedPackageFiles": [],
"logs": []
}