示例#1
0
        // --------------------------------------------------------------

        public static string OpText(OwnAction action)
        {
            if (action.IsStop)
            {
                return("*" + TradeOpItem.ToString(action.Operation));
            }
            else
            {
                return(TradeOpItem.ToString(action.Operation));
            }
        }
示例#2
0
        public static           TradeOpItem[] GetItems()
        {
            Array values = Enum.GetValues(typeof(TradeOp));

            TradeOpItem[] items = new TradeOpItem[values.Length - 3];

            for (int i = 0; i < items.Length; i++)
            {
                items[i] = new TradeOpItem((TradeOp)values.GetValue(i + 1));
            }

            return(items);
        }