Lab 2
This commit is contained in:
Binary file not shown.
BIN
Student Sample Programs/Chap11/Car Demo/.vs/Car Demo/v15/.suo
Normal file
BIN
Student Sample Programs/Chap11/Car Demo/.vs/Car Demo/v15/.suo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
22
Student Sample Programs/Chap11/Car Demo/Car Demo.sln
Normal file
22
Student Sample Programs/Chap11/Car Demo/Car Demo.sln
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.27703.2042
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Car Demo", "Car Demo\Car Demo.csproj", "{F9007F4F-E017-4D82-A162-3C93301B37A0}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F9007F4F-E017-4D82-A162-3C93301B37A0}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{F9007F4F-E017-4D82-A162-3C93301B37A0}.Debug|x86.Build.0 = Debug|x86
|
||||
{F9007F4F-E017-4D82-A162-3C93301B37A0}.Release|x86.ActiveCfg = Release|x86
|
||||
{F9007F4F-E017-4D82-A162-3C93301B37A0}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Car_Demo
|
||||
{
|
||||
class Automobile
|
||||
{
|
||||
// Constructor
|
||||
public Automobile()
|
||||
{
|
||||
Make = "";
|
||||
Model = "";
|
||||
Mileage = 0;
|
||||
Price = 0m;
|
||||
}
|
||||
|
||||
// Properties
|
||||
public string Make { get; set; }
|
||||
public string Model { get; set; }
|
||||
public int Mileage { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
}
|
||||
}
|
@@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{F9007F4F-E017-4D82-A162-3C93301B37A0}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Car_Demo</RootNamespace>
|
||||
<AssemblyName>Car Demo</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Automobile.cs" />
|
||||
<Compile Include="Car.cs" />
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
20
Student Sample Programs/Chap11/Car Demo/Car Demo/Car.cs
Normal file
20
Student Sample Programs/Chap11/Car Demo/Car Demo/Car.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Car_Demo
|
||||
{
|
||||
class Car : Automobile
|
||||
{
|
||||
// Constructor
|
||||
public Car()
|
||||
{
|
||||
Doors = 0;
|
||||
}
|
||||
|
||||
// Doors property
|
||||
public int Doors { get; set; }
|
||||
}
|
||||
}
|
334
Student Sample Programs/Chap11/Car Demo/Car Demo/Form1.Designer.cs
generated
Normal file
334
Student Sample Programs/Chap11/Car Demo/Car Demo/Form1.Designer.cs
generated
Normal file
@@ -0,0 +1,334 @@
|
||||
namespace Car_Demo
|
||||
{
|
||||
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.inputGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.doorsTextBox = new System.Windows.Forms.TextBox();
|
||||
this.priceTextBox = new System.Windows.Forms.TextBox();
|
||||
this.mileageTextBox = new System.Windows.Forms.TextBox();
|
||||
this.modelTextBox = new System.Windows.Forms.TextBox();
|
||||
this.makeTextBox = new System.Windows.Forms.TextBox();
|
||||
this.inputDoorsLabel = new System.Windows.Forms.Label();
|
||||
this.inputPriceLabel = new System.Windows.Forms.Label();
|
||||
this.inputMileageLabel = new System.Windows.Forms.Label();
|
||||
this.inputModelLabel = new System.Windows.Forms.Label();
|
||||
this.inputMakeLabel = new System.Windows.Forms.Label();
|
||||
this.objectGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.doorsLabel = new System.Windows.Forms.Label();
|
||||
this.priceLabel = new System.Windows.Forms.Label();
|
||||
this.mileageLabel = new System.Windows.Forms.Label();
|
||||
this.modelLabel = new System.Windows.Forms.Label();
|
||||
this.makeLabel = new System.Windows.Forms.Label();
|
||||
this.outputDoors = new System.Windows.Forms.Label();
|
||||
this.outputPriceLabel = new System.Windows.Forms.Label();
|
||||
this.outputMileageLabel = new System.Windows.Forms.Label();
|
||||
this.outputModelLabel = new System.Windows.Forms.Label();
|
||||
this.outputMakeLabel = new System.Windows.Forms.Label();
|
||||
this.createObjectButton = new System.Windows.Forms.Button();
|
||||
this.exitButton = new System.Windows.Forms.Button();
|
||||
this.inputGroupBox.SuspendLayout();
|
||||
this.objectGroupBox.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// inputGroupBox
|
||||
//
|
||||
this.inputGroupBox.Controls.Add(this.doorsTextBox);
|
||||
this.inputGroupBox.Controls.Add(this.priceTextBox);
|
||||
this.inputGroupBox.Controls.Add(this.mileageTextBox);
|
||||
this.inputGroupBox.Controls.Add(this.modelTextBox);
|
||||
this.inputGroupBox.Controls.Add(this.makeTextBox);
|
||||
this.inputGroupBox.Controls.Add(this.inputDoorsLabel);
|
||||
this.inputGroupBox.Controls.Add(this.inputPriceLabel);
|
||||
this.inputGroupBox.Controls.Add(this.inputMileageLabel);
|
||||
this.inputGroupBox.Controls.Add(this.inputModelLabel);
|
||||
this.inputGroupBox.Controls.Add(this.inputMakeLabel);
|
||||
this.inputGroupBox.Location = new System.Drawing.Point(22, 13);
|
||||
this.inputGroupBox.Name = "inputGroupBox";
|
||||
this.inputGroupBox.Size = new System.Drawing.Size(180, 160);
|
||||
this.inputGroupBox.TabIndex = 0;
|
||||
this.inputGroupBox.TabStop = false;
|
||||
this.inputGroupBox.Text = "Enter Car Data";
|
||||
//
|
||||
// doorsTextBox
|
||||
//
|
||||
this.doorsTextBox.Location = new System.Drawing.Point(58, 126);
|
||||
this.doorsTextBox.Name = "doorsTextBox";
|
||||
this.doorsTextBox.Size = new System.Drawing.Size(100, 20);
|
||||
this.doorsTextBox.TabIndex = 9;
|
||||
//
|
||||
// priceTextBox
|
||||
//
|
||||
this.priceTextBox.Location = new System.Drawing.Point(58, 100);
|
||||
this.priceTextBox.Name = "priceTextBox";
|
||||
this.priceTextBox.Size = new System.Drawing.Size(100, 20);
|
||||
this.priceTextBox.TabIndex = 8;
|
||||
//
|
||||
// mileageTextBox
|
||||
//
|
||||
this.mileageTextBox.Location = new System.Drawing.Point(59, 74);
|
||||
this.mileageTextBox.Name = "mileageTextBox";
|
||||
this.mileageTextBox.Size = new System.Drawing.Size(100, 20);
|
||||
this.mileageTextBox.TabIndex = 7;
|
||||
//
|
||||
// modelTextBox
|
||||
//
|
||||
this.modelTextBox.Location = new System.Drawing.Point(59, 48);
|
||||
this.modelTextBox.Name = "modelTextBox";
|
||||
this.modelTextBox.Size = new System.Drawing.Size(100, 20);
|
||||
this.modelTextBox.TabIndex = 6;
|
||||
//
|
||||
// makeTextBox
|
||||
//
|
||||
this.makeTextBox.Location = new System.Drawing.Point(59, 22);
|
||||
this.makeTextBox.Name = "makeTextBox";
|
||||
this.makeTextBox.Size = new System.Drawing.Size(100, 20);
|
||||
this.makeTextBox.TabIndex = 5;
|
||||
//
|
||||
// inputDoorsLabel
|
||||
//
|
||||
this.inputDoorsLabel.AutoSize = true;
|
||||
this.inputDoorsLabel.Location = new System.Drawing.Point(14, 129);
|
||||
this.inputDoorsLabel.Name = "inputDoorsLabel";
|
||||
this.inputDoorsLabel.Size = new System.Drawing.Size(38, 13);
|
||||
this.inputDoorsLabel.TabIndex = 4;
|
||||
this.inputDoorsLabel.Text = "Doors:";
|
||||
//
|
||||
// inputPriceLabel
|
||||
//
|
||||
this.inputPriceLabel.AutoSize = true;
|
||||
this.inputPriceLabel.Location = new System.Drawing.Point(18, 103);
|
||||
this.inputPriceLabel.Name = "inputPriceLabel";
|
||||
this.inputPriceLabel.Size = new System.Drawing.Size(34, 13);
|
||||
this.inputPriceLabel.TabIndex = 3;
|
||||
this.inputPriceLabel.Text = "Price:";
|
||||
//
|
||||
// inputMileageLabel
|
||||
//
|
||||
this.inputMileageLabel.AutoSize = true;
|
||||
this.inputMileageLabel.Location = new System.Drawing.Point(5, 77);
|
||||
this.inputMileageLabel.Name = "inputMileageLabel";
|
||||
this.inputMileageLabel.Size = new System.Drawing.Size(47, 13);
|
||||
this.inputMileageLabel.TabIndex = 2;
|
||||
this.inputMileageLabel.Text = "Mileage:";
|
||||
//
|
||||
// inputModelLabel
|
||||
//
|
||||
this.inputModelLabel.AutoSize = true;
|
||||
this.inputModelLabel.Location = new System.Drawing.Point(13, 51);
|
||||
this.inputModelLabel.Name = "inputModelLabel";
|
||||
this.inputModelLabel.Size = new System.Drawing.Size(39, 13);
|
||||
this.inputModelLabel.TabIndex = 1;
|
||||
this.inputModelLabel.Text = "Model:";
|
||||
//
|
||||
// inputMakeLabel
|
||||
//
|
||||
this.inputMakeLabel.AutoSize = true;
|
||||
this.inputMakeLabel.Location = new System.Drawing.Point(15, 25);
|
||||
this.inputMakeLabel.Name = "inputMakeLabel";
|
||||
this.inputMakeLabel.Size = new System.Drawing.Size(37, 13);
|
||||
this.inputMakeLabel.TabIndex = 0;
|
||||
this.inputMakeLabel.Text = "Make:";
|
||||
//
|
||||
// objectGroupBox
|
||||
//
|
||||
this.objectGroupBox.Controls.Add(this.doorsLabel);
|
||||
this.objectGroupBox.Controls.Add(this.priceLabel);
|
||||
this.objectGroupBox.Controls.Add(this.mileageLabel);
|
||||
this.objectGroupBox.Controls.Add(this.modelLabel);
|
||||
this.objectGroupBox.Controls.Add(this.makeLabel);
|
||||
this.objectGroupBox.Controls.Add(this.outputDoors);
|
||||
this.objectGroupBox.Controls.Add(this.outputPriceLabel);
|
||||
this.objectGroupBox.Controls.Add(this.outputMileageLabel);
|
||||
this.objectGroupBox.Controls.Add(this.outputModelLabel);
|
||||
this.objectGroupBox.Controls.Add(this.outputMakeLabel);
|
||||
this.objectGroupBox.Location = new System.Drawing.Point(22, 190);
|
||||
this.objectGroupBox.Name = "objectGroupBox";
|
||||
this.objectGroupBox.Size = new System.Drawing.Size(180, 170);
|
||||
this.objectGroupBox.TabIndex = 1;
|
||||
this.objectGroupBox.TabStop = false;
|
||||
this.objectGroupBox.Text = "Object Properties";
|
||||
//
|
||||
// doorsLabel
|
||||
//
|
||||
this.doorsLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.doorsLabel.Location = new System.Drawing.Point(61, 129);
|
||||
this.doorsLabel.Name = "doorsLabel";
|
||||
this.doorsLabel.Size = new System.Drawing.Size(100, 23);
|
||||
this.doorsLabel.TabIndex = 14;
|
||||
this.doorsLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// priceLabel
|
||||
//
|
||||
this.priceLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.priceLabel.Location = new System.Drawing.Point(61, 103);
|
||||
this.priceLabel.Name = "priceLabel";
|
||||
this.priceLabel.Size = new System.Drawing.Size(100, 23);
|
||||
this.priceLabel.TabIndex = 13;
|
||||
this.priceLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// mileageLabel
|
||||
//
|
||||
this.mileageLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.mileageLabel.Location = new System.Drawing.Point(61, 77);
|
||||
this.mileageLabel.Name = "mileageLabel";
|
||||
this.mileageLabel.Size = new System.Drawing.Size(100, 23);
|
||||
this.mileageLabel.TabIndex = 12;
|
||||
this.mileageLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// modelLabel
|
||||
//
|
||||
this.modelLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.modelLabel.Location = new System.Drawing.Point(61, 51);
|
||||
this.modelLabel.Name = "modelLabel";
|
||||
this.modelLabel.Size = new System.Drawing.Size(100, 23);
|
||||
this.modelLabel.TabIndex = 11;
|
||||
this.modelLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// makeLabel
|
||||
//
|
||||
this.makeLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.makeLabel.Location = new System.Drawing.Point(61, 25);
|
||||
this.makeLabel.Name = "makeLabel";
|
||||
this.makeLabel.Size = new System.Drawing.Size(100, 23);
|
||||
this.makeLabel.TabIndex = 10;
|
||||
this.makeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
|
||||
//
|
||||
// outputDoors
|
||||
//
|
||||
this.outputDoors.AutoSize = true;
|
||||
this.outputDoors.Location = new System.Drawing.Point(17, 134);
|
||||
this.outputDoors.Name = "outputDoors";
|
||||
this.outputDoors.Size = new System.Drawing.Size(38, 13);
|
||||
this.outputDoors.TabIndex = 9;
|
||||
this.outputDoors.Text = "Doors:";
|
||||
//
|
||||
// outputPriceLabel
|
||||
//
|
||||
this.outputPriceLabel.AutoSize = true;
|
||||
this.outputPriceLabel.Location = new System.Drawing.Point(21, 108);
|
||||
this.outputPriceLabel.Name = "outputPriceLabel";
|
||||
this.outputPriceLabel.Size = new System.Drawing.Size(34, 13);
|
||||
this.outputPriceLabel.TabIndex = 8;
|
||||
this.outputPriceLabel.Text = "Price:";
|
||||
//
|
||||
// outputMileageLabel
|
||||
//
|
||||
this.outputMileageLabel.AutoSize = true;
|
||||
this.outputMileageLabel.Location = new System.Drawing.Point(8, 82);
|
||||
this.outputMileageLabel.Name = "outputMileageLabel";
|
||||
this.outputMileageLabel.Size = new System.Drawing.Size(47, 13);
|
||||
this.outputMileageLabel.TabIndex = 7;
|
||||
this.outputMileageLabel.Text = "Mileage:";
|
||||
//
|
||||
// outputModelLabel
|
||||
//
|
||||
this.outputModelLabel.AutoSize = true;
|
||||
this.outputModelLabel.Location = new System.Drawing.Point(16, 56);
|
||||
this.outputModelLabel.Name = "outputModelLabel";
|
||||
this.outputModelLabel.Size = new System.Drawing.Size(39, 13);
|
||||
this.outputModelLabel.TabIndex = 6;
|
||||
this.outputModelLabel.Text = "Model:";
|
||||
//
|
||||
// outputMakeLabel
|
||||
//
|
||||
this.outputMakeLabel.AutoSize = true;
|
||||
this.outputMakeLabel.Location = new System.Drawing.Point(18, 30);
|
||||
this.outputMakeLabel.Name = "outputMakeLabel";
|
||||
this.outputMakeLabel.Size = new System.Drawing.Size(37, 13);
|
||||
this.outputMakeLabel.TabIndex = 5;
|
||||
this.outputMakeLabel.Text = "Make:";
|
||||
//
|
||||
// createObjectButton
|
||||
//
|
||||
this.createObjectButton.Location = new System.Drawing.Point(34, 376);
|
||||
this.createObjectButton.Name = "createObjectButton";
|
||||
this.createObjectButton.Size = new System.Drawing.Size(75, 40);
|
||||
this.createObjectButton.TabIndex = 2;
|
||||
this.createObjectButton.Text = "Create Object";
|
||||
this.createObjectButton.UseVisualStyleBackColor = true;
|
||||
this.createObjectButton.Click += new System.EventHandler(this.createObjectButton_Click);
|
||||
//
|
||||
// exitButton
|
||||
//
|
||||
this.exitButton.Location = new System.Drawing.Point(115, 376);
|
||||
this.exitButton.Name = "exitButton";
|
||||
this.exitButton.Size = new System.Drawing.Size(75, 40);
|
||||
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(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(224, 428);
|
||||
this.Controls.Add(this.exitButton);
|
||||
this.Controls.Add(this.createObjectButton);
|
||||
this.Controls.Add(this.objectGroupBox);
|
||||
this.Controls.Add(this.inputGroupBox);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Car Demo";
|
||||
this.inputGroupBox.ResumeLayout(false);
|
||||
this.inputGroupBox.PerformLayout();
|
||||
this.objectGroupBox.ResumeLayout(false);
|
||||
this.objectGroupBox.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.GroupBox inputGroupBox;
|
||||
private System.Windows.Forms.TextBox doorsTextBox;
|
||||
private System.Windows.Forms.TextBox priceTextBox;
|
||||
private System.Windows.Forms.TextBox mileageTextBox;
|
||||
private System.Windows.Forms.TextBox modelTextBox;
|
||||
private System.Windows.Forms.TextBox makeTextBox;
|
||||
private System.Windows.Forms.Label inputDoorsLabel;
|
||||
private System.Windows.Forms.Label inputPriceLabel;
|
||||
private System.Windows.Forms.Label inputMileageLabel;
|
||||
private System.Windows.Forms.Label inputModelLabel;
|
||||
private System.Windows.Forms.Label inputMakeLabel;
|
||||
private System.Windows.Forms.GroupBox objectGroupBox;
|
||||
private System.Windows.Forms.Label doorsLabel;
|
||||
private System.Windows.Forms.Label priceLabel;
|
||||
private System.Windows.Forms.Label mileageLabel;
|
||||
private System.Windows.Forms.Label modelLabel;
|
||||
private System.Windows.Forms.Label makeLabel;
|
||||
private System.Windows.Forms.Label outputDoors;
|
||||
private System.Windows.Forms.Label outputPriceLabel;
|
||||
private System.Windows.Forms.Label outputMileageLabel;
|
||||
private System.Windows.Forms.Label outputModelLabel;
|
||||
private System.Windows.Forms.Label outputMakeLabel;
|
||||
private System.Windows.Forms.Button createObjectButton;
|
||||
private System.Windows.Forms.Button exitButton;
|
||||
}
|
||||
}
|
||||
|
93
Student Sample Programs/Chap11/Car Demo/Car Demo/Form1.cs
Normal file
93
Student Sample Programs/Chap11/Car Demo/Car Demo/Form1.cs
Normal file
@@ -0,0 +1,93 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Car_Demo
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
// The GetCarData method accepts a Car object as an
|
||||
// argument. It assigns the data entered by the
|
||||
// user to the object's properties.
|
||||
private void GetCarData(Car car)
|
||||
{
|
||||
// Temporary variables to hold mileage, price,
|
||||
// and number of doors
|
||||
int mileage;
|
||||
decimal price;
|
||||
int doors;
|
||||
|
||||
// Get the car's make.
|
||||
car.Make = makeTextBox.Text;
|
||||
|
||||
// Get the car's model.
|
||||
car.Model = modelTextBox.Text;
|
||||
|
||||
// Get the car's mileage.
|
||||
if (int.TryParse(mileageTextBox.Text, out mileage))
|
||||
{
|
||||
car.Mileage = mileage;
|
||||
|
||||
// Get the car's price.
|
||||
if (decimal.TryParse(priceTextBox.Text, out price))
|
||||
{
|
||||
car.Price = price;
|
||||
|
||||
// Get the number of doors.
|
||||
if (int.TryParse(doorsTextBox.Text, out doors))
|
||||
{
|
||||
car.Doors = doors;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Display an error message.
|
||||
MessageBox.Show("Invalid number of doors");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Display an error message.
|
||||
MessageBox.Show("Invalid price");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Display an error message.
|
||||
MessageBox.Show("Invalid mileage");
|
||||
}
|
||||
}
|
||||
|
||||
private void createObjectButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Create a Car object.
|
||||
Car myCar = new Car();
|
||||
|
||||
// Get the car data.
|
||||
GetCarData(myCar);
|
||||
|
||||
// Display the car data.
|
||||
makeLabel.Text = myCar.Make;
|
||||
modelLabel.Text = myCar.Model;
|
||||
mileageLabel.Text = myCar.Mileage.ToString();
|
||||
priceLabel.Text = myCar.Price.ToString("c");
|
||||
doorsLabel.Text = myCar.Doors.ToString();
|
||||
}
|
||||
|
||||
private void exitButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Close the form.
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
}
|
120
Student Sample Programs/Chap11/Car Demo/Car Demo/Form1.resx
Normal file
120
Student Sample Programs/Chap11/Car Demo/Car Demo/Form1.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<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>
|
21
Student Sample Programs/Chap11/Car Demo/Car Demo/Program.cs
Normal file
21
Student Sample Programs/Chap11/Car Demo/Car Demo/Program.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Car_Demo
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("Car Demo")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("Car Demo")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("0a494787-a883-4c42-8ea7-cd5a4d4d6d3b")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
71
Student Sample Programs/Chap11/Car Demo/Car Demo/Properties/Resources.Designer.cs
generated
Normal file
71
Student Sample Programs/Chap11/Car Demo/Car Demo/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Car_Demo.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Car_Demo.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<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" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</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" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
30
Student Sample Programs/Chap11/Car Demo/Car Demo/Properties/Settings.Designer.cs
generated
Normal file
30
Student Sample Programs/Chap11/Car Demo/Car Demo/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Car_Demo.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
11
Student Sample Programs/Chap11/Car Demo/Car Demo/Test.cs
Normal file
11
Student Sample Programs/Chap11/Car Demo/Car Demo/Test.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Car_Demo
|
||||
{
|
||||
class Test
|
||||
{
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
|
||||
<security>
|
||||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
</assembly>
|
@@ -0,0 +1 @@
|
||||
620b3b04b5d6a20e906481d7888a1d7a5a43cedb
|
@@ -0,0 +1,27 @@
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\bin\Debug\Car Demo.exe
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\bin\Debug\Car Demo.pdb
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\ResolveAssemblyReference.cache
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car_Demo.Form1.resources
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car_Demo.Properties.Resources.resources
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\GenerateResource.read.1.tlog
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\GenerateResource.write.1.tlog
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car Demo.exe
|
||||
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car Demo.pdb
|
||||
C:\Users\Tony\Documents\Books\C#\3rd Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car Demo.exe
|
||||
C:\Users\Tony\Documents\Books\C#\3rd Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car Demo.pdb
|
||||
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car Demo.exe
|
||||
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car Demo.pdb
|
||||
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\bin\Debug\Car Demo.exe
|
||||
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\bin\Debug\Car Demo.pdb
|
||||
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car_Demo.Form1.resources
|
||||
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car_Demo.Properties.Resources.resources
|
||||
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Demo\Car Demo\obj\x86\Debug\Car Demo.csproj.GenerateResource.Cache
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\bin\Debug\Car Demo.exe
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\bin\Debug\Car Demo.pdb
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\obj\x86\Debug\Car Demo.csprojAssemblyReference.cache
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\obj\x86\Debug\Car_Demo.Form1.resources
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\obj\x86\Debug\Car_Demo.Properties.Resources.resources
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\obj\x86\Debug\Car Demo.csproj.GenerateResource.cache
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\obj\x86\Debug\Car Demo.csproj.CoreCompileInputs.cache
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\obj\x86\Debug\Car Demo.exe
|
||||
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Demo\Car Demo\obj\x86\Debug\Car Demo.pdb
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user