Beispiel #1
0
 private void FormEuroConverter_Activated(object sender, EventArgs e)
 {
     if (serviceConverter == null)
     {
         serviceConverter = new ServiceConverter();
         serviceConverter.ReadExchange(comboBoxCurrency, textBoxDate);
     }
 }
Beispiel #2
0
        private void FormEuroConverter_Load(object sender, EventArgs e)
        {
            if (serviceConverter == null)
            {
                serviceConverter = new ServiceConverter();
                serviceConverter.InitializationLookup(comboBoxCurrency);
                serviceConverter.ReadExchange(comboBoxCurrency, textBoxDate);

                labelError.Text = "";
            }
        }
Beispiel #3
0
        private void BtnConvert_Click(object sender, EventArgs e)
        {
            if (serviceConverter == null)
            {
                serviceConverter = new ServiceConverter();


                serviceConverter.ReadExchange(comboBoxCurrency, textBoxDate);
            }
            serviceConverter.ConvertFromEuro(serviceConverter.CurrencyToEuro(Convert.ToDouble(textBox1.Text), comboBoxCurrency.Text), dataGridViewResults);
        }