C-Sharp-Moment

This commit is contained in:
2022-10-18 14:28:33 -05:00
parent 97a084391c
commit 7e8bef6ba5
249 changed files with 2504 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -1,85 +0,0 @@
namespace lab5_3_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.outputListBox = new System.Windows.Forms.ListBox();
this.displayButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// outputListBox
//
this.outputListBox.FormattingEnabled = true;
this.outputListBox.ItemHeight = 15;
this.outputListBox.Location = new System.Drawing.Point(12, 12);
this.outputListBox.Name = "outputListBox";
this.outputListBox.Size = new System.Drawing.Size(291, 229);
this.outputListBox.TabIndex = 0;
//
// displayButton
//
this.displayButton.Location = new System.Drawing.Point(79, 247);
this.displayButton.Name = "displayButton";
this.displayButton.Size = new System.Drawing.Size(75, 49);
this.displayButton.TabIndex = 1;
this.displayButton.Text = "Display Speed";
this.displayButton.UseVisualStyleBackColor = true;
this.displayButton.Click += new System.EventHandler(this.displayButton_Click);
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(160, 247);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(75, 49);
this.exitButton.TabIndex = 2;
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(315, 306);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.displayButton);
this.Controls.Add(this.outputListBox);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
private ListBox outputListBox;
private Button displayButton;
private Button exitButton;
}
}

View File

@@ -1,37 +0,0 @@
namespace lab5_3_CalebFontenot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void displayButton_Click(object sender, EventArgs e)
{
// Define variables
const int START_SPEED = 60;
const int END_SPEED = 130;
const int INTERVAL = 10;
const double CONVERSION_FACTOR = 0.6214;
int kph;
double mph;
// Display the table of speeds.
for (kph = START_SPEED; kph <= END_SPEED; kph += INTERVAL)
{
// Calculate miles per hour.
mph = kph * CONVERSION_FACTOR;
// Display the conversion
outputListBox.Items.Add(kph + " KPH is the same as " + mph + " MPH");
}
}
private void exitButton_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -1 +0,0 @@
4509ebc134d493792a38ffa008a0cf2c5e160392

View File

@@ -1 +0,0 @@
92543504808517ace9f4dc234693c17266774d6c

View File

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

View File

@@ -1 +0,0 @@
4cb7c41b0900a5d19eefb15e7d1a3324c66f819b

View File

@@ -1,8 +0,0 @@
{
"version": 2,
"dgSpecHash": "iMRnUu8T+pRcZK6qbsYP7JOXH/q6rz82Q87vI5L9mivwMCTTJcG84qEHWJdZSlNve0FePV4l3WXJFQ1ftar+EQ==",
"success": true,
"projectFilePath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\lab5_3_CalebFontenot.csproj",
"expectedPackageFiles": [],
"logs": []
}

Binary file not shown.

96
lab5_3/lab5_4_CalebFontenot/Form1.Designer.cs generated Executable file
View File

@@ -0,0 +1,96 @@
namespace lab5_4_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.nameTextBox = new System.Windows.Forms.TextBox();
this.writeNameButton = 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(121, 15);
this.label1.TabIndex = 0;
this.label1.Text = "Enter a friend\'s name:";
//
// nameTextBox
//
this.nameTextBox.Location = new System.Drawing.Point(139, 6);
this.nameTextBox.Name = "nameTextBox";
this.nameTextBox.Size = new System.Drawing.Size(156, 23);
this.nameTextBox.TabIndex = 1;
//
// writeNameButton
//
this.writeNameButton.Location = new System.Drawing.Point(58, 39);
this.writeNameButton.Name = "writeNameButton";
this.writeNameButton.Size = new System.Drawing.Size(98, 23);
this.writeNameButton.TabIndex = 2;
this.writeNameButton.Text = "Write Name";
this.writeNameButton.UseVisualStyleBackColor = true;
this.writeNameButton.Click += new System.EventHandler(this.writeNameButton_Click);
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(162, 39);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(96, 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(311, 74);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.writeNameButton);
this.Controls.Add(this.nameTextBox);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Label label1;
private TextBox nameTextBox;
private Button writeNameButton;
private Button exitButton;
}
}

View File

