C# Class Marmalade_Global.G3Controller

Show file Open project: DMOE15C/project-marmelade

Public Properties

Property Type Description
ListOfIngredients List
OrdersList List
ProductList List
WeeklyProductlist List

Public Methods

Method Description
AddIngredient ( string type, double weight, double price ) : void

Method called in AddIngredient window, to create and add an ingredient to the ListOfIngredients

AddOrder ( double weeklyBudget ) : void
AddProduct ( int amountOfIngredeints, string productName, string veriety, double size, string containerType, double productPrice, string ingredOne, string ingredTwo ) : void
ReturnIngredientListAsString ( ) : string

Method Details

AddIngredient() public static method

Method called in AddIngredient window, to create and add an ingredient to the ListOfIngredients
public static AddIngredient ( string type, double weight, double price ) : void
type string
weight double
price double
return void

AddOrder() public static method

public static AddOrder ( double weeklyBudget ) : void
weeklyBudget double
return void

AddProduct() public static method

public static AddProduct ( int amountOfIngredeints, string productName, string veriety, double size, string containerType, double productPrice, string ingredOne, string ingredTwo ) : void
amountOfIngredeints int
productName string
veriety string
size double
containerType string
productPrice double
ingredOne string
ingredTwo string
return void

ReturnIngredientListAsString() public static method

public static ReturnIngredientListAsString ( ) : string
return string

Property Details

ListOfIngredients public static property

Static ListOfIngredients which is to be loaded at the beginning of the program, to fill it with information from database
public static List ListOfIngredients
return List

OrdersList public static property

Static OrderList which is to be loaded at the beginning of the program, to fill it with information from the database.
public static List OrdersList
return List

ProductList public static property

Static productList which is to be loaded at the beginning of the program, to fill it with information from the database.
public static List ProductList
return List

WeeklyProductlist public static property

Static weeklyProductlist which is to be loaded at the beginning of the program, to fill it with information from the database.
public static List WeeklyProductlist
return List