C# Class UserInterface_Mockup_ICT4Reals.DataBase.PAdatabase

Inheritance: Database
ファイルを表示 Open project: marouanopen/ICT4Reals Class Usage Examples

Public Methods

Method Description
GetAllServices ( ) : object>>.List

gets all services from the database

GetRailInfo ( int RailId ) : object>>.List

returns the info of a single rail

GetTramInfo ( int TramId ) : object>>.List
MakeService ( int tramid, string kind ) : bool

creates a new service in the database (not a instance of service)

RefreshTramdatabase ( int tramnr ) : bool

updates the trampart of the database (tram, tram_status, and rail)

Method Details

GetAllServices() public method

gets all services from the database
public GetAllServices ( ) : object>>.List
return object>>.List

GetRailInfo() public method

returns the info of a single rail
public GetRailInfo ( int RailId ) : object>>.List
RailId int give the id of the rail
return object>>.List

GetTramInfo() public method

public GetTramInfo ( int TramId ) : object>>.List
TramId int
return object>>.List

MakeService() public method

creates a new service in the database (not a instance of service)
public MakeService ( int tramid, string kind ) : bool
tramid int id of the tram that has the service registered to it
kind string the kind of service ()
return bool

RefreshTramdatabase() public method

updates the trampart of the database (tram, tram_status, and rail)
public RefreshTramdatabase ( int tramnr ) : bool
tramnr int the id of the tram that should be updated
return bool