private void Refresh_btn_Click(object sender, EventArgs e) { try { Cond_lbl.Text = intcond; base_dGV.DataSource = CurrencyBuilder.LoadBase(); Cond_lbl.Text += "Обновлено"; } catch (Exception ee) { Cond_lbl.Text += ee.Message; } }
public Form1() { InitializeComponent(); intcond = Cond_lbl.Text; dateTimePicker1.Value = DateTime.Now; try { base_dGV.DataSource = CurrencyBuilder.LoadBase(); Cond_lbl.Text += "Загружено"; } catch (Exception e) { Cond_lbl.Text += e.Message; } }