C# Class KBS2.Handlers.BuildingHandler

Afficher le fichier Open project: Railec/SE1cKBS2 Class Usage Examples

Méthodes publiques

Méthode Description
AddBuilding ( Building building ) : void
DeleteBuilding ( Building building ) : void
Exists ( string name, Location location ) : bool
GetAllBuildings ( ) : IList
GetBuildingBy ( BuildingMatchDelegate match ) : Building
GetBuildingsBy ( BuildingMatchDelegate match ) : List
GetInstance ( ) : BuildingHandler
LoadBuildings ( ) : void

Private Methods

Méthode Description
BuildingHandler ( ) : System
EventBuildingChanged ( object sender, EventArgs e ) : void
EventBuildingCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Method Details

AddBuilding() public méthode

public AddBuilding ( Building building ) : void
building Building Adds a new building to the list of buildings * with given name and LocationID in the Building object.
Résultat void

DeleteBuilding() public méthode

public DeleteBuilding ( Building building ) : void
building Building Building object which is needed for knowing which building has to be deleted.
Résultat void

Exists() public méthode

public Exists ( string name, Location location ) : bool
name string String name of the building.
location Location Location object.
Résultat bool

GetAllBuildings() public méthode

public GetAllBuildings ( ) : IList
Résultat IList

GetBuildingBy() public méthode

public GetBuildingBy ( BuildingMatchDelegate match ) : Building
match BuildingMatchDelegate Check if the building is the same.
Résultat Building

GetBuildingsBy() public méthode

public GetBuildingsBy ( BuildingMatchDelegate match ) : List
match BuildingMatchDelegate Checks if the buildings are the same, or not.
Résultat List

GetInstance() public static méthode

public static GetInstance ( ) : BuildingHandler
Résultat BuildingHandler

LoadBuildings() public méthode

public LoadBuildings ( ) : void
Résultat void