Forex_Strategy_Builder.Actions.EditTradingCharges C# (CSharp) 메소드

EditTradingCharges() 개인적인 메소드

Edit the Trading Charges
private EditTradingCharges ( ) : void
리턴 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