User Tools

Site Tools


thinkgeo.mapsuite.giseditor.datarepositoryitem

ThinkGeo.MapSuite.GisEditor.DataRepositoryItem

Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.

<!– Class –> This class represents a data repository item.

Remarks

The instance of this object is used to create a hierarchy object to represent the base map list, data folder etc.

Inheritance Hierarchy

*System.Object GalaSoft.MvvmLight.ObservableObject *GalaSoft.MvvmLight.ViewModelBase ThinkGeo.MapSuite.GisEditor.DataRepositoryItem

Members Summary

Public Constructors

Name Parameters DeclaringType Summary
Public MethodDataRepositoryItem Initializes a new instance of the class.

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodCleanup ViewModelBase
Public MethodEquals Object Object
Public MethodGetHashCode Object
Public MethodGetRootDataRepositoryItem
Public MethodGetSearchResult IEnumerable<String> Gets the search result from its children tree.
Public MethodGetType Object
Public MethodLoad Loads current data repository onto active map.
Public MethodRefresh
Public MethodRename String
Public MethodToString Object
Public MethodVerifyPropertyName String ObservableObject

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodBroadcast T, T, String ViewModelBase
Protected MethodFinalize Object
Protected MethodGetSearchResultCore IEnumerable<String>
Protected MethodLoadCore Loads current data repository onto active map.
Protected MethodMemberwiseClone Object
Protected MethodOnLoaded LoadedDataRepositoryItemEventArgs
Protected MethodOnLoading LoadingDataRepositoryItemEventArgs
Protected MethodOnRefreshed EventArgs
Protected MethodOnRefreshing CancelEventArgs
Protected MethodRaisePropertyChanged Expression<Func<T» ObservableObject
Protected MethodRaisePropertyChanged String, T, T, Boolean ViewModelBase
Protected MethodRaisePropertyChanged Expression<Func<T», T, T, Boolean ViewModelBase
Protected MethodRaisePropertyChanged String ObservableObject
Protected MethodRefreshCore
Protected MethodRenameCore String
Protected MethodSet Expression<Func<T», ref T, T ObservableObject
Protected MethodSet String, ref T, T, Boolean ViewModelBase
Protected MethodSet Expression<Func<T», ref T, T, Boolean ViewModelBase
Protected MethodSet String, ref T, T ObservableObject

Public Properties

Name Return DeclaringType Summary
Public PropertyCanRemove Boolean
Public PropertyCanRename Boolean
Public PropertyCategory String
Public PropertyChildren ObservableCollection<DataRepositoryItem> Gets the children of this data repository item.
Public PropertyContent UserControl
Public PropertyContextMenu ContextMenu Gets or sets the context menu of data repository item instance.
Public PropertyCustomData Dictionary<String,Object>
Public PropertyIcon ImageSource Gets or sets the icon of data repository item instance.
Public PropertyId String
Public PropertyIsExpanded Boolean
Public PropertyIsInDesignMode Boolean ViewModelBase
Public PropertyIsLeaf Boolean
Public PropertyIsLoadable Boolean Gets a value indicating whether this instance is allow to load onto the map.
Public PropertyIsRenaming Boolean
Public PropertyIsSelected Boolean
Public PropertyName String Gets or sets the name of data repository item instance.
Public PropertyParent DataRepositoryItem
Public PropertySourcePlugin DataRepositoryPlugin

Protected Properties

Name Return DeclaringType Summary
Protected PropertyCanRemoveCore Boolean
Protected PropertyCanRenameCore Boolean
Protected PropertyCategoryCore String
Protected PropertyIdCore String
Protected PropertyIsLeafCore Boolean
Protected PropertyIsLoadableCore Boolean Gets a value indicating whether this instance is allow to load onto the map.
Protected PropertyMessengerInstance IMessenger ViewModelBase
Protected PropertyPropertyChangedHandler PropertyChangedEventHandler ObservableObject

Public Events

