C# Класс csCommon.Types.DataServer.PoI.ExtendedPoiService

Наследование: PoiService
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
AppState AppStateSettings
ShapeAccentColor Color

Открытые методы

Метод Описание
GetMenuItems ( ) : List
OpenFile ( bool saveDsd = true ) : void
OpenFileSync ( bool saveDsd = true ) : Exception

Open the file synchronously.

Subscribe ( Mode serviceMode ) : void

Защищенные методы

Метод Описание
CreateService ( string name, System.Guid id, string folder = "", string relativeFolder = "" ) : ExtendedPoiService
OnFileOpenedEvent ( FileOpenedEventArgs e ) : void
ProcessFile ( ) : Exception

Process the file. Returns an exception iff this did not work, and null otherwise. Perhaps a little ugly.

Приватные методы

Метод Описание
CreateDsd ( ) : void

Create default PoI types in case we are opening a shape file, for example.

LoadDsd ( ) : bool
LoadOrCreateDataServiceDescription ( bool create ) : bool

Initialize the ShapeService by either creating a new DSD, or by loading an existing one.

RestartService ( ) : void

Stops and then starts the service again.

SelectColor ( ) : void
SetShapeColor ( string color ) : void

Описание методов

CreateService() защищенный статический Метод

protected static CreateService ( string name, System.Guid id, string folder = "", string relativeFolder = "" ) : ExtendedPoiService
name string
id System.Guid
folder string
relativeFolder string
Результат ExtendedPoiService

GetMenuItems() публичный Метод

public GetMenuItems ( ) : List
Результат List

OnFileOpenedEvent() защищенный Метод

protected OnFileOpenedEvent ( FileOpenedEventArgs e ) : void
e FileOpenedEventArgs
Результат void

OpenFile() публичный Метод

public OpenFile ( bool saveDsd = true ) : void
saveDsd bool
Результат void

OpenFileSync() публичный Метод

Open the file synchronously.
public OpenFileSync ( bool saveDsd = true ) : Exception
saveDsd bool Whether to save a data description file (dsd) too.
Результат System.Exception

ProcessFile() защищенный Метод

Process the file. Returns an exception iff this did not work, and null otherwise. Perhaps a little ugly.
protected ProcessFile ( ) : Exception
Результат System.Exception

Subscribe() публичный Метод

public Subscribe ( Mode serviceMode ) : void
serviceMode Mode
Результат void

Описание свойств

AppState защищенное статическое свойство

protected static AppStateSettings AppState
Результат AppStateSettings

ShapeAccentColor защищенное свойство

protected Color ShapeAccentColor
Результат Color