This commit is contained in:
2022-08-30 14:15:11 -05:00
parent 1b1bb9c82c
commit 4b176b99a0
3226 changed files with 155063 additions and 60 deletions

View 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}") = "CD Account Test", "CD Account Test\CD Account Test.csproj", "{BEE1F910-5359-49B5-BFDA-81C2BE1D6B7C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BEE1F910-5359-49B5-BFDA-81C2BE1D6B7C}.Debug|x86.ActiveCfg = Debug|x86
{BEE1F910-5359-49B5-BFDA-81C2BE1D6B7C}.Debug|x86.Build.0 = Debug|x86
{BEE1F910-5359-49B5-BFDA-81C2BE1D6B7C}.Release|x86.ActiveCfg = Release|x86
{BEE1F910-5359-49B5-BFDA-81C2BE1D6B7C}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,87 @@
<?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>{BEE1F910-5359-49B5-BFDA-81C2BE1D6B7C}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CD_Account_Test</RootNamespace>
<AssemblyName>CD Account Test</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="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>

View File

@@ -0,0 +1,286 @@
namespace CD_Account_Test
{
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.exitButton = new System.Windows.Forms.Button();
this.createObjectButton = new System.Windows.Forms.Button();
this.objectGroupBox = new System.Windows.Forms.GroupBox();
this.outputMaturityDateLabel = new System.Windows.Forms.Label();
this.outputBalanceLabel = new System.Windows.Forms.Label();
this.outoutInterestRateLabel = new System.Windows.Forms.Label();
this.outputAccountNumberLabel = new System.Windows.Forms.Label();
this.maturityDateLabel = new System.Windows.Forms.Label();
this.balanceLabel = new System.Windows.Forms.Label();
this.interestRateLabel = new System.Windows.Forms.Label();
this.accountNumberLabel = new System.Windows.Forms.Label();
this.inputGroupBox = new System.Windows.Forms.GroupBox();
this.maturityDateTextBox = new System.Windows.Forms.TextBox();
this.balanceTextBox = new System.Windows.Forms.TextBox();
this.interestRateTextBox = new System.Windows.Forms.TextBox();
this.accountNumberTextBox = new System.Windows.Forms.TextBox();
this.inputMaturityDateLabel = new System.Windows.Forms.Label();
this.inputBalanceLabel = new System.Windows.Forms.Label();
this.inputInterestRatelLabel = new System.Windows.Forms.Label();
this.inputAccountNumberLabel = new System.Windows.Forms.Label();
this.objectGroupBox.SuspendLayout();
this.inputGroupBox.SuspendLayout();
this.SuspendLayout();
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(140, 336);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(75, 40);
this.exitButton.TabIndex = 7;
this.exitButton.Text = "Exit";
this.exitButton.UseVisualStyleBackColor = true;
//
// createObjectButton
//
this.createObjectButton.Location = new System.Drawing.Point(59, 336);
this.createObjectButton.Name = "createObjectButton";
this.createObjectButton.Size = new System.Drawing.Size(75, 40);
this.createObjectButton.TabIndex = 6;
this.createObjectButton.Text = "Create Object";
this.createObjectButton.UseVisualStyleBackColor = true;
//
// objectGroupBox
//
this.objectGroupBox.Controls.Add(this.outputMaturityDateLabel);
this.objectGroupBox.Controls.Add(this.outputBalanceLabel);
this.objectGroupBox.Controls.Add(this.outoutInterestRateLabel);
this.objectGroupBox.Controls.Add(this.outputAccountNumberLabel);
this.objectGroupBox.Controls.Add(this.maturityDateLabel);
this.objectGroupBox.Controls.Add(this.balanceLabel);
this.objectGroupBox.Controls.Add(this.interestRateLabel);
this.objectGroupBox.Controls.Add(this.accountNumberLabel);
this.objectGroupBox.Location = new System.Drawing.Point(24, 173);
this.objectGroupBox.Name = "objectGroupBox";
this.objectGroupBox.Size = new System.Drawing.Size(227, 147);
this.objectGroupBox.TabIndex = 5;
this.objectGroupBox.TabStop = false;
this.objectGroupBox.Text = "Object Properties";
//
// outputMaturityDateLabel
//
this.outputMaturityDateLabel.AutoSize = true;
this.outputMaturityDateLabel.Location = new System.Drawing.Point(26, 108);
this.outputMaturityDateLabel.Name = "outputMaturityDateLabel";
this.outputMaturityDateLabel.Size = new System.Drawing.Size(73, 13);
this.outputMaturityDateLabel.TabIndex = 18;
this.outputMaturityDateLabel.Text = "Maturity Date:";
//
// outputBalanceLabel
//
this.outputBalanceLabel.AutoSize = true;
this.outputBalanceLabel.Location = new System.Drawing.Point(50, 82);
this.outputBalanceLabel.Name = "outputBalanceLabel";
this.outputBalanceLabel.Size = new System.Drawing.Size(49, 13);
this.outputBalanceLabel.TabIndex = 17;
this.outputBalanceLabel.Text = "Balance:";
//
// outoutInterestRateLabel
//
this.outoutInterestRateLabel.AutoSize = true;
this.outoutInterestRateLabel.Location = new System.Drawing.Point(28, 56);
this.outoutInterestRateLabel.Name = "outoutInterestRateLabel";
this.outoutInterestRateLabel.Size = new System.Drawing.Size(71, 13);
this.outoutInterestRateLabel.TabIndex = 16;
this.outoutInterestRateLabel.Text = "Interest Rate:";
//
// outputAccountNumberLabel
//
this.outputAccountNumberLabel.AutoSize = true;
this.outputAccountNumberLabel.Location = new System.Drawing.Point(9, 30);
this.outputAccountNumberLabel.Name = "outputAccountNumberLabel";
this.outputAccountNumberLabel.Size = new System.Drawing.Size(90, 13);
this.outputAccountNumberLabel.TabIndex = 15;
this.outputAccountNumberLabel.Text = "Account Number:";
//
// maturityDateLabel
//
this.maturityDateLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.maturityDateLabel.Location = new System.Drawing.Point(106, 103);
this.maturityDateLabel.Name = "maturityDateLabel";
this.maturityDateLabel.Size = new System.Drawing.Size(100, 23);
this.maturityDateLabel.TabIndex = 13;
this.maturityDateLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// balanceLabel
//
this.balanceLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.balanceLabel.Location = new System.Drawing.Point(106, 77);
this.balanceLabel.Name = "balanceLabel";
this.balanceLabel.Size = new System.Drawing.Size(100, 23);
this.balanceLabel.TabIndex = 12;
this.balanceLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// interestRateLabel
//
this.interestRateLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.interestRateLabel.Location = new System.Drawing.Point(106, 51);
this.interestRateLabel.Name = "interestRateLabel";
this.interestRateLabel.Size = new System.Drawing.Size(100, 23);
this.interestRateLabel.TabIndex = 11;
this.interestRateLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// accountNumberLabel
//
this.accountNumberLabel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.accountNumberLabel.Location = new System.Drawing.Point(106, 25);
this.accountNumberLabel.Name = "accountNumberLabel";
this.accountNumberLabel.Size = new System.Drawing.Size(100, 23);
this.accountNumberLabel.TabIndex = 10;
this.accountNumberLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// inputGroupBox
//
this.inputGroupBox.Controls.Add(this.maturityDateTextBox);
this.inputGroupBox.Controls.Add(this.balanceTextBox);
this.inputGroupBox.Controls.Add(this.interestRateTextBox);
this.inputGroupBox.Controls.Add(this.accountNumberTextBox);
this.inputGroupBox.Controls.Add(this.inputMaturityDateLabel);
this.inputGroupBox.Controls.Add(this.inputBalanceLabel);
this.inputGroupBox.Controls.Add(this.inputInterestRatelLabel);
this.inputGroupBox.Controls.Add(this.inputAccountNumberLabel);
this.inputGroupBox.Location = new System.Drawing.Point(24, 18);
this.inputGroupBox.Name = "inputGroupBox";
this.inputGroupBox.Size = new System.Drawing.Size(227, 138);
this.inputGroupBox.TabIndex = 4;
this.inputGroupBox.TabStop = false;
this.inputGroupBox.Text = "Enter CD Account Data";
//
// maturityDateTextBox
//
this.maturityDateTextBox.Location = new System.Drawing.Point(111, 100);
this.maturityDateTextBox.Name = "maturityDateTextBox";
this.maturityDateTextBox.Size = new System.Drawing.Size(100, 20);
this.maturityDateTextBox.TabIndex = 8;
//
// balanceTextBox
//
this.balanceTextBox.Location = new System.Drawing.Point(112, 74);
this.balanceTextBox.Name = "balanceTextBox";
this.balanceTextBox.Size = new System.Drawing.Size(100, 20);
this.balanceTextBox.TabIndex = 7;
//
// interestRateTextBox
//
this.interestRateTextBox.Location = new System.Drawing.Point(112, 48);
this.interestRateTextBox.Name = "interestRateTextBox";
this.interestRateTextBox.Size = new System.Drawing.Size(100, 20);
this.interestRateTextBox.TabIndex = 6;
//
// accountNumberTextBox
//
this.accountNumberTextBox.Location = new System.Drawing.Point(112, 22);
this.accountNumberTextBox.Name = "accountNumberTextBox";
this.accountNumberTextBox.Size = new System.Drawing.Size(100, 20);
this.accountNumberTextBox.TabIndex = 5;
//
// inputMaturityDateLabel
//
this.inputMaturityDateLabel.AutoSize = true;
this.inputMaturityDateLabel.Location = new System.Drawing.Point(28, 103);
this.inputMaturityDateLabel.Name = "inputMaturityDateLabel";
this.inputMaturityDateLabel.Size = new System.Drawing.Size(73, 13);
this.inputMaturityDateLabel.TabIndex = 3;
this.inputMaturityDateLabel.Text = "Maturity Date:";
//
// inputBalanceLabel
//
this.inputBalanceLabel.AutoSize = true;
this.inputBalanceLabel.Location = new System.Drawing.Point(52, 77);
this.inputBalanceLabel.Name = "inputBalanceLabel";
this.inputBalanceLabel.Size = new System.Drawing.Size(49, 13);
this.inputBalanceLabel.TabIndex = 2;
this.inputBalanceLabel.Text = "Balance:";
//
// inputInterestRatelLabel
//
this.inputInterestRatelLabel.AutoSize = true;
this.inputInterestRatelLabel.Location = new System.Drawing.Point(30, 51);
this.inputInterestRatelLabel.Name = "inputInterestRatelLabel";
this.inputInterestRatelLabel.Size = new System.Drawing.Size(71, 13);
this.inputInterestRatelLabel.TabIndex = 1;
this.inputInterestRatelLabel.Text = "Interest Rate:";
//
// inputAccountNumberLabel
//
this.inputAccountNumberLabel.AutoSize = true;
this.inputAccountNumberLabel.Location = new System.Drawing.Point(11, 25);
this.inputAccountNumberLabel.Name = "inputAccountNumberLabel";
this.inputAccountNumberLabel.Size = new System.Drawing.Size(90, 13);
this.inputAccountNumberLabel.TabIndex = 0;
this.inputAccountNumberLabel.Text = "Account Number:";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(274, 394);
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 = "CD Account Test";
this.objectGroupBox.ResumeLayout(false);
this.objectGroupBox.PerformLayout();
this.inputGroupBox.ResumeLayout(false);
this.inputGroupBox.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button exitButton;
private System.Windows.Forms.Button createObjectButton;
private System.Windows.Forms.GroupBox objectGroupBox;
private System.Windows.Forms.Label outputMaturityDateLabel;
private System.Windows.Forms.Label outputBalanceLabel;
private System.Windows.Forms.Label outoutInterestRateLabel;
private System.Windows.Forms.Label outputAccountNumberLabel;
private System.Windows.Forms.Label maturityDateLabel;
private System.Windows.Forms.Label balanceLabel;
private System.Windows.Forms.Label interestRateLabel;
private System.Windows.Forms.Label accountNumberLabel;
private System.Windows.Forms.GroupBox inputGroupBox;
private System.Windows.Forms.TextBox maturityDateTextBox;
private System.Windows.Forms.TextBox balanceTextBox;
private System.Windows.Forms.TextBox interestRateTextBox;
private System.Windows.Forms.TextBox accountNumberTextBox;
private System.Windows.Forms.Label inputMaturityDateLabel;
private System.Windows.Forms.Label inputBalanceLabel;
private System.Windows.Forms.Label inputInterestRatelLabel;
private System.Windows.Forms.Label inputAccountNumberLabel;
}
}

