C# Class KBS2.Handlers.BuildingHandler

Exibir arquivo Open project: Railec/SE1cKBS2 Class Usage Examples

Public Methods

Method 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

Method Description
BuildingHandler ( ) : System
EventBuildingChanged ( object sender, EventArgs e ) : void
EventBuildingCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Method Details

AddBuilding() public method

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.
return void

DeleteBuilding() public method

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

Exists() public method

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

GetAllBuildings() public method

public GetAllBuildings ( ) : IList
return IList

GetBuildingBy() public method

public GetBuildingBy ( BuildingMatchDelegate match ) : Building
match BuildingMatchDelegate Check if the building is the same.
return Building

GetBuildingsBy() public method

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

GetInstance() public static method

public static GetInstance ( ) : BuildingHandler
return BuildingHandler

LoadBuildings() public method

public LoadBuildings ( ) : void
return void