Forex_Strategy_Builder.Instrument_Editor.SetPropertiesForm C# (CSharp) Метод

SetPropertiesForm() приватный Метод

Sets the properties form.
private SetPropertiesForm ( ) : void
Результат void
        void SetPropertiesForm()
        {
            tbxPropSymbol.Text              = instrPropSelectedInstrument.Symbol;
            tbxPropType.Text                = instrPropSelectedInstrument.InstrType.ToString();
            tbxPropComment.Text             = instrPropSelectedInstrument.Comment;
            tbxPropPoint.Text               = (1 / Math.Pow(10, (float)nudPropDigits.Value)).ToString("0.#####");
            tbxPropPriceIn.Text             = instrPropSelectedInstrument.PriceIn;
            tbxPropFileName.Text            = instrPropSelectedInstrument.BaseFileName;
            cbxPropSwap.SelectedIndex       = (int)instrPropSelectedInstrument.SwapType;
            cbxPropCommission.SelectedIndex = (int)instrPropSelectedInstrument.CommissionType;
            cbxPropCommScope.SelectedIndex  = (int)instrPropSelectedInstrument.CommissionScope;
            cbxPropCommTime.SelectedIndex   = (int)instrPropSelectedInstrument.CommissionTime;
            nudPropDigits.Value             = (decimal)instrPropSelectedInstrument.Digits;
            nudPropLotSize.Value            = (decimal)instrPropSelectedInstrument.LotSize;
            nudPropSpread.Value             = (decimal)instrPropSelectedInstrument.Spread;
            nudPropSwapLong.Value           = (decimal)instrPropSelectedInstrument.SwapLong;
            nudPropSwapShort.Value          = (decimal)instrPropSelectedInstrument.SwapShort;
            nudPropCommission.Value         = (decimal)instrPropSelectedInstrument.Commission;
            nudPropSlippage.Value           = (decimal)instrPropSelectedInstrument.Slippage;

            tbxPropPriceIn.Enabled  = instrPropSelectedInstrument.InstrType != Instrumet_Type.Forex;
            tbxPropFileName.Enabled = instrPropSelectedInstrument.InstrType != Instrumet_Type.Forex;

            SetAcountExchangeRate();

            return;
        }