View File

@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CD_Account_Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
}
}

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

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace CD_Account_Test
{
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());
}
}
}

View File

@@ -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("CD Account Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("CD Account Test")]
[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("cfb25110-3097-41db-93e6-18a7d6612559")]
// 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")]

View 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 CD_Account_Test.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("CD_Account_Test.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;
}
}
}
}

View File

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

View 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 CD_Account_Test.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;
}
}
}
}

View File

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

View File

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

View File

@@ -0,0 +1 @@
95faa9c84b84eaa14f21cf9fc8217e3aa52dae7c

View File

@@ -0,0 +1,11 @@
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\bin\Debug\CD Account Test.exe
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\bin\Debug\CD Account Test.pdb
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\ResolveAssemblyReference.cache
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\CD_Account_Test.Form1.resources
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\CD_Account_Test.Properties.Resources.resources
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\GenerateResource.read.1.tlog
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\GenerateResource.write.1.tlog
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\CD Account Test.exe
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\CD Account Test.pdb
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\CD Account Test.exe
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\CD Account Test\CD Account Test\obj\x86\Debug\CD Account Test.pdb

View 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

View File

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

View File

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

View 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; }
}
}

View 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;
}
}

View 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();
}
}
}

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

View 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());
}
}
}

View File

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

View 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;
}
}
}
}

