示例#1
0
 private void FormEuroConverter_Activated(object sender, EventArgs e)
 {
     if (serviceConverter == null)
     {
         serviceConverter = new ServiceConverter();
         serviceConverter.ReadExchange(comboBoxCurrency, textBoxDate);
     }
 }
示例#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 = "";
            }
        }
示例#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);
        }