Méthode | Description | |
---|---|---|
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.
|
public static PlantExists ( int id ) : bool | ||
id | int | |
Résultat | bool |
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 | |
Résultat | void |