Exemplo n.º 1
0
        private async void Converter(object sender, RoutedEventArgs e)
        {
            if (TextCounttoken.Text == "0.00" || TextCounttoken.Text == "" || TextCounttoken.Text.Contains("-") || TextCounttoken.Text.Contains("!"))
            {
                MessageBox.Show("Error!");
                return;
            }
            string result = TextCounttoken.Text.ToString().Replace('.', ',');

            TextCounttoken1.Text = await UserCreator.ConverterResult("kil", CryptoText.Text, CryptoText2.Text, float.Parse(result));

            USDTFirst.Text = await UserCreator.USDAsyncPrice(CryptoText.Text, float.Parse(result));
        }