Esempio n. 1
0
 //Constructor
 public Stock(string symbol, string currency, StockTypeEnum stocktype, decimal lastdividend, decimal fixeddividend, decimal parvalue, decimal tickerprice)
 {
     Symbol        = symbol;
     Currency      = currency;
     StockType     = stocktype;
     LastDividend  = lastdividend;
     FixedDividend = fixeddividend;
     ParValue      = parvalue;
     TickerPrice   = tickerprice;
 }
Esempio n. 2
0
        public static bool IsInventoryItem(int typeValue)
        {
            StockTypeEnum type = (StockTypeEnum)typeValue;

            return(StockTypeCheck.IsInventoryItem(type));
        }
Esempio n. 3
0
 public static bool IsInventoryItem(StockTypeEnum type)
 {
     return(StockTypeCheck.inventoryItems.Contains(type));
 }