Example #1
0
        public EDCommoditiesExt(EDCommodities Commodity, EDCommoditiesWarningLevels WarnLevel)
        {
            Id           = Commodity.Id;
            Name         = Commodity.Name;
            CategoryId   = Commodity.CategoryId;
            AveragePrice = Commodity.AveragePrice;
            Category     = Commodity.Category;

            if (WarnLevel != null)
            {
                PriceWarningLevel_Demand_Buy_Low  = WarnLevel.PriceWarningLevel_Demand_Buy_Low;
                PriceWarningLevel_Demand_Buy_High = WarnLevel.PriceWarningLevel_Demand_Buy_High;
                PriceWarningLevel_Supply_Buy_Low  = WarnLevel.PriceWarningLevel_Supply_Buy_Low;
                PriceWarningLevel_Supply_Buy_High = WarnLevel.PriceWarningLevel_Supply_Buy_High;

                PriceWarningLevel_Demand_Sell_Low  = WarnLevel.PriceWarningLevel_Demand_Sell_Low;
                PriceWarningLevel_Demand_Sell_High = WarnLevel.PriceWarningLevel_Demand_Sell_High;
                PriceWarningLevel_Supply_Sell_Low  = WarnLevel.PriceWarningLevel_Supply_Sell_Low;
                PriceWarningLevel_Supply_Sell_High = WarnLevel.PriceWarningLevel_Supply_Sell_High;
            }
            else
            {
                PriceWarningLevel_Demand_Buy_Low  = -1;
                PriceWarningLevel_Demand_Buy_High = -1;
                PriceWarningLevel_Supply_Buy_Low  = -1;
                PriceWarningLevel_Supply_Buy_High = -1;

                PriceWarningLevel_Demand_Sell_Low  = -1;
                PriceWarningLevel_Demand_Sell_High = -1;
                PriceWarningLevel_Supply_Sell_Low  = -1;
                PriceWarningLevel_Supply_Sell_High = -1;
            }
        }
Example #2
0
        public EDCommoditiesExt(EDCommodities Commodity, EDCommoditiesWarningLevels WarnLevel)
        {

            Id                              = Commodity.Id;
            Name                            = Commodity.Name;
            CategoryId                      = Commodity.CategoryId;
            AveragePrice                    = Commodity.AveragePrice;
            Category                        = Commodity.Category;

            if (WarnLevel != null)
            { 
                PriceWarningLevel_Demand_Buy_Low    = WarnLevel.PriceWarningLevel_Demand_Buy_Low;
                PriceWarningLevel_Demand_Buy_High   = WarnLevel.PriceWarningLevel_Demand_Buy_High;
                PriceWarningLevel_Supply_Buy_Low    = WarnLevel.PriceWarningLevel_Supply_Buy_Low;
                PriceWarningLevel_Supply_Buy_High   = WarnLevel.PriceWarningLevel_Supply_Buy_High;

                PriceWarningLevel_Demand_Sell_Low    = WarnLevel.PriceWarningLevel_Demand_Sell_Low;
                PriceWarningLevel_Demand_Sell_High   = WarnLevel.PriceWarningLevel_Demand_Sell_High;
                PriceWarningLevel_Supply_Sell_Low    = WarnLevel.PriceWarningLevel_Supply_Sell_Low;
                PriceWarningLevel_Supply_Sell_High   = WarnLevel.PriceWarningLevel_Supply_Sell_High;
            }
            else
            {
                PriceWarningLevel_Demand_Buy_Low    = -1;
                PriceWarningLevel_Demand_Buy_High   = -1;
                PriceWarningLevel_Supply_Buy_Low    = -1;
                PriceWarningLevel_Supply_Buy_High   = -1;

                PriceWarningLevel_Demand_Sell_Low    = -1;
                PriceWarningLevel_Demand_Sell_High   = -1;
                PriceWarningLevel_Supply_Sell_Low    = -1;
                PriceWarningLevel_Supply_Sell_High   = -1;
            }

        }