About the Utility wizard for basic schematic datasets configuration Sample
[C#]
Events.cs
// Copyright 2010 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
//
// See the use restrictions at <your ArcGIS install location>/DeveloperKit10.0/userestrictions.txt.
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
namespace SchematicCreateBasicSettingsAddIn
{
public class ReduceEvents : EventArgs
{
private string[] selectedObjects;
public ReduceEvents(string[] items)
{
this.selectedObjects = items;
}
public string[] SelectedObjects
{
get { return selectedObjects; }
set { selectedObjects = value; }
}
}
public class NameEvents : EventArgs
{
private bool blnNewDataset;
private string strDatasetName;
private string strTemplateName;
private bool blnUseVertices;
private bool blnAutoCreate;
public NameEvents(bool blnNewDataset, string strDatasetName, string strTemplateName, bool blnUseVertices)
{
this.blnNewDataset = blnNewDataset;
this.strDatasetName = strDatasetName;
this.strTemplateName = strTemplateName;
this.blnUseVertices = blnUseVertices;
}
public bool NewDataset
{
get { return blnNewDataset; }
set { blnNewDataset = value; }
}
public string DatasetName
{
get { return strDatasetName; }
set { strDatasetName = value; }
}
public string TemplateName
{
get { return strTemplateName; }
set { strTemplateName = value; }
}
public bool UseVertices
{
get { return blnUseVertices; }
set { blnUseVertices = value; }
}
public bool AutoCreate
{
get { return blnAutoCreate; }
set { blnAutoCreate = value; }
}
}
public class AdvancedEvents : EventArgs
{
private string strAlgorithmName;
private Dictionary<string,string> dicAlgorithmParams;
private string strRootClass;
private NameValueCollection fieldsToCreate;
public AdvancedEvents(string AlgorithmName, Dictionary<string,string> AlgorithmParams,string RootClass,NameValueCollection FieldsToCreate)
{
strAlgorithmName = AlgorithmName;
dicAlgorithmParams = AlgorithmParams;
strRootClass = RootClass;
fieldsToCreate = FieldsToCreate;
}
public string AlgorithmName
{
get { return strAlgorithmName; }
set { strAlgorithmName = value; }
}
public string RootClass
{
get { return strRootClass; }
set { strRootClass = value; }
}
public Dictionary<string,string> AlgorithmParams
{
get { return dicAlgorithmParams; }
set { dicAlgorithmParams = value; }
}
public NameValueCollection FieldsToCreate
{
get { return fieldsToCreate; }
set { FieldsToCreate = value; }
}
}
}
[Visual Basic .NET]
Events.vb
' Copyright 2010 ESRI
'
' All rights reserved under the copyright laws of the United States
' and applicable international laws, treaties, and conventions.
'
' You may freely redistribute and use this sample code, with or
' without modification, provided you include the original copyright
' notice and use restrictions.
'
' See the use restrictions at <your ArcGIS install location>/DeveloperKit10.0/userestrictions.txt.
Imports System
Imports System.Collections.Generic
Imports System.Collections.Specialized
Imports System.Linq
Imports System.Text
Public Class ReduceEvents
Inherits EventArgs
Private m_selectedObjects() As String
Public Sub New(ByVal items() As String)
Me.m_selectedObjects = items
End Sub
Public Property SelectedObjects() As String()
Get
Return m_selectedObjects
End Get
Set(ByVal value As String())
m_selectedObjects = value
End Set
End Property
End Class
Public Class NameEvents
Inherits EventArgs
Private blnNewDataset As Boolean
Private strDatasetName As String
Private strTemplateName As String
Private blnUseVertices As Boolean
Public Sub New(ByVal blnNewDataset As Boolean, ByVal strDatasetName As String, ByVal strTemplateName As String, ByVal blnUseVertices As Boolean)
Me.blnNewDataset = blnNewDataset
Me.strDatasetName = strDatasetName
Me.strTemplateName = strTemplateName
Me.blnUseVertices = blnUseVertices
End Sub
Public Property NewDataset() As Boolean
Get
Return blnNewDataset
End Get
Set(ByVal value As Boolean)
blnNewDataset = value
End Set
End Property
Public Property DatasetName() As String
Get
Return strDatasetName
End Get
Set(ByVal value As String)
strDatasetName = value
End Set
End Property
Public Property TemplateName() As String
Get
Return strTemplateName
End Get
Set(ByVal value As String)
strTemplateName = value
End Set
End Property
Public Property UseVertices() As Boolean
Get
Return blnUseVertices
End Get
Set(ByVal value As Boolean)
blnUseVertices = value
End Set
End Property
End Class
Public Class AdvancedEvents
Inherits EventArgs
Private strAlgorithmName As String
Private dicAlgorithmParams As Dictionary(Of String, String)
Private strRootClass As String
Private m_FieldsToCreate As NameValueCollection
Public Sub New(ByVal AlgorithmName As String, ByVal AlgorithmParams As Dictionary(Of String, String), ByVal RootClass As String, ByVal FieldsToCreate As NameValueCollection)
strAlgorithmName = AlgorithmName
dicAlgorithmParams = AlgorithmParams
strRootClass = RootClass
m_FieldsToCreate = FieldsToCreate
End Sub
Public Property AlgorithmName() As String
Get
Return strAlgorithmName
End Get
Set(ByVal value As String)
strAlgorithmName = value
End Set
End Property
Public Property RootClass() As String
Get
Return strRootClass
End Get
Set(ByVal value As String)
strRootClass = value
End Set
End Property
Public Property AlgorithmParams() As Dictionary(Of String, String)
Get
Return dicAlgorithmParams
End Get
Set(ByVal value As Dictionary(Of String, String))
dicAlgorithmParams = value
End Set
End Property
Public Property FieldsToCreate() As NameValueCollection
Get
Return m_FieldsToCreate
End Get
Set(ByVal value As NameValueCollection)
m_FieldsToCreate = value
End Set
End Property
End Class