Forex_Strategy_Builder.Actions.EditTradingCharges C# (CSharp) Method

EditTradingCharges() private method

Edit the Trading Charges
private EditTradingCharges ( ) : void
return void
        void EditTradingCharges()
        {
            Trading_Charges tradingCharges = new Trading_Charges();
            tradingCharges.Spread      = Data.InstrProperties.Spread;
            tradingCharges.SwapLong    = Data.InstrProperties.SwapLong;
            tradingCharges.SwapShort   = Data.InstrProperties.SwapShort;
            tradingCharges.Commission  = Data.InstrProperties.Commission;
            tradingCharges.Slippage    = Data.InstrProperties.Slippage;
            tradingCharges.ShowDialog();

            if (tradingCharges.DialogResult == DialogResult.OK)
            {
                Data.InstrProperties.Spread     = tradingCharges.Spread;
                Data.InstrProperties.SwapLong   = tradingCharges.SwapLong;
                Data.InstrProperties.SwapShort  = tradingCharges.SwapShort;
                Data.InstrProperties.Commission = tradingCharges.Commission;
                Data.InstrProperties.Slippage   = tradingCharges.Slippage;

                Instruments.InstrumentList[Data.InstrProperties.Symbol] = Data.InstrProperties.Clone();

                Calculate(false);

                SetInstrumentDataStatusBar();
            }
            else if (tradingCharges.EditInstrument)
                ShowInstrumentEditor();

            return;
        }
Actions