Anda di halaman 1dari 60

p.

targets" />
</Project><?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 c
omment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.bas
e64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="appl
ication/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" xm
lns: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" msda
ta: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=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><?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 c
omment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.bas
e64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="appl
ication/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" xm
lns: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" msda
ta: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=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>namespace CSSample02
{
partial class XYInputDialog
{
/// <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.XLabel = new System.Windows.Forms.Label();
this.X_value = new System.Windows.Forms.TextBox();
this.YLabel = new System.Windows.Forms.Label();
this.Y_value = new System.Windows.Forms.TextBox();
this.OKButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// XLabel
//
this.XLabel.AutoSize = true;
this.XLabel.Location = new System.Drawing.Point(8, 13);
this.XLabel.Name = "XLabel";
this.XLabel.Size = new System.Drawing.Size(14, 13);
this.XLabel.TabIndex = 0;
this.XLabel.Text = "X";
//
// X_value
//
this.X_value.Location = new System.Drawing.Point(29, 10);
this.X_value.Name = "X_value";
this.X_value.Size = new System.Drawing.Size(35, 20);
this.X_value.TabIndex = 1;
//
// YLabel
//
this.YLabel.AutoSize = true;
this.YLabel.Location = new System.Drawing.Point(83, 13);
this.YLabel.Name = "YLabel";
this.YLabel.Size = new System.Drawing.Size(14, 13);
this.YLabel.TabIndex = 2;
this.YLabel.Text = "Y";
//
// Y_value
//
this.Y_value.Location = new System.Drawing.Point(104, 10);
this.Y_value.Name = "Y_value";
this.Y_value.Size = new System.Drawing.Size(36, 20);
this.Y_value.TabIndex = 3;
//
// OKButton
//
this.OKButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.OKButton.Location = new System.Drawing.Point(163, 8);
this.OKButton.Name = "OKButton";
this.OKButton.Size = new System.Drawing.Size(44, 23);
this.OKButton.TabIndex = 4;
this.OKButton.Text = "OK";
this.OKButton.UseVisualStyleBackColor = true;
//
// XYInputDialog
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(216, 48);
this.ControlBox = false;
this.Controls.Add(this.OKButton);
this.Controls.Add(this.Y_value);
this.Controls.Add(this.YLabel);
this.Controls.Add(this.X_value);
this.Controls.Add(this.XLabel);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDia
log;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "XYInputDialog";
this.Text = "XY Input";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label XLabel;
private System.Windows.Forms.TextBox X_value;
private System.Windows.Forms.Label YLabel;
private System.Windows.Forms.TextBox Y_value;
private System.Windows.Forms.Button OKButton;
}
}
<?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 c
omment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.bas
e64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="appl
ication/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" xm
lns: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" msda
ta: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=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><?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/ms
build/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{319D9C8D-9830-42A0-A6FC-263B3E51F0DB}</ProjectGuid>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>CSSample03</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>Off</OptionStrict>
<RootNamespace>CSSample03</RootNamespace>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<MyType>WindowsFormsWithCustomSubMain</MyType>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample03.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>full</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'
">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample03.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>none</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.XML" />
<Reference Include="Autodesk.Map.IM.Data">
<Name>Autodesk.Map.IM.Data</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Data.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Data.UnitSupport, Version=16.0.0.0, Cult
ure=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Exception">
<Name>Autodesk.Map.IM.Exception</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Exception.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Forms, Version=5.0.33.0, Culture=neutral
, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Graphic">
<Name>Autodesk.Map.IM.Graphic</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Graphic.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Map, Version=5.0.33.0, Culture=neutral,
processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Util">
<Name>Autodesk.Map.IM.Util</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Util.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="CSSample03.cs" />
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="CSSample03.tbp">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets" />
</Project><?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

Version 1.3

