public static MakeOrderAccount create( TradingConsole tradingConsole, SettingsManager settingsManager, Account account, Instrument instrument, boolean isForDelivery) { return MakeOrderAccount.create( tradingConsole, settingsManager, account.get_Id(), instrument.get_Id(), isForDelivery); }
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); } }