C# Класс Marmalade_Global.WeeklyProduct

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CalculateTotalPriceForProduct ( ) : double

Calculation on the total buying price for this product, it uses a method from Product.cs to get the price needed on this product, and then times it with the TotalKgAmount.

CalculateTotalSellingPrice ( ) : double

Calculation on the total selling price for this product, it uses a method from Product.cs to get the selling price needed on this product, and then times it with the TotalKgAmount.

ToString ( ) : string
WeeklyProduct ( Product product, double totalKgAmount ) : System

Full-args constructor, taking 2 parameters, and get the TotalSellingPrice by using the calculation place within this class.

Описание методов

CalculateTotalPriceForProduct() публичный Метод

Calculation on the total buying price for this product, it uses a method from Product.cs to get the price needed on this product, and then times it with the TotalKgAmount.
public CalculateTotalPriceForProduct ( ) : double
Результат double

CalculateTotalSellingPrice() публичный Метод

Calculation on the total selling price for this product, it uses a method from Product.cs to get the selling price needed on this product, and then times it with the TotalKgAmount.
public CalculateTotalSellingPrice ( ) : double
Результат double

ToString() публичный Метод

public ToString ( ) : string
Результат string

WeeklyProduct() публичный Метод

Full-args constructor, taking 2 parameters, and get the TotalSellingPrice by using the calculation place within this class.
public WeeklyProduct ( Product product, double totalKgAmount ) : System
product Product
totalKgAmount double
Результат System