View File

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

View 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;
}
}
}
}

View File

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

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Car_Demo
{
class Test
{
}
}

View File

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

View File

@@ -0,0 +1 @@
620b3b04b5d6a20e906481d7888a1d7a5a43cedb

View File

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

View 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 Truck SUV Demo", "Car Truck SUV Demo\Car Truck SUV Demo.csproj", "{B31F7C4C-9E95-4656-B632-E163B6D77AFB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B31F7C4C-9E95-4656-B632-E163B6D77AFB}.Debug|x86.ActiveCfg = Debug|x86
{B31F7C4C-9E95-4656-B632-E163B6D77AFB}.Debug|x86.Build.0 = Debug|x86
{B31F7C4C-9E95-4656-B632-E163B6D77AFB}.Release|x86.ActiveCfg = Release|x86
{B31F7C4C-9E95-4656-B632-E163B6D77AFB}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Car_Truck_SUV_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; }
}
}

View File

@@ -0,0 +1,91 @@
<?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>{B31F7C4C-9E95-4656-B632-E163B6D77AFB}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Car_Truck_SUV_Demo</RootNamespace>
<AssemblyName>Car Truck SUV 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" />
<Compile Include="SportUtility.cs" />
<Compile Include="Truck.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>

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Car_Truck_SUV_Demo
{
class Car : Automobile
{
// Constructor
public Car()
{
Doors = 0;
}
// Doors property
public int Doors { get; set; }
}
}