@@ -0,0 +1,40 @@
namespace lab5_4_CalebFontenot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void writeNameButton_Click(object sender, EventArgs e)
{
try
{
// Declare a StreamWriter Variable.
StreamWriter outputFile;
// Create a file and get a StreamWriter object.
outputFile = File.CreateText("Friend.txt");
// Write the friend's name to the file.
outputFile.WriteLine(nameTextBox.Text);
// Close the file.
outputFile.Close();
// Let the user know the name was written.
MessageBox.Show("Wrote \"" + nameTextBox.Text + "\" to file.");
} catch (Exception ex) {
// Display an error message.
MessageBox.Show(ex.Message);
}
}
private void exitButton_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -1,4 +1,4 @@
namespace lab5_3_CalebFontenot
namespace lab5_4_CalebFontenot
{
internal static class Program
{

View File

@@ -0,0 +1 @@
Tyler Van Beek

View File

@@ -6,15 +6,15 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"lab5_3_CalebFontenot/1.0.0": {
"lab5_4_CalebFontenot/1.0.0": {
"runtime": {
"lab5_3_CalebFontenot.dll": {}
"lab5_4_CalebFontenot.dll": {}
}
}
}
},
"libraries": {
"lab5_3_CalebFontenot/1.0.0": {
"lab5_4_CalebFontenot/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""

Binary file not shown.

View File

@@ -3,7 +3,7 @@ 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}") = "lab5_3_CalebFontenot", "lab5_3_CalebFontenot.csproj", "{BE97877C-B737-4E36-AC04-FCF6A75E2E4E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "lab5_4_CalebFontenot", "lab5_4_CalebFontenot.csproj", "{7799F067-AB79-406B-82E7-A8623B84EF73}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -11,15 +11,15 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BE97877C-B737-4E36-AC04-FCF6A75E2E4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BE97877C-B737-4E36-AC04-FCF6A75E2E4E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BE97877C-B737-4E36-AC04-FCF6A75E2E4E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BE97877C-B737-4E36-AC04-FCF6A75E2E4E}.Release|Any CPU.Build.0 = Release|Any CPU
{7799F067-AB79-406B-82E7-A8623B84EF73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7799F067-AB79-406B-82E7-A8623B84EF73}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7799F067-AB79-406B-82E7-A8623B84EF73}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7799F067-AB79-406B-82E7-A8623B84EF73}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {5CD8AABA-BF1D-4F7B-AAF7-0BFC4B07559E}
SolutionGuid = {E68D9885-E067-447F-A45E-0B869CB9C797}
EndGlobalSection
EndGlobal

View File

@@ -11,12 +11,12 @@
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("lab5_3_CalebFontenot")]
[assembly: System.Reflection.AssemblyCompanyAttribute("lab5_4_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("lab5_3_CalebFontenot")]
[assembly: System.Reflection.AssemblyTitleAttribute("lab5_3_CalebFontenot")]
[assembly: System.Reflection.AssemblyProductAttribute("lab5_4_CalebFontenot")]
[assembly: System.Reflection.AssemblyTitleAttribute("lab5_4_CalebFontenot")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")]

View File

@@ -0,0 +1 @@
2b9b5a0dea994676e644885086731718c6b14025

View File

@@ -12,5 +12,5 @@ build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = lab5_3_CalebFontenot
build_property.ProjectDir = Z:\media\DataEXT4\Documents\ASDV C#\lab5_3\lab5_3_CalebFontenot\
build_property.RootNamespace = lab5_4_CalebFontenot
build_property.ProjectDir = Z:\media\DataEXT4\Documents\ASDV C#\lab5_3\lab5_4_CalebFontenot\

View File

@@ -0,0 +1 @@
f4f76ffe2e0c807c7f8e42d04d529d9fb5d161b0

View File

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

View File

@@ -0,0 +1 @@
c72cd69423671337ee5c7e7be614cbc6255389ea

View File

@@ -1,17 +1,17 @@
{
"format": 1,
"restore": {
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\lab5_3_CalebFontenot.csproj": {}
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\lab5_4_CalebFontenot.csproj": {}
},
"projects": {
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\lab5_3_CalebFontenot.csproj": {
"Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\lab5_4_CalebFontenot.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\lab5_3_CalebFontenot.csproj",
"projectName": "lab5_3_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\lab5_3_CalebFontenot.csproj",
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\lab5_4_CalebFontenot.csproj",
"projectName": "lab5_4_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\lab5_4_CalebFontenot.csproj",
"packagesPath": "C:\\Users\\caleb\\.nuget\\packages\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\obj\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\caleb\\AppData\\Roaming\\NuGet\\NuGet.Config",

View File

@@ -13,11 +13,11 @@
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\lab5_3_CalebFontenot.csproj",
"projectName": "lab5_3_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\lab5_3_CalebFontenot.csproj",
"projectUniqueName": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\lab5_4_CalebFontenot.csproj",
"projectName": "lab5_4_CalebFontenot",
"projectPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\lab5_4_CalebFontenot.csproj",
"packagesPath": "C:\\Users\\caleb\\.nuget\\packages\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_3_CalebFontenot\\obj\\",
"outputPath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\caleb\\AppData\\Roaming\\NuGet\\NuGet.Config",

View File

@@ -0,0 +1,8 @@
{
"version": 2,
"dgSpecHash": "YVrWr+eQiZUW0AqifvgRqA0YmIIFn46LpedRFoTgnI0S7hMYbQnx0gUiA8UBAjnSfa1B5xpcHnFQGMDx/pPiUw==",
"success": true,
"projectFilePath": "Z:\\media\\DataEXT4\\Documents\\ASDV C#\\lab5_3\\lab5_4_CalebFontenot\\lab5_4_CalebFontenot.csproj",
"expectedPackageFiles": [],
"logs": []
}

Binary file not shown.

98
lab5_3/lab5_5_CalebFontenot/Form1.Designer.cs generated Executable file
View File

@@ -0,0 +1,98 @@
namespace lab5_4_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.nameTextBox = new System.Windows.Forms.TextBox();
this.writeNameButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.saveFile = new System.Windows.Forms.SaveFileDialog();
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(121, 15);
this.label1.TabIndex = 0;
this.label1.Text = "Enter a friend\'s name:";
//
// nameTextBox
//
this.nameTextBox.Location = new System.Drawing.Point(139, 6);
this.nameTextBox.Name = "nameTextBox";
this.nameTextBox.Size = new System.Drawing.Size(156, 23);
this.nameTextBox.TabIndex = 1;
//
// writeNameButton
//
this.writeNameButton.Location = new System.Drawing.Point(12, 39);
this.writeNameButton.Name = "writeNameButton";
this.writeNameButton.Size = new System.Drawing.Size(98, 23);
this.writeNameButton.TabIndex = 2;
this.writeNameButton.Text = "Write Name";
this.writeNameButton.UseVisualStyleBackColor = true;
this.writeNameButton.Click += new System.EventHandler(this.writeNameButton_Click);
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(199, 39);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(96, 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(311, 74);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.writeNameButton);
this.Controls.Add(this.nameTextBox);
this.Controls.Add(this.label1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private Label label1;
private TextBox nameTextBox;
private Button writeNameButton;
private Button exitButton;
private SaveFileDialog saveFile;
}
}

View File

@@ -0,0 +1,47 @@
namespace lab5_4_CalebFontenot
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void writeNameButton_Click(object sender, EventArgs e)
{
try
{
// Declare a StreamWriter Variable.
StreamWriter outputFile;
saveFile.ShowDialog();
// Open the 'Friend.txt' file for appending,
// and get a StreamWriter object.
outputFile = File.AppendText(saveFile.FileName);
// Append the friend's name to the file.
outputFile.WriteLine(nameTextBox.Text);
// Close the file.
outputFile.Close();
// Let the user know the name was written.
MessageBox.Show("Wrote \"" + nameTextBox.Text + "\" to file.");
// Clear the nameTextBox control.
nameTextBox.Text = "";
// Give the focus to the nameTextBox control.
nameTextBox.Focus();
} catch (Exception ex) {
// Display an error message.
MessageBox.Show(ex.Message);
}
}
private void exitButton_Click(object sender, EventArgs e)
{
this.Close();
}
}
}

View File

@@ -0,0 +1,63 @@
<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>
<metadata name="saveFile.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

View File

@@ -0,0 +1,17 @@
namespace lab5_4_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,23 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"lab5_5_CalebFontenot/1.0.0": {
"runtime": {
"lab5_5_CalebFontenot.dll": {}
}
}
}
},
"libraries": {
"lab5_5_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,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,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>

Binary file not shown.

View File

@@ -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("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "lab5_5_CalebFontenot", "lab5_5_CalebFontenot.csproj", "{7799F067-AB79-406B-82E7-A8623B84EF73}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7799F067-AB79-406B-82E7-A8623B84EF73}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7799F067-AB79-406B-82E7-A8623B84EF73}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7799F067-AB79-406B-82E7-A8623B84EF73}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7799F067-AB79-406B-82E7-A8623B84EF73}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E68D9885-E067-447F-A45E-0B869CB9C797}
EndGlobalSection
EndGlobal

View File

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

View File

@@ -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("lab5_4_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("lab5_4_CalebFontenot")]
[assembly: System.Reflection.AssemblyTitleAttribute("lab5_4_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.

View File

@@ -0,0 +1 @@
2b9b5a0dea994676e644885086731718c6b14025

View File

@@ -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 = lab5_4_CalebFontenot
build_property.ProjectDir = Z:\media\DataEXT4\Documents\ASDV C#\lab5_3\lab5_5_CalebFontenot\

View File

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

View File

@@ -0,0 +1 @@
f4f76ffe2e0c807c7f8e42d04d529d9fb5d161b0

View File

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

View File

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

View File

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

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