Name Event Arguments DeclaringType Summary
Public EventLoaded LoadedDataRepositoryItemEventArgs
Public EventLoading LoadingDataRepositoryItemEventArgs
Public EventPropertyChanged PropertyChangedEventArgs ObservableObject
Public EventRefreshed EventArgs
Public EventRefreshing CancelEventArgs

Public Constructors

DataRepositoryItem()

Initializes a new instance of the class.

Parameters

Name Type Description

Go Back

Protected Constructors

Public Methods

Cleanup()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– GalaSoft.MvvmLight.ViewModelBase –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetRootDataRepositoryItem()

Return Value

Return Type Description
DataRepositoryItem<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

GetSearchResult(IEnumerable<String>)

Gets the search result from its children tree.

Return Value

Return Type Description
Collection<DataRepositoryItem><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.GisEditor.DataRepositoryItem} –> A set of data repository that matches the keywords.

Parameters

Name Type Description
keywords IEnumerable<String><!– System.Collections.Generic.IEnumerable{System.String} –> The keywords.

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Load()

Loads current data repository onto active map.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Refresh()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Rename(String)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
newName String<!– System.String –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

VerifyPropertyName(String)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyName String<!– System.String –>

<!– GalaSoft.MvvmLight.ObservableObject –> Go Back

Protected Methods

Broadcast(T, T, String)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
oldValue T<!– T –>
newValue T<!– T –>
propertyName String<!– System.String –>

<!– GalaSoft.MvvmLight.ViewModelBase –> Go Back

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetSearchResultCore(IEnumerable<String>)

Return Value

Return Type Description
Collection<DataRepositoryItem><!– System.Collections.ObjectModel.Collection{ThinkGeo.MapSuite.GisEditor.DataRepositoryItem} –>

Parameters

Name Type Description
keywords IEnumerable<String><!– System.Collections.Generic.IEnumerable{System.String} –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

LoadCore()

Loads current data repository onto active map.

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

OnLoaded(LoadedDataRepositoryItemEventArgs)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e LoadedDataRepositoryItemEventArgs<!– ThinkGeo.MapSuite.GisEditor.LoadedDataRepositoryItemEventArgs –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

OnLoading(LoadingDataRepositoryItemEventArgs)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e LoadingDataRepositoryItemEventArgs<!– ThinkGeo.MapSuite.GisEditor.LoadingDataRepositoryItemEventArgs –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

OnRefreshed(EventArgs)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e EventArgs<!– System.EventArgs –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

OnRefreshing(CancelEventArgs)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
e CancelEventArgs<!– System.ComponentModel.CancelEventArgs –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

RaisePropertyChanged(Expression<Func<T>>)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyExpression Expression<Func<T»<!– Expression{Func{T}} –>

<!– GalaSoft.MvvmLight.ObservableObject –> Go Back

RaisePropertyChanged(String, T, T, Boolean)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyName String<!– System.String –>
oldValue T<!– T –>
newValue T<!– T –>
broadcast Boolean<!– System.Boolean –>

<!– GalaSoft.MvvmLight.ViewModelBase –> Go Back

RaisePropertyChanged(Expression<Func<T>>, T, T, Boolean)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyExpression Expression<Func<T»<!– Expression{Func{T}} –>
oldValue T<!– T –>
newValue T<!– T –>
broadcast Boolean<!– System.Boolean –>

<!– GalaSoft.MvvmLight.ViewModelBase –> Go Back

RaisePropertyChanged(String)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyName String<!– System.String –>

<!– GalaSoft.MvvmLight.ObservableObject –> Go Back

RefreshCore()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

RenameCore(String)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
newName String<!– System.String –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Set(Expression<Func<T>>, ref T, T)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyExpression Expression<Func<T»<!– Expression{Func{T}} –>
field ref T<!– T –>
newValue T<!– T –>

<!– GalaSoft.MvvmLight.ObservableObject –> Go Back

Set(String, ref T, T, Boolean)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyName String<!– System.String –>
field ref T<!– T –>
newValue T<!– T –>
broadcast Boolean<!– System.Boolean –>

