C# Class LIGHT.DatabaseManagerShop

Show file Open project: lightphoenix2/LPX Class Usage Examples

Public Methods

Method Description
AddItem ( int id, string name, decimal cost, bool change ) : bool
AddVehicle ( int id, string name, decimal cost, bool change ) : bool
AutoAddItem ( int id, string name, bool exist ) : bool
AutoAddVehicle ( int id, string name, bool exist ) : bool
CheckItemExist ( int id ) : bool
CheckVehicleExist ( int id ) : bool
DeleteEmptyItemRow ( int id ) : void
DeleteEmptyVehicleRow ( int id ) : void
DeleteItem ( int id ) : bool
DeleteVehicle ( int id ) : bool
GetItemBuyPrice ( int id ) : decimal
GetItemCost ( int id ) : decimal
GetVehicleCost ( int id ) : decimal
SetBuyPrice ( int id, decimal cost ) : bool

Private Methods

Method Description
CheckSchema ( ) : void
DatabaseManagerShop ( ) : System
createConnection ( ) : MySqlConnection

Method Details

AddItem() public method

public AddItem ( int id, string name, decimal cost, bool change ) : bool
id int
name string
cost decimal
change bool
return bool

AddVehicle() public method

public AddVehicle ( int id, string name, decimal cost, bool change ) : bool
id int
name string
cost decimal
change bool
return bool

AutoAddItem() public method

public AutoAddItem ( int id, string name, bool exist ) : bool
id int
name string
exist bool
return bool

AutoAddVehicle() public method

public AutoAddVehicle ( int id, string name, bool exist ) : bool
id int
name string
exist bool
return bool

CheckItemExist() public method

public CheckItemExist ( int id ) : bool
id int
return bool

CheckVehicleExist() public method

public CheckVehicleExist ( int id ) : bool
id int
return bool

DeleteEmptyItemRow() public method

public DeleteEmptyItemRow ( int id ) : void
id int
return void

DeleteEmptyVehicleRow() public method

public DeleteEmptyVehicleRow ( int id ) : void
id int
return void

DeleteItem() public method

public DeleteItem ( int id ) : bool
id int
return bool

DeleteVehicle() public method

public DeleteVehicle ( int id ) : bool
id int
return bool

GetItemBuyPrice() public method

public GetItemBuyPrice ( int id ) : decimal
id int
return decimal

GetItemCost() public method

public GetItemCost ( int id ) : decimal
id int
return decimal

GetVehicleCost() public method

public GetVehicleCost ( int id ) : decimal
id int
return decimal

SetBuyPrice() public method

public SetBuyPrice ( int id, decimal cost ) : bool
id int
cost decimal
return bool