/// <summary> /// Shows the Account Settings dialog. /// </summary> void ShowAccountSettings() { Account_Settings accountSettings = new Account_Settings(); accountSettings.AccountCurrency = Configs.AccountCurrency; accountSettings.InitialAccount = Configs.InitialAccount; accountSettings.Leverage = Configs.Leverage; accountSettings.RateToUSD = Data.InstrProperties.RateToUSD; accountSettings.RateToEUR = Data.InstrProperties.RateToEUR; accountSettings.SetParams(); if (accountSettings.ShowDialog() == DialogResult.OK) { Configs.AccountCurrency = accountSettings.AccountCurrency; Configs.InitialAccount = accountSettings.InitialAccount; Configs.Leverage = accountSettings.Leverage; Data.InstrProperties.RateToUSD = accountSettings.RateToUSD; Data.InstrProperties.RateToEUR = accountSettings.RateToEUR; Instruments.InstrumentList[Data.InstrProperties.Symbol] = Data.InstrProperties.Clone(); Calculate(false); } return; }