Ejemplo n.º 1
0
        private void buttonSellFast_Click(object sender, RoutedEventArgs e)
        {
            decimal volume;

            try
            {
                volume = TextBoxVolumeFast.Text.ToDecimal();
            }
            catch (Exception)
            {
                MessageBox.Show(OsLocalization.Trader.Label49);
                return;
            }
            _strategyKeeper.BotSellMarket(volume);
        }
Ejemplo n.º 2
0
        private void buttonSellFast_Click(object sender, RoutedEventArgs e)
        {
            int volume;

            try
            {
                volume = Convert.ToInt32(TextBoxVolumeFast.Text);
            }
            catch (Exception)
            {
                MessageBox.Show("В графе объём неправильное значение");
                return;
            }
            _strategyKeeper.BotSellMarket(volume);
        }
Ejemplo n.º 3
0
        private void buttonSellFast_Click(object sender, RoutedEventArgs e)
        {
            decimal volume;

            try
            {
                volume = Convert.ToDecimal(TextBoxVolumeFast.Text.Replace(",",
                                                                          CultureInfo.InvariantCulture.NumberFormat.NumberDecimalSeparator),
                                           CultureInfo.InvariantCulture);
            }
            catch (Exception)
            {
                MessageBox.Show(OsLocalization.Trader.Label49);
                return;
            }
            _strategyKeeper.BotSellMarket(volume);
        }