//кнопка сохранить и закрыть private void Button1Close_Click(object sender, EventArgs e) { SettingsVariable.rsiPeriod = Convert.ToInt32(textBox1RsiPeriod.Text); SettingsVariable.rsiBuylValue = Convert.ToInt32(textBoxRSIBuyValue.Text); SettingsVariable.rsiSellValue = Convert.ToInt32(textBoxRSISellValue.Text); SettingsVariable.stochasticsPeriod = Convert.ToInt32(textBox2StochasticsPeriod.Text); SettingsVariable.stochasticsSmooth = Convert.ToInt32(textBox3StochasticsSmooth.Text); SettingsVariable.stochasticSellValue = Convert.ToInt32(textBoxRSISellValue.Text); SettingsVariable.stochasticBuyValue = Convert.ToInt32(textBoxRSIBuyValue.Text); SettingsVariable.stochasticsRSIPeriod = Convert.ToInt32(textBox4StochasticsRSIPeriod.Text); SettingsVariable.stochasticsRSISmooth = Convert.ToInt32(textBox5StochasticsRSISmooth.Text); SettingsVariable.stochasticRSISellValue = Convert.ToInt32(textBoxStochascticsRSISellValue.Text); SettingsVariable.stochasticRSIBuyValue = Convert.ToInt32(textBoxStochascticsRSIBuyValue.Text); SettingsVariable.fastMAPeriod = Convert.ToInt32(textBox1FastMAPeriod.Text); SettingsVariable.slowMAPeriod = Convert.ToInt32(textBox2SlowMAPeriod.Text); SettingsVariable.signalMAPeriod = Convert.ToInt32(textBox3SignalMAPeriod.Text); SettingsVariable.SaveSettings("Settings.xml"); Close(); }
//смена языка Russian private void RussianToolStripMenuItem_Click(object sender, EventArgs e) { SettingsVariable.lagnuageApplication = "ru"; SettingsVariable.SaveSettings("Settings.xml"); Application.Restart(); }