Exemplo n.º 1
0
        public HelpToTrader()
        {
            SettingsVariable.LoadSettings("Settings.xml");
            System.Threading.Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo(SettingsVariable.lagnuageApplication);
            System.Threading.Thread.CurrentThread.CurrentCulture   = CultureInfo.GetCultureInfo(SettingsVariable.lagnuageApplication);

            InitializeComponent();

            AddAllPair(SettingsVariable.LoadPairList("MarketPairs.xml"));
            FillingListCurrencies();
        }
Exemplo n.º 2
0
        private void SaveChosenPairsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (_activeMarketList.Count != 0)
            {
                if (MessageBox.Show(LanguageString.DynamicElements.MessageBox_SaveQuestion, LanguageString.DynamicElements.MessageBox_SaveTextWindow, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    SettingsVariable.SavePairList(_activeMarketList, "MarketPairs.xml");
                }
            }

            MessageBox.Show(LanguageString.DynamicElements.MessageBox_Show_SaveMenuButton);
        }
Exemplo n.º 3
0
        //кнопка сохранить и закрыть
        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();
        }
Exemplo n.º 4
0
 //смена языка Russian
 private void RussianToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SettingsVariable.lagnuageApplication = "ru";
     SettingsVariable.SaveSettings("Settings.xml");
     Application.Restart();
 }
Exemplo n.º 5
0
 //дефолтные значения
 private void Button1Default_Click(object sender, EventArgs e)
 {
     //устанавливаем по дефолту
     SettingsVariable.SetDefault(false);
     SetCurrentValues();
 }