public TradeSegment(TradingWindow parent, WindowControl tradeWindow, int index)
        {
            MyIndex = index;
            mParent = parent;

            var prefix = "Your";

            if (MyIndex == 1)
            {
                prefix = "Their";
            }

            ItemContainer = new ScrollControl(tradeWindow, prefix + "ItemContainer");
            ItemContainer.EnableScroll(false, true);

            GoldValue = new Label(tradeWindow, prefix + "GoldValue")
            {
                Text = Strings.Trading.value.ToString(0)
            };
        }
Example #2
0
 public TradeItem(TradingWindow tradeWindow, int index, int side)
 {
     mTradeWindow = tradeWindow;
     mMySlot      = index;
     mMySide      = side;
 }