Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Apress committed Oct 11, 2016
0 parents commit c16a141
Show file tree
Hide file tree
Showing 2,883 changed files with 92,650 additions and 0 deletions.
Binary file added 2343.pdf
Binary file not shown.
Binary file added 2344.pdf
Binary file not shown.
668 changes: 668 additions & 0 deletions 2499.html

Large diffs are not rendered by default.

Binary file added 9781590595121.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions Code/Chapter 10/C#/Chapter 10.sln
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Exercise 10.1", "Exercise 10.1\Exercise 10.1.csproj", "{97E4AA5F-B2F2-4B93-9A57-CD44235212ED}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{97E4AA5F-B2F2-4B93-9A57-CD44235212ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{97E4AA5F-B2F2-4B93-9A57-CD44235212ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
{97E4AA5F-B2F2-4B93-9A57-CD44235212ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
{97E4AA5F-B2F2-4B93-9A57-CD44235212ED}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added Code/Chapter 10/C#/Chapter 10.suo
Binary file not shown.
1,266 changes: 1,266 additions & 0 deletions Code/Chapter 10/C#/Exercise 10.1/AnimalsDataSet.Designer.cs

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions Code/Chapter 10/C#/Exercise 10.1/AnimalsDataSet.xsc
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="Windows-1252"?>
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings>
<TableUISetting Name="Animals">
<ColumnUISettings>
</ColumnUISettings>
<ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<BindableControlInfo Name="DataGridView" Type="System.Windows.Forms.DataGridView" AssemblyName="System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ControlSetting></ControlSettings>
</TableUISetting>
<TableUISetting Name="Pets">
<ColumnUISettings>
</ColumnUISettings>
<ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<BindableControlInfo Name="DataGridView" Type="System.Windows.Forms.DataGridView" AssemblyName="System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ControlSetting></ControlSettings>
</TableUISetting>
<TableUISetting Name="PetBelonging">
<ColumnUISettings>
</ColumnUISettings>
<ControlSettings><ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<BindableControlInfo Name="DataGridView" Type="System.Windows.Forms.DataGridView" AssemblyName="System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</ControlSetting></ControlSettings>
</TableUISetting>
</TableUISettings>
</DataSetUISetting>
70 changes: 70 additions & 0 deletions Code/Chapter 10/C#/Exercise 10.1/AnimalsDataSet.xsd
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="AnimalsDataSet" targetNamespace="http://tempuri.org/AnimalsDataSet.xsd" xmlns:mstns="http://tempuri.org/AnimalsDataSet.xsd" xmlns="http://tempuri.org/AnimalsDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" GeneratorTypeConverterClassName="Converter" Modifier="AutoLayout, AnsiClass, NotPublic, Public" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections>
</Connections>
<Tables>
</Tables>
<Sources>
</Sources>
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="AnimalsDataSet" msdata:IsDataSet="true" msdata:EnforceConstraints="False" msprop:User_DataSetName="AnimalsDataSet" msprop:DSGenerator_DataSetName="AnimalsDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Animals" msprop:Generator_SuspendValidationVarName="m_suspendValidation" msprop:Generator_SuspendValidationPropName="SuspendValidation" msprop:User_TableName="Animals" msprop:Generator_RowClassName="AnimalsRow" msprop:Generator_RowEvArgName="AnimalsRowChangeEvent" msprop:Generator_RowEvHandlerName="AnimalsRowChangeEventHandler" msprop:Generator_TableClassName="AnimalsDataTable" msprop:Generator_TableVarName="tableAnimals" msprop:Generator_TablePropName="Animals">
<xs:complexType>
<xs:sequence>
<xs:element name="AnimalID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementStep="-1" msprop:Generator_DelegateName="AnimalIDChangeEventHandler" msprop:Generator_ChangingEventName="AnimalIDChanging" msprop:Generator_ColumnVarNameInTable="columnAnimalID" msprop:Generator_EventArgName="AnimalIDChangeEventArg" msprop:User_ColumnName="AnimalID" msprop:Generator_ColumnPropNameInRow="AnimalID" msprop:Generator_ChangedEventName="AnimalIDChanged" msprop:Generator_ColumnPropNameInTable="AnimalIDColumn" type="xs:int" />
<xs:element name="AnimalType" msprop:Generator_DelegateName="AnimalTypeChangeEventHandler" msprop:Generator_ChangingEventName="AnimalTypeChanging" msprop:Generator_ColumnVarNameInTable="columnAnimalType" msprop:Generator_EventArgName="AnimalTypeChangeEventArg" msprop:User_ColumnName="AnimalType" msprop:Generator_ColumnPropNameInRow="AnimalType" msprop:Generator_ChangedEventName="AnimalTypeChanged" msprop:Generator_ColumnPropNameInTable="AnimalTypeColumn" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Pets" msprop:Generator_SuspendValidationVarName="m_suspendValidation" msprop:Generator_SuspendValidationPropName="SuspendValidation" msprop:User_TableName="Pets" msprop:Generator_RowClassName="PetsRow" msprop:Generator_RowEvArgName="PetsRowChangeEvent" msprop:Generator_RowEvHandlerName="PetsRowChangeEventHandler" msprop:Generator_TableClassName="PetsDataTable" msprop:Generator_TableVarName="tablePets" msprop:Generator_TablePropName="Pets">
<xs:complexType>
<xs:sequence>
<xs:element name="PetID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementStep="-1" msprop:Generator_DelegateName="PetIDChangeEventHandler" msprop:Generator_ChangingEventName="PetIDChanging" msprop:Generator_ColumnVarNameInTable="columnPetID" msprop:Generator_EventArgName="PetIDChangeEventArg" msprop:User_ColumnName="PetID" msprop:Generator_ColumnPropNameInRow="PetID" msprop:Generator_ChangedEventName="PetIDChanged" msprop:Generator_ColumnPropNameInTable="PetIDColumn" type="xs:int" />
<xs:element name="AnimalID" msprop:Generator_DelegateName="AnimalIDChangeEventHandler" msprop:Generator_ChangingEventName="AnimalIDChanging" msprop:Generator_ColumnVarNameInTable="columnAnimalID" msprop:Generator_EventArgName="AnimalIDChangeEventArg" msprop:User_ColumnName="AnimalID" msprop:Generator_ColumnPropNameInRow="AnimalID" msprop:Generator_ChangedEventName="AnimalIDChanged" msprop:Generator_ColumnPropNameInTable="AnimalIDColumn" type="xs:int" minOccurs="0" />
<xs:element name="FirstName" msprop:Generator_DelegateName="FirstNameChangeEventHandler" msprop:Generator_ChangingEventName="FirstNameChanging" msprop:Generator_ColumnVarNameInTable="columnFirstName" msprop:Generator_EventArgName="FirstNameChangeEventArg" msprop:User_ColumnName="FirstName" msprop:Generator_ColumnPropNameInRow="FirstName" msprop:Generator_ChangedEventName="FirstNameChanged" msprop:Generator_ColumnPropNameInTable="FirstNameColumn" type="xs:string" minOccurs="0" />
<xs:element name="LastName" msprop:Generator_DelegateName="LastNameChangeEventHandler" msprop:Generator_ChangingEventName="LastNameChanging" msprop:Generator_ColumnVarNameInTable="columnLastName" msprop:Generator_EventArgName="LastNameChangeEventArg" msprop:User_ColumnName="LastName" msprop:Generator_ColumnPropNameInRow="LastName" msprop:Generator_ChangedEventName="LastNameChanged" msprop:Generator_ColumnPropNameInTable="LastNameColumn" type="xs:string" minOccurs="0" />
<xs:element name="Weight" msprop:Generator_DelegateName="WeightChangeEventHandler" msprop:Generator_ChangingEventName="WeightChanging" msprop:Generator_ColumnVarNameInTable="columnWeight" msprop:Generator_EventArgName="WeightChangeEventArg" msprop:User_ColumnName="Weight" msprop:Generator_ColumnPropNameInRow="Weight" msprop:Generator_ChangedEventName="WeightChanged" msprop:Generator_ColumnPropNameInTable="WeightColumn" type="xs:int" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="PetBelonging" msprop:Generator_SuspendValidationVarName="m_suspendValidation" msprop:Generator_SuspendValidationPropName="SuspendValidation" msprop:User_TableName="PetBelonging" msprop:Generator_RowClassName="PetBelongingRow" msprop:Generator_RowEvArgName="PetBelongingRowChangeEvent" msprop:Generator_RowEvHandlerName="PetBelongingRowChangeEventHandler" msprop:Generator_TableClassName="PetBelongingDataTable" msprop:Generator_TableVarName="tablePetBelonging" msprop:Generator_TablePropName="PetBelonging">
<xs:complexType>
<xs:sequence>
<xs:element name="PetBelongingID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementStep="-1" msprop:Generator_DelegateName="PetBelongingIDChangeEventHandler" msprop:Generator_ChangingEventName="PetBelongingIDChanging" msprop:Generator_ColumnVarNameInTable="columnPetBelongingID" msprop:Generator_EventArgName="PetBelongingIDChangeEventArg" msprop:User_ColumnName="PetBelongingID" msprop:Generator_ColumnPropNameInRow="PetBelongingID" msprop:Generator_ChangedEventName="PetBelongingIDChanged" msprop:Generator_ColumnPropNameInTable="PetBelongingIDColumn" type="xs:int" />
<xs:element name="PetID" msprop:Generator_DelegateName="PetIDChangeEventHandler" msprop:Generator_ChangingEventName="PetIDChanging" msprop:Generator_ColumnVarNameInTable="columnPetID" msprop:Generator_EventArgName="PetIDChangeEventArg" msprop:User_ColumnName="PetID" msprop:Generator_ColumnPropNameInRow="PetID" msprop:Generator_ChangedEventName="PetIDChanged" msprop:Generator_ColumnPropNameInTable="PetIDColumn" type="xs:int" minOccurs="0" />
<xs:element name="Price" msprop:Generator_DelegateName="PriceChangeEventHandler" msprop:Generator_ChangingEventName="PriceChanging" msprop:Generator_ColumnVarNameInTable="columnPrice" msprop:Generator_EventArgName="PriceChangeEventArg" msprop:User_ColumnName="Price" msprop:Generator_ColumnPropNameInRow="Price" msprop:Generator_ChangedEventName="PriceChanged" msprop:Generator_ColumnPropNameInTable="PriceColumn" type="xs:decimal" minOccurs="0" />
<xs:element name="Name" msprop:Generator_DelegateName="NameChangeEventHandler" msprop:Generator_ChangingEventName="NameChanging" msprop:Generator_ColumnVarNameInTable="columnName" msprop:Generator_EventArgName="NameChangeEventArg" msprop:User_ColumnName="Name" msprop:Generator_ColumnPropNameInRow="Name" msprop:Generator_ChangedEventName="NameChanged" msprop:Generator_ColumnPropNameInTable="NameColumn" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
<xs:unique name="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Animals" />
<xs:field xpath="mstns:AnimalID" />
</xs:unique>
<xs:unique name="Pets_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:Pets" />
<xs:field xpath="mstns:PetID" />
</xs:unique>
<xs:unique name="PetBelonging_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
<xs:selector xpath=".//mstns:PetBelonging" />
<xs:field xpath="mstns:PetBelongingID" />
</xs:unique>
<xs:keyref name="FK_Pets_PetBelonging" refer="Pets_Constraint1" msprop:rel_Generator_RelationVarName="relationFK_Pets_PetBelonging" msprop:rel_User_ParentTable="Pets" msprop:rel_User_ChildTable="PetBelonging" msprop:rel_User_RelationName="FK_Pets_PetBelonging" msprop:rel_Generator_ParentPropName="PetsRow" msprop:rel_Generator_ChildPropName="GetPetBelongingRows">
<xs:selector xpath=".//mstns:PetBelonging" />
<xs:field xpath="mstns:PetID" />
</xs:keyref>
<xs:keyref name="FK_Animals_Pets" refer="Constraint1" msprop:rel_Generator_RelationVarName="relationFK_Animals_Pets" msprop:rel_User_ParentTable="Animals" msprop:rel_User_ChildTable="Pets" msprop:rel_User_RelationName="FK_Animals_Pets" msprop:rel_Generator_ParentPropName="AnimalsRow" msprop:rel_Generator_ChildPropName="GetPetsRows">
<xs:selector xpath=".//mstns:Pets" />
<xs:field xpath="mstns:AnimalID" />
</xs:keyref>
</xs:element>
</xs:schema>
34 changes: 34 additions & 0 deletions Code/Chapter 10/C#/Exercise 10.1/AnimalsDataSet.xss
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="Windows-1252"?>
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:Animals" ZOrder="5" X="80" Y="88" Height="58" SplitterPosition="54" Width="150" />
<Shape ID="DesignTable:Pets" ZOrder="4" X="103" Y="194" Height="106" SplitterPosition="102" Width="150" />
<Shape ID="DesignTable:PetBelonging" ZOrder="3" X="190" Y="359" Height="90" SplitterPosition="86" Width="150" />
</Shapes>
<Connectors>
<Connector ID="DesignRelation:FK_Animals_Pets" ZOrder="2" LineWidth="11">
<RoutePoints>
<Point>
<X>177</X>
<Y>146</Y>
</Point>
<Point>
<X>177</X>
<Y>194</Y>
</Point>
</RoutePoints>
</Connector>
<Connector ID="DesignRelation:FK_Pets_PetBelonging" ZOrder="1" LineWidth="11">
<RoutePoints>
<Point>
<X>232</X>
<Y>300</Y>
</Point>
<Point>
<X>232</X>
<Y>359</Y>
</Point>
</RoutePoints>
</Connector>
</Connectors>
</DiagramLayout>
83 changes: 83 additions & 0 deletions Code/Chapter 10/C#/Exercise 10.1/Exercise 10.1.csproj
@@ -0,0 +1,83 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50215</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{97E4AA5F-B2F2-4B93-9A57-CD44235212ED}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>Exercise_10_1</RootNamespace>
<AssemblyName>Exercise 10.1</AssemblyName>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>.\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<OutputPath>.\bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web.Services" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="AnimalsDataSet.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>AnimalsDataSet.xsd</DependentUpon>
</Compile>
<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.cs</LastGenOutput>
</EmbeddedResource>
<Compile Include="Properties\Resources.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="AnimalsDataSet.xsc">
<DependentUpon>AnimalsDataSet.xsd</DependentUpon>
</None>
<None Include="AnimalsDataSet.xss">
<DependentUpon>AnimalsDataSet.xsd</DependentUpon>
</None>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Content Include="AnimalsDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>AnimalsDataSet.Designer.cs</LastGenOutput>
</Content>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
</Project>
7 changes: 7 additions & 0 deletions Code/Chapter 10/C#/Exercise 10.1/Exercise 10.1.csproj.user
@@ -0,0 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="">
<LastOpenVersion>8.0.50215</LastOpenVersion>
<ProjectView>ProjectFiles</ProjectView>
<ProjectTrust>0</ProjectTrust>
</PropertyGroup>
</Project>

0 comments on commit c16a141

Please sign in to comment.