View File

@@ -0,0 +1,74 @@
namespace Car_Truck_SUV_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.exitButton = new System.Windows.Forms.Button();
this.createObjectsButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// exitButton
//
this.exitButton.Location = new System.Drawing.Point(150, 33);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(75, 40);
this.exitButton.TabIndex = 6;
this.exitButton.Text = "Exit";
this.exitButton.UseVisualStyleBackColor = true;
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
//
// createObjectsButton
//
this.createObjectsButton.Location = new System.Drawing.Point(69, 33);
this.createObjectsButton.Name = "createObjectsButton";
this.createObjectsButton.Size = new System.Drawing.Size(75, 40);
this.createObjectsButton.TabIndex = 5;
this.createObjectsButton.Text = "Create Objects";
this.createObjectsButton.UseVisualStyleBackColor = true;
this.createObjectsButton.Click += new System.EventHandler(this.createObjectsButton_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(295, 107);
this.Controls.Add(this.exitButton);
this.Controls.Add(this.createObjectsButton);
this.Name = "Form1";
this.Text = "Car Truck SUV Demo";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button exitButton;
private System.Windows.Forms.Button createObjectsButton;
}
}

View File

@@ -0,0 +1,76 @@
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_Truck_SUV_Demo
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void createObjectsButton_Click(object sender, EventArgs e)
{
// Create a Car object for a used 2001 BMW with 70,000
// miles, priced at $15,000, with 4 doors.
Car myCar = new Car();
myCar.Make = "BMW";
myCar.Model = "2001";
myCar.Mileage = 70000;
myCar.Price = 15000;
myCar.Doors = 4;
// Create a Truck object for a used 2002 Toyota
// pickup with 40,000 miles, priced at $12,000,
// with four wheel drive.
Truck myTruck = new Truck();
myTruck.Make = "Toyota";
myTruck.Model = "2002";
myTruck.Mileage = 40000;
myTruck.Price = 12000;
myTruck.Drive = "Four Wheel Drive";
// Create a SportUtility object for a used 2000
// Volvo with 30,000 miles, priced at $15,500,
// with a passenger capacity of 5.
SportUtility mySUV = new SportUtility();
mySUV.Make = "Volvo";
mySUV.Model = "2000";
mySUV.Mileage = 30000;
mySUV.Price = 15500;
mySUV.Passengers = 5;
// Display data about the car.
MessageBox.Show(myCar.Model + " " + myCar.Make + " with " +
myCar.Mileage + " miles, priced at " +
myCar.Price.ToString("c") + ", with " + myCar.Doors +
" doors.");
// Display data about the truck.
MessageBox.Show(myTruck.Model + " " + myTruck.Make +
" with " + myTruck.Mileage + " miles, priced at " +
myTruck.Price.ToString("c") + ", with " +
myTruck.Drive);
// Display data about the SUV.
MessageBox.Show(mySUV.Model + " " + mySUV.Make + " with " +
mySUV.Mileage + " miles, priced at " +
mySUV.Price.ToString("c") + ", with " + mySUV.Passengers +
" passengers.");
}
private void exitButton_Click(object sender, EventArgs e)
{
// Close the form.
this.Close();
}
}
}

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

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Car_Truck_SUV_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());
}
}
}

