private void FormEuroConverter_Activated(object sender, EventArgs e) { if (serviceConverter == null) { serviceConverter = new ServiceConverter(); serviceConverter.ReadExchange(comboBoxCurrency, textBoxDate); } }
private void FormEuroConverter_Load(object sender, EventArgs e) { if (serviceConverter == null) { serviceConverter = new ServiceConverter(); serviceConverter.InitializationLookup(comboBoxCurrency); serviceConverter.ReadExchange(comboBoxCurrency, textBoxDate); labelError.Text = ""; } }
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); }