Esempio n. 1
0
  public void update(String dataSourceKey, boolean isDblClickAsk) {
    if (!this._isForDelivery && this._buySellType == BuySellType.Both) {
      boolean isBuy = Instrument.getSelectIsBuy(this._instrument, isDblClickAsk);

      this._isBuyForCurrent = isBuy;
      this._isBuyForCombo = isBuy ? Language.Buy : Language.Sell;
      TradingConsole.bindingManager.update(dataSourceKey, this);
      this.setStyle(dataSourceKey);

      this._isBuyForCurrent = !isBuy;
      this._isBuyForCombo = (!isBuy) ? Language.Buy : Language.Sell;
      TradingConsole.bindingManager.update(dataSourceKey, this);
      this.setStyle(dataSourceKey);
    } else {
      TradingConsole.bindingManager.update(dataSourceKey, this);
      this.setStyle(dataSourceKey);
    }
  }