// -------------------------------------------------------------- public static string OpText(OwnAction action) { if (action.IsStop) { return("*" + TradeOpItem.ToString(action.Operation)); } else { return(TradeOpItem.ToString(action.Operation)); } }
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); }