<!– GalaSoft.MvvmLight.ViewModelBase –> Go Back

Set(Expression<Func<T>>, ref T, T, Boolean)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyExpression Expression<Func<T»<!– Expression{Func{T}} –>
field ref T<!– T –>
newValue T<!– T –>
broadcast Boolean<!– System.Boolean –>

<!– GalaSoft.MvvmLight.ViewModelBase –> Go Back

Set(String, ref T, T)

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
propertyName String<!– System.String –>
field ref T<!– T –>
newValue T<!– T –>

<!– GalaSoft.MvvmLight.ObservableObject –> Go Back

Public Properties

CanRemove

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

CanRename

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Category

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Children

Gets the children of this data repository item.

Return Value

Return Type
ObservableCollection<DataRepositoryItem><!– System.Collections.ObjectModel.ObservableCollection{ThinkGeo.MapSuite.GisEditor.DataRepositoryItem} –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Content

Return Value

Return Type
UserControl<!– System.Windows.Controls.UserControl –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

ContextMenu

Gets or sets the context menu of data repository item instance.

Return Value

Return Type
ContextMenu<!– System.Windows.Controls.ContextMenu –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

CustomData

Return Value

Return Type
Dictionary<String,Object><!– System.Collections.Generic.Dictionary{System.String,System.Object} –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Icon

Gets or sets the icon of data repository item instance.

Return Value

Return Type
ImageSource<!– System.Windows.Media.ImageSource –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Id

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

IsExpanded

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

IsInDesignMode

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– GalaSoft.MvvmLight.ViewModelBase –> Go Back

IsLeaf

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

IsLoadable

Gets a value indicating whether this instance is allow to load onto the map.

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

IsRenaming

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

IsSelected

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Name

Gets or sets the name of data repository item instance.

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Parent

Return Value

Return Type
DataRepositoryItem<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

SourcePlugin

Return Value

Return Type
DataRepositoryPlugin<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryPlugin –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Protected Properties

CanRemoveCore

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

CanRenameCore

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

CategoryCore

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

IdCore

Return Value

Return Type
String<!– System.String –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

IsLeafCore

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

IsLoadableCore

Gets a value indicating whether this instance is allow to load onto the map.

Return Value

Return Type
Boolean<!– System.Boolean –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

MessengerInstance

Return Value

Return Type
IMessenger<!– GalaSoft.MvvmLight.Messaging.IMessenger –>

<!– GalaSoft.MvvmLight.ViewModelBase –> Go Back

PropertyChangedHandler

Return Value

Return Type
PropertyChangedEventHandler<!– System.ComponentModel.PropertyChangedEventHandler –>

<!– GalaSoft.MvvmLight.ObservableObject –> Go Back

Public Events

Loaded

Event Arguments

Event Arguments
LoadedDataRepositoryItemEventArgs<!– ThinkGeo.MapSuite.GisEditor.LoadedDataRepositoryItemEventArgs –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Loading

Event Arguments

Event Arguments
LoadingDataRepositoryItemEventArgs<!– ThinkGeo.MapSuite.GisEditor.LoadingDataRepositoryItemEventArgs –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

PropertyChanged

Event Arguments

Event Arguments
PropertyChangedEventArgs<!– System.ComponentModel.PropertyChangedEventArgs –>

<!– GalaSoft.MvvmLight.ObservableObject –> Go Back

Refreshed

Event Arguments

Event Arguments
EventArgs<!– System.EventArgs –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

Refreshing

Event Arguments

Event Arguments
CancelEventArgs<!– System.ComponentModel.CancelEventArgs –>

<!– ThinkGeo.MapSuite.GisEditor.DataRepositoryItem –> Go Back

NOTOC GisEditorInfrastructure ThinkGeo.MapSuite.GisEditor UpdateDocumentation

thinkgeo.mapsuite.giseditor.datarepositoryitem.txt · Last modified: 2017/03/16 21:59 (external edit)