C# Класс Marmalade_Global.PlantController

Показать файл Открыть проект

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

Метод Описание
GetPlant ( int id ) : IPlant

Gets plant from the list for needed ID and returns it(IPlant).

PlantExists ( int id ) : bool

Checks if plant exists inside list.

RegisterPlant ( string name, string type, double lifetime, double procurementvalue, double scrapvalue, double yearsused ) : void

Registers a new plant.

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

GetPlant() публичный статический Метод

Gets plant from the list for needed ID and returns it(IPlant).
public static GetPlant ( int id ) : IPlant
id int
Результат IPlant

PlantExists() публичный статический Метод

Checks if plant exists inside list.
public static PlantExists ( int id ) : bool
id int
Результат bool

RegisterPlant() публичный статический Метод

Registers a new plant.
public static RegisterPlant ( string name, string type, double lifetime, double procurementvalue, double scrapvalue, double yearsused ) : void
name string
type string
lifetime double
procurementvalue double
scrapvalue double
yearsused double
Результат void