/// <summary> /// ////////////// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.Length > 0) { try { dbsql.AddNewCurrency(textBox1.Text); dataGridView1.DataSource = dbsql.GetAllCurrency(); textBox1.Text = ""; textBox1.Focus(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }