C# Класс BuildingCoder.CmdSetRoomOccupancy

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

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

Метод Описание
Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result

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

Метод Описание
BumpOccupancy ( Element e ) : void

Read the value of the element ROOM_OCCUPANCY parameter. If it ends in a number, increment the number, else append "1".

BumpStringSuffix ( string s ) : string

Analyse the given string. If it ends in a sequence of digits representing a number, return a string with the number oincremented by one. Otherwise, return a string with a suffix "1" appended.

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

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

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : System.Result
commandData ExternalCommandData
message string
elements ElementSet
Результат System.Result