public void set_IsBuyForCombo(String value) { if (StringHelper.isNullOrEmpty(value)) { value = this._isBuyForCurrent ? Language.Buy : Language.Sell; } this._isBuyForCombo = value; this.setIsBuyForCurrent(value.equalsIgnoreCase(Language.Buy)); }
public void set_LotString(String value) { if (StringHelper.isNullOrEmpty(value)) { if (this._isBuyForCurrent) { this._buyLot = BigDecimal.ZERO; } else { this._sellLot = BigDecimal.ZERO; } } else { if (this._isBuyForCurrent) { this._buyLot = AppToolkit.convertStringToBigDecimal(value); } else { this._sellLot = AppToolkit.convertStringToBigDecimal(value); } } }
public void unbindOutstanding() { if (!StringHelper.isNullOrEmpty(this._outstandingKey) && this._bindingSourceForOutstanding != null) { RelationOrder.unbind(this._outstandingKey, this._bindingSourceForOutstanding); } }