View File

@@ -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 Truck SUV Demo")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Car Truck SUV 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("da74a0f4-16fd-4422-a5dd-52c51e72c306")]
// 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")]

View 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_Truck_SUV_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_Truck_SUV_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;
}
}
}
}

View File

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

View 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_Truck_SUV_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;
}
}
}
}

View File

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

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Car_Truck_SUV_Demo
{
class SportUtility : Automobile
{
// Constructor
public SportUtility()
{
Passengers = 0;
}
// Passengers property
public int Passengers { get; set; }
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Car_Truck_SUV_Demo
{
class Truck : Automobile
{
// Constructor
public Truck()
{
Drive = "";
}
// Drive property
public string Drive { get; set; }
}
}

View File

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

View File

@@ -0,0 +1,27 @@
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\bin\Debug\Car Truck SUV Demo.exe
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\bin\Debug\Car Truck SUV Demo.pdb
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\ResolveAssemblyReference.cache
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car_Truck_SUV_Demo.Form1.resources
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car_Truck_SUV_Demo.Properties.Resources.resources
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\GenerateResource.read.1.tlog
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\GenerateResource.write.1.tlog
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.exe
C:\Users\Tony\Documents\Books\C#\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.pdb
C:\Users\Tony\Documents\Books\C#\3rd Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.exe
C:\Users\Tony\Documents\Books\C#\3rd Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.pdb
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.exe
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.pdb
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\bin\Debug\Car Truck SUV Demo.exe
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\bin\Debug\Car Truck SUV Demo.pdb
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car_Truck_SUV_Demo.Form1.resources
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car_Truck_SUV_Demo.Properties.Resources.resources
C:\Users\Tony\Documents\Books\C#\4th Edition\Student Sample Programs\Chap10\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.csproj.GenerateResource.Cache
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\bin\Debug\Car Truck SUV Demo.exe
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\bin\Debug\Car Truck SUV Demo.pdb
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.csprojAssemblyReference.cache
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car_Truck_SUV_Demo.Form1.resources
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car_Truck_SUV_Demo.Properties.Resources.resources
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.csproj.GenerateResource.cache
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.csproj.CoreCompileInputs.cache
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.exe
D:\Documents\Books\C#\5th Edition (future)\Source Code Workspace\Source Code\Chap11\Car Truck SUV Demo\Car Truck SUV Demo\obj\x86\Debug\Car Truck SUV Demo.pdb

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