The primary goal 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">1.3</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows
.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows
.Forms, ...</resheader>
<data name="Name1">this is my long string</data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.bas
e64">
[base64 mime encoded serialized .NET Framework object]
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="appl
ication/x-microsoft.net.object.bytearray.base64">
[base64 mime encoded string representing a byte array form of the .NET F
ramework object]
</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 supports
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" xm
lns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<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" msda
ta: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>1.3</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.
0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.
0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="cmb_DataReader.Locked" type="System.Boolean, mscorlib, Version=1.0
.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="cmb_DataReader.DefaultModifiers" type="System.CodeDom.MemberAttrib
utes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e0
89">
<value>Assembly</value>
</data>
<data name="cmb_DataReader.Modifiers" type="System.CodeDom.MemberAttributes, S
ystem, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="ListBox1.DefaultModifiers" type="System.CodeDom.MemberAttributes,
System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="ListBox1.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.
0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="ListBox1.Modifiers" type="System.CodeDom.MemberAttributes, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="DataGrid1.Locked" type="System.Boolean, mscorlib, Version=1.0.5000
.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="DataGrid1.Modifiers" type="System.CodeDom.MemberAttributes, System
, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="DataGrid1.DefaultModifiers" type="System.CodeDom.MemberAttributes,
System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="cmb_DataTable.Locked" type="System.Boolean, mscorlib, Version=1.0.
5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="cmb_DataTable.DefaultModifiers" type="System.CodeDom.MemberAttribu
tes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e08
9">
<value>Assembly</value>
</data>
<data name="cmb_DataTable.Modifiers" type="System.CodeDom.MemberAttributes, Sy
stem, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="cmb_SimpleExecute.Locked" type="System.Boolean, mscorlib, Version=
1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="cmb_SimpleExecute.DefaultModifiers" type="System.CodeDom.MemberAtt
ributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c56193
4e089">
<value>Assembly</value>
</data>
<data name="cmb_SimpleExecute.Modifiers" type="System.CodeDom.MemberAttributes
, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="cmb_DBTable.Locked" type="System.Boolean, mscorlib, Version=1.0.50
00.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="cmb_DBTable.DefaultModifiers" type="System.CodeDom.MemberAttribute
s, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>Assembly</value>
</data>
<data name="cmb_DBTable.Modifiers" type="System.CodeDom.MemberAttributes, Syst
em, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="ListView1.Locked" type="System.Boolean, mscorlib, Version=1.0.5000
.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="ListView1.DefaultModifiers" type="System.CodeDom.MemberAttributes,
System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="ListView1.Modifiers" type="System.CodeDom.MemberAttributes, System
, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="cmb_DataTable_geom.Locked" type="System.Boolean, mscorlib, Version
=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="cmb_DataTable_geom.DefaultModifiers" type="System.CodeDom.MemberAt
tributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c5619
34e089">
<value>Assembly</value>
</data>
<data name="cmb_DataTable_geom.Modifiers" type="System.CodeDom.MemberAttribute
s, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>
<value>Assembly</value>
</data>
<data name="cmb_DBTable_geom.Locked" type="System.Boolean, mscorlib, Version=1
.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="cmb_DBTable_geom.DefaultModifiers" type="System.CodeDom.MemberAttr
ibutes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934
e089">
<value>Assembly</value>
</data>
<data name="cmb_DBTable_geom.Modifiers" type="System.CodeDom.MemberAttributes,
System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
<data name="cmb_SimpleExecute_DBTable.Locked" type="System.Boolean, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="cmb_SimpleExecute_DBTable.DefaultModifiers" type="System.CodeDom.M
emberAttributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77
a5c561934e089">
<value>Assembly</value>
</data>
<data name="cmb_SimpleExecute_DBTable.Modifiers" type="System.CodeDom.MemberAt
tributes, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c5619
34e089">
<value>Assembly</value>
</data>
<data name="$this.Locked" type="System.Boolean, mscorlib, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="$this.Language" type="System.Globalization.CultureInfo, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>(Default)</value>
</data>
<data name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=1.0.5
000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="$this.Localizable" type="System.Boolean, mscorlib, Version=1.0.500
0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</data>
<data name="$this.GridSize" type="System.Drawing.Size, System.Drawing, Version
=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>8, 8</value>
</data>
<data name="$this.DrawGrid" type="System.Boolean, mscorlib, Version=1.0.5000.0
, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</data>
<data name="$this.TrayHeight" type="System.Int32, mscorlib, Version=1.0.5000.0
, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>80</value>
</data>
<data name="$this.SnapToGrid" type="System.Boolean, mscorlib, Version=1.0.5000
.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</data>
<data name="$this.Name">
<value>Form1</value>
</data>
<data name="$this.DefaultModifiers" type="System.CodeDom.MemberAttributes, Sys
tem, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>Assembly</value>
</data>
</root><?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/ms
build/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{B196D60F-2377-43EF-83F3-F2CD927418BA}</ProjectGuid>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccProvider>
</SccProvider>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>CSSample100</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>Off</OptionStrict>
<RootNamespace>CSSample100</RootNamespace>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<MyType>Windows</MyType>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SccAuxPath>
</SccAuxPath>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample100.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>full</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'
">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample100.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>none</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="mscorlib" />
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<Reference Include="Autodesk.Map.IM.Data">
<Name>Autodesk.Map.IM.Data</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Data.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Data.Tools">
<Name>Autodesk.Map.IM.Data.Tools</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Data.Tools.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Forms">
<Name>Autodesk.Map.IM.Forms</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Forms.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Map">
<Name>Autodesk.Map.IM.Map</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Map.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Form1.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="MyApplication.cs">
<SubType>Code</SubType>
</Compile>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="CSSample100.tbp">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets" />
</Project>// (C) Copyright 2008 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
using System;
namespace CSSample100
{
public class Form1 : Autodesk.Map.IM.Forms.ApplicationForm
{
#region Topobase Form Designer generated code
[Obsolete("Only used for form editor.", false)]
public Form1()
{
//This call is required by the Windows Form Designer.
InitializeComponent();
}
//NOTE: The following procedure is required by the Windows Form Designer
.
//It can only be modified using the Windows Form Designer.
//Do not modify it using the code editor.
internal Autodesk.Map.IM.Forms.Button buttonHighlight;
internal Autodesk.Map.IM.Forms.TextBox textBoxFid;
internal Autodesk.Map.IM.Forms.Label labelFid;
internal Autodesk.Map.IM.Forms.Button buttonInfo;
internal Autodesk.Map.IM.Forms.Button buttonMark;
internal Autodesk.Map.IM.Forms.Button buttonUnMark;
internal Autodesk.Map.IM.Forms.TextBox textSymbol;
internal Autodesk.Map.IM.Forms.Label label1;
internal Autodesk.Map.IM.Forms.Button buttonDigitize;
[System.Diagnostics.DebuggerStepThrough]
private void InitializeComponent()
{
this.buttonHighlight = new Autodesk.Map.IM.Forms.Button();
this.textBoxFid = new Autodesk.Map.IM.Forms.TextBox();
this.labelFid = new Autodesk.Map.IM.Forms.Label();
this.buttonInfo = new Autodesk.Map.IM.Forms.Button();
this.buttonDigitize = new Autodesk.Map.IM.Forms.Button();
this.buttonMark = new Autodesk.Map.IM.Forms.Button();
this.buttonUnMark = new Autodesk.Map.IM.Forms.Button();
this.textSymbol = new Autodesk.Map.IM.Forms.TextBox();
this.label1 = new Autodesk.Map.IM.Forms.Label();
//
// buttonHighlight
//
this.buttonHighlight.Location = new System.Drawing.Point(168, 40);
this.buttonHighlight.Name = "buttonHighlight";
this.buttonHighlight.Size = new System.Drawing.Size(144, 24);
this.buttonHighlight.Text = "Highlight";
this.buttonHighlight.Click += new System.EventHandler(this.ButtonHig
hlight_Click);
//
// textBoxFid
//
this.textBoxFid.Location = new System.Drawing.Point(32, 40);
this.textBoxFid.Name = "textBoxFid";
this.textBoxFid.Size = new System.Drawing.Size(122, 21);
this.textBoxFid.Text = "16";
//
// labelFid
//
this.labelFid.Location = new System.Drawing.Point(29, 12);
this.labelFid.Name = "labelFid";
this.labelFid.Size = new System.Drawing.Size(78, 20);
this.labelFid.Text = "Fid:";
//
// buttonInfo
//
this.buttonInfo.Location = new System.Drawing.Point(32, 120);
this.buttonInfo.Name = "buttonInfo";
this.buttonInfo.Size = new System.Drawing.Size(120, 24);
this.buttonInfo.Text = "Info";
this.buttonInfo.Click += new System.EventHandler(this.ButtonInfo_Cli
ck);
//
// buttonDigitize
//
this.buttonDigitize.Location = new System.Drawing.Point(168, 120);
this.buttonDigitize.Name = "buttonDigitize";
this.buttonDigitize.Size = new System.Drawing.Size(144, 24);
this.buttonDigitize.Text = "Digitize";
this.buttonDigitize.Click += new System.EventHandler(this.ButtonDigi
tize_Click);
//
// buttonMark
//
this.buttonMark.Location = new System.Drawing.Point(32, 224);
this.buttonMark.Name = "buttonMark";
this.buttonMark.Size = new System.Drawing.Size(120, 24);
this.buttonMark.Text = "Mark";
this.buttonMark.Click += new System.EventHandler(this.ButtonMark_Cli
ck);
//
// buttonUnMark
//
this.buttonUnMark.Location = new System.Drawing.Point(168, 224);
this.buttonUnMark.Name = "buttonUnMark";
this.buttonUnMark.Size = new System.Drawing.Size(144, 24);
this.buttonUnMark.Text = "UnMark";
this.buttonUnMark.Click += new System.EventHandler(this.ButtonUnMark
_Click);
//
// textSymbol
//
this.textSymbol.Location = new System.Drawing.Point(168, 184);
this.textSymbol.Name = "textSymbol";
this.textSymbol.Size = new System.Drawing.Size(148, 21);
this.textSymbol.Text = "define here";
//
// label1
//
this.label1.Location = new System.Drawing.Point(40, 184);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(107, 27);
this.label1.Text = "Symbolname:";
//
// Form1
//
this.ClientSize = new System.Drawing.Size(528, 216);
this.ContainerName = "textSymbol";
this.Controls.Add(this.buttonHighlight);
this.Controls.Add(this.textBoxFid);
this.Controls.Add(this.labelFid);
this.Controls.Add(this.buttonInfo);
this.Controls.Add(this.buttonDigitize);
this.Controls.Add(this.buttonMark);
this.Controls.Add(this.buttonUnMark);
this.Controls.Add(this.textSymbol);
this.Controls.Add(this.label1);
this.Location = new System.Drawing.Point(13, 13);
this.Size = new System.Drawing.Size(387, 321);
this.Text = "Sample 100 - Map Function";
}
#endregion
public Form1(Autodesk.Map.IM.Forms.Application application)
: base(application)
{
InitializeComponent();
}
private void ButtonHighlight_Click(System.Object sender, System.EventArg
s e)
{
//For the sample, we get an active document.
Autodesk.Map.IM.Forms.Document doc = this.Application.Documents.Acti
ve;
//Check to see if a map is available.
if (!doc.Map.IsConnected(true))
{
return;
}
//Check to see if the map supports have the function highlights
//because in addition to AutoCad Map as a graphic front end,
//there are other map applications (like simple viewers) that
//lack digitization and other mapping functions.
if (!doc.Map.IsValid(Autodesk.Map.IM.Map.MapLogic.Members.HighlightF
eatures))
{
return;
}
//Create an area with the feature IDs (FIDs) you want to highlight.
long fid = Convert.ToInt64(this.textBoxFid.Text);
//We get the FID from our textbox.
//Create a FeatureList from the FIDs.
Autodesk.Map.IM.Data.FeatureList features = new Autodesk.Map.IM.Data
.FeatureList(doc.Connection, new long[] { fid }, true);
//Highlight these features.
doc.Map.HighlightFeatures(features, Autodesk.Map.IM.Map.MapLogic.Hig
hlightModes.Highlight, true);
}
private void ButtonInfo_Click(object sender, System.EventArgs e)
{
//If you want to use Map functions for the web, you must
//use interactions for all Map functions that return a value.
//(For details about interactions, see Sample 46.)
this.Application.Interaction(this.ButtonInfo_Interaction);
}
private void ButtonInfo_Interaction(object sender, Autodesk.Map.IM.Forms
.Events.InteractionEventArgs e)
{
//For the sample, get the active document.
Autodesk.Map.IM.Forms.Document doc = this.Application.Documents.Acti
ve;
if (!doc.Map.IsConnected(true))
{
return;
}
if (!doc.Map.IsValid(Autodesk.Map.IM.Map.MapLogic.Members.GetLinkInf
o))
{
return;
}
Autodesk.Map.IM.Data.FidTidArray fList = doc.Map.GetLinkInfo();
foreach (long fid in fList.FIDs)
{
this.Application.MsgBox("FID:" + fid);
}
//You can also use doc.Map.GetFeature to get a list of features.
}
private void ButtonDigitize_Click(object sender, System.EventArgs e)
{
this.Application.Interaction(this.ButtonDigitize_Interaction);
}
private void ButtonDigitize_Interaction(object sender, Autodesk.Map.IM.F
orms.Events.InteractionEventArgs e)
{
//For the sample, get the active document.
Autodesk.Map.IM.Forms.Document doc = this.Application.Documents.Acti
ve;
if (! doc.Map.IsConnected(true))
{
return;
}
if (! doc.Map.IsValid(Autodesk.Map.IM.Map.MapLogic.Members.DigitizeF
eatures))
{
return;
}
Autodesk.Map.IM.Data.FeatureClass fClass;
Autodesk.Map.IM.Data.FeatureList fList;
//Hist_Flst is the name of the Table/FeatureClass we want to digitiz
e.
fClass = doc.Connection.FeatureClasses["HIST_FLST"];
fList = doc.Map.DigitizeFeatures(fClass, Autodesk.Map.IM.Data.Featur
eClassType.LineString, "Please digitize line string now.", "", true);
foreach (Autodesk.Map.IM.Data.Feature feature in fList)
{
this.Application.MsgBox("Fid:" + feature.FID);
}
}
private void ButtonMark_Click(System.Object sender, System.EventArgs e)
{
//For the sample, get the active document.
Autodesk.Map.IM.Forms.Document doc = this.Application.Documents.Acti
ve;
if (! doc.Map.IsConnected(true))
{
return;
}
if (! doc.Map.IsValid(Autodesk.Map.IM.Map.MapLogic.Members.MarkPoint
s))
{
return;
}
long fid = Convert.ToInt64(this.textBoxFid.Text); //We get the FID f
rom our textbox.
//Create a FeatureList from the FIDs.
Autodesk.Map.IM.Data.FeatureList features = new Autodesk.Map.IM.Data
.FeatureList(doc.Connection, new long[] { fid }, true);
string symbolname = this.textSymbol.Text;
doc.Map.MarkPoints(features, symbolname);
}
private void ButtonUnMark_Click(System.Object sender, System.EventArgs e
)
{
//For the sample, get the active document.
Autodesk.Map.IM.Forms.Document doc = this.Application.Documents.Acti
ve;
if (! doc.Map.IsConnected(true))
{
return;
}
if (! doc.Map.IsValid(Autodesk.Map.IM.Map.MapLogic.Members.UnmarkPoi
nts))
{
return;
}
doc.Map.UnmarkPoints();
}
}
}
<?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 c
omment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.bas
e64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="appl
ication/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" xm
lns: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" msda
ta: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=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>
<metadata name="buttonHighlight.ResZOrder" xml:space="preserve">
<value>0</value>
</metadata>
<metadata name="buttonHighlight.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="buttonHighlight.ResName" xml:space="preserve">
<value>buttonHighlight</value>
</metadata>
<metadata name="buttonHighlight.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="textBoxFid.ResZOrder" xml:space="preserve">
<value>1</value>
</metadata>
<metadata name="textBoxFid.ResType" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="textBoxFid.ResName" xml:space="preserve">
<value>textBoxFid</value>
</metadata>
<metadata name="textBoxFid.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="labelFid.ResZOrder" xml:space="preserve">
<value>2</value>
</metadata>
<metadata name="labelFid.ResType" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Cu
lture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="labelFid.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="labelFid.ResName" xml:space="preserve">
<value>labelFid</value>
</metadata>
<metadata name="buttonInfo.ResZOrder" xml:space="preserve">
<value>3</value>
</metadata>
<metadata name="buttonInfo.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="buttonInfo.ResName" xml:space="preserve">
<value>buttonInfo</value>
</metadata>
<metadata name="buttonInfo.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="buttonDigitize.ResZOrder" xml:space="preserve">
<value>4</value>
</metadata>
<metadata name="buttonDigitize.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="buttonDigitize.ResName" xml:space="preserve">
<value>buttonDigitize</value>
</metadata>
<metadata name="buttonDigitize.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="buttonMark.ResZOrder" xml:space="preserve">
<value>5</value>
</metadata>
<metadata name="buttonMark.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="buttonMark.ResName" xml:space="preserve">
<value>buttonMark</value>
</metadata>
<metadata name="buttonMark.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="buttonUnMark.ResZOrder" xml:space="preserve">
<value>6</value>
</metadata>
<metadata name="buttonUnMark.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="buttonUnMark.ResName" xml:space="preserve">
<value>buttonUnMark</value>
</metadata>
<metadata name="buttonUnMark.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="textSymbol.ResZOrder" xml:space="preserve">
<value>7</value>
</metadata>
<metadata name="textSymbol.ResType" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="textSymbol.ResName" xml:space="preserve">
<value>textSymbol</value>
</metadata>
<metadata name="textSymbol.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="label1.ResZOrder" xml:space="preserve">
<value>8</value>
</metadata>
<metadata name="label1.ResType" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Cu
lture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="label1.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="label1.ResName" xml:space="preserve">
<value>label1</value>
</metadata>
<metadata name="$this.ResZOrder" xml:space="preserve">
<value>0</value>
</metadata>
<metadata name="$this.ResType" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Cul
ture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="$this.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="$this.ResName" xml:space="preserve">
<value>Form1</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=2
.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
</root><?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/ms
build/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{82808EE4-0C97-4A93-A1B8-144F8BCF1BC2}</ProjectGuid>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccProvider>
</SccProvider>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>CSSample102</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>Off</OptionStrict>
<RootNamespace>CSSample102</RootNamespace>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<MyType>Windows</MyType>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SccAuxPath>
</SccAuxPath>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample102.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>full</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'
">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample102.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>none</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="mscorlib" />
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<Reference Include="Autodesk.Map.IM.Data">
<Name>Autodesk.Map.IM.Data</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Data.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Data.Tools">
<Name>Autodesk.Map.IM.Data.Tools</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Data.Tools.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Forms">
<Name>Autodesk.Map.IM.Forms</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Forms.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Forms.Desktop.Controls">
<Name>Autodesk.Map.IM.Forms.Desktop.Controls</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Forms.Desktop.Controls.dll</Hint
Path>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Map">
<Name>Autodesk.Map.IM.Map</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Map.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Form1.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="MyApplication.cs">
<SubType>Code</SubType>
</Compile>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="CSSample102.tbp">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets" />
</Project>// (C) Copyright 2008 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
using System;
namespace CSSample102
{
public class Form1 : Autodesk.Map.IM.Forms.ApplicationForm
{
#region " Topobase Form Designer generated code "
internal Autodesk.Map.IM.Forms.PictureComboBox pictureComboBox1;
internal Autodesk.Map.IM.Forms.Button button1;
internal Autodesk.Map.IM.Forms.Button button2;
internal Autodesk.Map.IM.Forms.Button button3;
internal Autodesk.Map.IM.Forms.Button button4;
[Obsolete("Only used for form designer.", false)]
public Form1()
{
InitializeComponent();
}
[System.Diagnostics.DebuggerStepThrough]
private void InitializeComponent()
{
this.pictureComboBox1 = new Autodesk.Map.IM.Forms.PictureComboBox();
this.button1 = new Autodesk.Map.IM.Forms.Button();
this.button2 = new Autodesk.Map.IM.Forms.Button();
this.button3 = new Autodesk.Map.IM.Forms.Button();
this.button4 = new Autodesk.Map.IM.Forms.Button();
//
// pictureComboBox1
//
this.pictureComboBox1.ItemHeight = 20;
this.pictureComboBox1.ItemWidth = 20;
this.pictureComboBox1.Location = new System.Drawing.Point(200, 56);
this.pictureComboBox1.Name = "pictureComboBox1";
this.pictureComboBox1.Size = new System.Drawing.Size(253, 21);
this.pictureComboBox1.Text = "pictureComboBox1";
this.pictureComboBox1.SelectionChanged += new Autodesk.Map.IM.Forms.
Events.PictureComboBoxEventHandler(this.PictureComboBox1_SelectionChanged);
//
// button1
//
this.button1.Location = new System.Drawing.Point(16, 16);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(152, 32);
this.button1.Text = "Fill";
this.button1.Click += new System.EventHandler(this.Button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(16, 56);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(152, 32);
this.button2.Text = "Set to Index 2";
this.button2.Click += new System.EventHandler(this.Button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(16, 96);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(152, 32);
this.button3.Text = "Fill from a Folder";
this.button3.Click += new System.EventHandler(this.Button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(16, 136);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(152, 32);
this.button4.Text = "Change Size of Items in List";
this.button4.Click += new System.EventHandler(this.Button4_Click);
//
// Form1
//
this.ClientSize = new System.Drawing.Size(528, 216);
this.ContainerName = "ButtonDigitize";
this.Controls.Add(this.pictureComboBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button3);
this.Controls.Add(this.button4);
this.Location = new System.Drawing.Point(13, 13);
this.Size = new System.Drawing.Size(561, 309);
this.Text = "Sample 102 - Picture ComboBox (Topobase form)";
this.Load += new System.EventHandler(this.Form1_Load);
}
#endregion
public Form1(Autodesk.Map.IM.Forms.Application application)
: base(application)
{
InitializeComponent();
}
private void Form1_Load(object sender, System.EventArgs e)
{
pictureComboBox1.AllowSelectionChangedEvent = true;
}
private void Button1_Click(System.Object sender, System.EventArgs e)
{
//Fill with single files.
this.pictureComboBox1.Items.Add("AddNew", this.Application.PicsDirec
tory + "AddFilter.ico");
this.pictureComboBox1.Items.Add("Delete", this.Application.PicsDirec
tory + "Delete.ico");
this.pictureComboBox1.Items.Add("Highlight", this.Application.PicsDi
rectory + "HighlightFeature.ico");
this.pictureComboBox1.Items.Add("Info", this.Application.PicsDirecto
ry + "Information.ico");
}
private void Button2_Click(System.Object sender, System.EventArgs e)
{
//The list begins with item 0 so the third item is 2.
this.pictureComboBox1.Items.SelectedIndex = 2;
}
private void Button3_Click(System.Object sender, System.EventArgs e)
{
//Fill with all files from a folder as text.
//The filename is displayed without its extension or path.
this.pictureComboBox1.Items.AddFiles(this.Application.PicsDirectory,
"*.*");
}
private void Button4_Click(System.Object sender, System.EventArgs e)
{
this.pictureComboBox1.ItemHeight = 80;
this.pictureComboBox1.ItemWidth = 80;
}
private void PictureComboBox1_SelectionChanged(object sender, Autodesk.M
ap.IM.Forms.Events.PictureComboBoxEventArgs e)
{
this.Application.MessageBox(e.Item.Text);
}
}
}
<?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 c
omment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.bas
e64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="appl
ication/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" xm
lns: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" msda
ta: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=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>
<metadata name="pictureComboBox1.ResZOrder" xml:space="preserve">
<value>0</value>
</metadata>
<metadata name="pictureComboBox1.ResName" xml:space="preserve">
<value>pictureComboBox1</value>
</metadata>
<metadata name="pictureComboBox1.ResType" xml:space="preserve">
<value>System.Windows.Forms.UserControl, System.Windows.Forms, Version=2.0.0
.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="pictureComboBox1.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="button1.ResZOrder" xml:space="preserve">
<value>1</value>
</metadata>
<metadata name="button1.ResName" xml:space="preserve">
<value>button1</value>
</metadata>
<metadata name="button1.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="button1.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="button2.ResZOrder" xml:space="preserve">
<value>2</value>
</metadata>
<metadata name="button2.ResName" xml:space="preserve">
<value>button2</value>
</metadata>
<metadata name="button2.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="button2.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="button3.ResZOrder" xml:space="preserve">
<value>3</value>
</metadata>
<metadata name="button3.ResName" xml:space="preserve">
<value>button3</value>
</metadata>
<metadata name="button3.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="button3.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="button4.ResZOrder" xml:space="preserve">
<value>4</value>
</metadata>
<metadata name="button4.ResName" xml:space="preserve">
<value>button4</value>
</metadata>
<metadata name="button4.ResType" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, C
ulture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="button4.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
<metadata name="$this.ResZOrder" xml:space="preserve">
<value>0</value>
</metadata>
<metadata name="$this.ResName" xml:space="preserve">
<value>Form1</value>
</metadata>
<metadata name="$this.ResType" xml:space="preserve">
<value>System.Windows.Forms.Form, System.Windows.Forms, Version=2.0.0.0, Cul
ture=neutral, PublicKeyToken=b77a5c561934e089</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=2
.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
</metadata>
<metadata name="$this.ResParent" xml:space="preserve">
<value>$this</value>
</metadata>
</root>// (C) Copyright 2008 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
using System.Data;
using System.Collections;
using Microsoft.VisualBasic;
using System.Diagnostics;
using System;
using System.Windows.Forms;
//NOTE: When run in web mode, only the text will appear.
//The graphics will not.
namespace CSSample102
{
public class Form2 : System.Windows.Forms.Form
{
#region " Windows Form Designer generated code "
public Form2()
{
//This call is required by the Windows Form Designer.
InitializeComponent();
//Add any initialization after the InitializeComponent() call.
}
//Form overrides dispose to clean up the component list.
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (!(components == null))
{
components.Dispose();
}
}
base.Dispose(disposing);
}
//Required by the Windows Form Designer.
private System.ComponentModel.Container components = null;
//NOTE: The following procedure is required by the Windows Form Designer
//It can only be modified using the Windows Form Designer.
//Do not modify it using the code editor.
internal Autodesk.Map.IM.Forms.Desktop.Controls.PictureComboBox pictureC
omboBox1;
internal System.Windows.Forms.Button button1;
internal System.Windows.Forms.Button button2;
internal System.Windows.Forms.Button button3;
internal System.Windows.Forms.Button button4;
[System.Diagnostics.DebuggerStepThrough]
private void InitializeComponent()
{
this.pictureComboBox1 = new Autodesk.Map.IM.Forms.Desktop.Controls.P
ictureComboBox();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button4 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// pictureComboBox1
//
this.pictureComboBox1.ItemHeight = 20;
this.pictureComboBox1.ItemWidth = 20;
this.pictureComboBox1.Location = new System.Drawing.Point(232, 96);
this.pictureComboBox1.Name = "pictureComboBox1";
this.pictureComboBox1.Size = new System.Drawing.Size(192, 24);
this.pictureComboBox1.TabIndex = 1;
this.pictureComboBox1.SelectionChanged += new Autodesk.Map.IM.Forms.
Events.PictureComboBoxEventHandler(this.PictureComboBox1_SelectionChanged);
//
// button1
//
this.button1.Location = new System.Drawing.Point(40, 32);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(144, 32);
this.button1.TabIndex = 2;
this.button1.Text = "Fill";
this.button1.Click += new System.EventHandler(this.Button1_Click);
//
// button2
//
this.button2.Location = new System.Drawing.Point(40, 112);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(144, 24);
this.button2.TabIndex = 3;
this.button2.Text = "Select Item 3";
this.button2.Click += new System.EventHandler(this.Button2_Click);
//
// button3
//
this.button3.Location = new System.Drawing.Point(40, 72);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(144, 32);
this.button3.TabIndex = 4;
this.button3.Text = "Fill with Files from a Folder";
this.button3.Click += new System.EventHandler(this.Button3_Click);
//
// button4
//
this.button4.Location = new System.Drawing.Point(40, 144);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(144, 40);
this.button4.TabIndex = 5;
this.button4.Text = "Change Size of Pictures in the List";
this.button4.Click += new System.EventHandler(this.Button4_Click);
//
// Form2
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(520, 273);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.pictureComboBox1);
this.Name = "Form2";
this.Text = "Sample 102 - Picture ComboBox (Windows form)";
this.ResumeLayout(false);
}
#endregion
private void Button1_Click(System.Object sender, System.EventArgs e)
{
//Fill with single files.
this.pictureComboBox1.Items.Add("AddNew", "..\\pics\\AddFilter.ico")
;
this.pictureComboBox1.Items.Add("Delete", "..\\pics\\Delete.ico");
this.pictureComboBox1.Items.Add("Highlight", "..\\pics\\HighlightFea
ture.ico");
this.pictureComboBox1.Items.Add("Info", "..\\pics\\Information.ico")
;
}
private void Button2_Click(System.Object sender, System.EventArgs e)
{
//The list begins with item 0, so the third item is 2.
this.pictureComboBox1.Items.SelectedIndex = 2;
}
private void Button3_Click(System.Object sender, System.EventArgs e)
{
//Fill with all files from a folder as text.
//Only the filename, not its extension or path will be displayed.
this.pictureComboBox1.Items.AddFiles("D:\\Topobase3\\Current\\Topoba
se\\Pics\\Dialog\\", "*.*");
}
private void PictureComboBox1_SelectionChanged(object sender, Autodesk.M
ap.IM.Forms.Events.PictureComboBoxEventArgs e)
{
MessageBox.Show(e.Item.Text);
}
private void Button4_Click(System.Object sender, System.EventArgs e)
{
this.pictureComboBox1.ItemHeight = 80;
this.pictureComboBox1.ItemWidth = 80;
}
}
}
<?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 c
omment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.bas
e64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="appl
ication/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" xm
lns: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" msda
ta: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=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><?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/ms
build/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{64BB1BE9-3AF7-41B6-BB3B-199603ADD9D1}</ProjectGuid>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>CSSample103</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>Off</OptionStrict>
<RootNamespace>CSSample103</RootNamespace>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<MyType>Windows</MyType>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample103.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>full</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'
">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample103.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>none</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="mscorlib" />
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<Reference Include="Autodesk.Map.IM.Batch">
<Name>Autodesk.Map.IM.Batch</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Batch.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Data">
<Name>Autodesk.Map.IM.Data</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Data.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Export.cs">
<SubType>Code</SubType>
</Compile>
<Content Include="Config103.xml" />
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets" />
</Project>// (C) Copyright 2008 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
using System.Data;
using System.Collections;
using Microsoft.VisualBasic;
using System.Diagnostics;
using System;
//If you need to run functionality via a batch file,
//(for example a data import or export)
//you can automate the process by using this application.
//The idea is to create an instance of a class via a command line, and
//set its properties either via command line or in an XML file.
//You can use your class by calling it from a command line.
//You can also use it in another application by creating an
//instance of the class with code.
//Create an XML file. (Copy the sample XML file in this project.)
//In this file, define the name of the assembly and the class you want to run.
//You can set your class' properties via command line,
//or by setting the parameters in the XML file.
//If no value for a class property is defined in the command line,
//the Value will be taken from the XML Config file.
//Sample call:
//TBBatch.exe ConfigFile=D:\Topobase3\Current\Topobase\Bin\MyExport2.xml; Output
Filename=E:\bla.txt; Username=TB3_HDH2551;
namespace CSSample103
{
public class Export : Autodesk.Map.IM.Batch.Client
{
#region "Your Properties "
private string outputFilenameField = "";
private string separatorSignField = "";
private Autodesk.Map.IM.Batch.StringCollection featureClassNamesField =
new Autodesk.Map.IM.Batch.StringCollection();
private Autodesk.Map.IM.Batch.KeyValueCollection colorsField = new Autod
esk.Map.IM.Batch.KeyValueCollection();
public string OutputFilename
{
get
{
return outputFilenameField;
}
set
{
outputFilenameField = value;
}
}
public string SeparatorSign
{
get
{
return separatorSignField;
}
set
{
separatorSignField = value;
}
}
public Autodesk.Map.IM.Batch.StringCollection FeatureClassNames
{
get
{
return featureClassNamesField;
}
set
{
featureClassNamesField = value;
}
}
public Autodesk.Map.IM.Batch.KeyValueCollection Colors
{
get
{
return colorsField;
}
set
{
colorsField = value;
}
}
#endregion
public Export(Autodesk.Map.IM.Data.TBConnection tbConnection) : base(tbC
onnection)
{
}
public override void Run()
{
System.IO.StreamWriter file = new System.IO.StreamWriter(this.Output
Filename);
foreach (string featureClassName in this.FeatureClassNames)
{
if (this.Connection.FeatureClasses.Contains(featureClassName))
{
file.WriteLine("FeatureClass:" + featureClassName);
}
}
foreach (DictionaryEntry c in this.Colors)
file.WriteLine(c.Key + " - " + c.Value);
file.Close();
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/ms
build/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{D8AD006F-3007-4133-9F4B-359102AECD18}</ProjectGuid>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>CSSample104</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>Off</OptionStrict>
<RootNamespace>CSSample104</RootNamespace>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<MyType>Windows</MyType>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample104.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>full</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'
">
<OutputPath>..\..\..\..\bin\</OutputPath>
<DocumentationFile>CSSample104.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>
</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>1</WarningLevel>
<DebugType>none</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<Reference Include="Autodesk.Map.IM.Data">
<Name>Autodesk.Map.IM.Data</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Data.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Data.Tools">
<Name>Autodesk.Map.IM.Data.Tools</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Data.Tools.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Forms">
<Name>Autodesk.Map.IM.Forms</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Forms.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Forms.Desktop.Controls">
<Name>Autodesk.Map.IM.Forms.Desktop.Controls</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Forms.Desktop.Controls.dll</Hint
Path>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Map">
<Name>Autodesk.Map.IM.Map</Name>
<HintPath>..\..\..\..\bin\Autodesk.Map.IM.Map.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="MyApplication.cs">
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="CSSample104.tbp">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets" />
</Project>// (C) Copyright 2008 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
using System;
using System.Reflection;
using System.Windows.Forms;
/// <remarks>
/// The *.tbp file tells Topobase how to use your DLL/PlugIn.
/// It is automatically copied to the Topobase\bin directory on compilation.
/// To disable the plugin, delete the .tbp and (optionally) the related
/// CSSampleX.* files in the Topobase\bin directory.
/// Do not leave an orphaned .tbp file in the Topobase\bin directory!
/// </remarks>
//This sample shows how to run short VB.NET scripts at runtime.
//For example, if you want the user to be able to enter formulas
//(or even "If > Then/ Else" code) it should be in standard VB.NET.
//The class Autodesk.Map.IM.Forms.ScriptEngine compiles and runs their code in t
he background,
//creating the class in memory.
namespace CSSample104
{
public class MyApplication : Autodesk.Map.IM.Forms.ApplicationPlugIn
{
public Autodesk.Map.IM.Forms.ToolBarButton MyToolbarItem = new Autodesk.
Map.IM.Forms.ToolBarButton();
public override void OnInitToolBars(object sender, Autodesk.Map.IM.Forms
.Events.ToolBarsEventArgs e)
{
//Add toolbar item to the document toolbar with the "Topobase" icon
Autodesk.Map.IM.Forms.ToolBar toolbar = e.ToolBars.Item("Sample Tool
bar");
toolbar.Buttons.Add(this.MyToolbarItem, "Topobase", "Sample 104 - Sc
ript Engine");
this.MyToolbarItem.Click += Run_Click;
}
private static void Run_Click(object sender, System.EventArgs e)
{
Sample1();
Sample2();
Sample3();
Sample4();
}
private static void Sample1()
{
Autodesk.Map.IM.Forms.ScriptEngine myScript = new Autodesk.Map.IM.Fo
rms.ScriptEngine();
//Add the code you want to calculate.
//Always assign it to the variable Result.
myScript.AddCode("Result=3*0.25+10");
//Execute the code.
if (myScript.Execute())
{
//Get the result...
double value = Convert.ToDouble(myScript.Result);
MessageBox.Show("Sample 1 Result:" + value, "Sample 104");
}
else
{
//...or report an error.
MessageBox.Show("ERROR: " + myScript.ErrorMessage, "Sample 104")
;
}
}
private static void Sample2()
{
Autodesk.Map.IM.Forms.ScriptEngine myScript = new Autodesk.Map.IM.Fo
rms.ScriptEngine();
//Clear your script and add code line by line.
myScript.Clear();
myScript.AddCode("dim a as double");
myScript.AddCode("a = 17");
myScript.AddCode("if a > 17 then a=10");
myScript.AddCode("Result=a");
//Execute the code.
if (myScript.Execute())
{
//Get the result.
double value = Convert.ToDouble(myScript.Result);
MessageBox.Show("Sample 2 Result:" + value, "Sample 104");
}
else
{
MessageBox.Show("ERROR: " + myScript.ErrorMessage, "Sample 104")
;
}
}
private static void Sample3()
{
Autodesk.Map.IM.Forms.ScriptEngine myScript = new Autodesk.Map.IM.Fo
rms.ScriptEngine();
myScript.Clear();
//Add a function.
System.Text.StringBuilder functionCode = new System.Text.StringBuild
er();
functionCode.Append("Public Function CalcWhatever(a as double) as do
uble" + "\r\n");
functionCode.Append(" CalcWhatever=a*10" + "\r\n");
functionCode.Append("End Function" + "\r\n");
myScript.AddFunction(functionCode);
//Add a function call.
myScript.AddCode("Result=CalcWhatever(3)");
//Calculate.
if (myScript.Execute())
{
//Get the result.
double value = Convert.ToDouble(myScript.Result);
MessageBox.Show("Sample 3 Result:" + value, "Sample 104");
}
else
{
MessageBox.Show("ERROR: " + myScript.ErrorMessage, "Sample 104")
;
}
}
private static void Sample4()
{
Autodesk.Map.IM.Forms.ScriptEngine myScript = new Autodesk.Map.IM.Fo
rms.ScriptEngine();
myScript.Clear();
//Add a function.
System.Text.StringBuilder functionCode = new System.Text.StringBuild
er();
functionCode.Append("Public Function CalcWhatever(a as double) as do
uble" + "\r\n");
functionCode.Append(" CalcWhatever=a*10" + "\r\n");
functionCode.Append("End Function" + "\r\n");
myScript.AddFunction(functionCode);
//This only compiles the class; it does not execute it.
if (myScript.Compile())
{
object myScriptClass;
//Get the compiled class and run the function directly via Lateb
inding.
myScriptClass = myScript.ScriptClass;
// Use reflection to invoke the method.
Type myType = myScriptClass.GetType();
double value = (double)myType.InvokeMember("CalcWhatever", Bindi
ngFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.NonPublic |

BindingFlags.Instance | BindingFlags.InvokeMethod, null, myScri
ptClass, new object[] { 5 });
MessageBox.Show("Sample 4 Result:" + value, "Sample 104");
}
else
{
MessageBox.Show("ERROR: " + myScript.ErrorMessage, "Sample 104")
;
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/ms
build/2003" ToolsVersion="4.0">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{1AF903CB-C79C-4FD3-B4A3-3AC3A6D78821}</ProjectGuid>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccProvider>
</SccProvider>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>CSSample105</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<AssemblyOriginatorKeyMode>None</AssemblyOriginatorKeyMode>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<OptionCompare>Binary</OptionCompare>
<OptionExplicit>On</OptionExplicit>
<OptionStrict>Off</OptionStrict>
<RootNamespace>CSSample105</RootNamespace>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<MyType>WindowsFormsWithCustomSubMain</MyType>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SccAuxPath>
</SccAuxPath>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>..\..\..\..\Bin\</OutputPath>
<DocumentationFile>CSSample105.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'
">
<OutputPath>..\..\..\..\Bin\</OutputPath>
<DocumentationFile>CSSample105.xml</DocumentationFile>
<BaseAddress>285212672</BaseAddress>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<DebugSymbols>false</DebugSymbols>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<Reference Include="Autodesk.Map.IM.Administrator">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Data">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Exception">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Forms">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.Map.IM.Map">
<SpecificVersion>False</SpecificVersion>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="PlugIn.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="CSSample105.tbp">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="$(MSBuildBinPath)/Microsoft.CSharp.targets" />
</Project><?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 c
omment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.bas
e64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="appl
ication/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" xm
lns: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>

Anda mungkin juga menyukai