/// <summary> /// ///// add new type account /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.Length > 0) { try { dbsql.AddNewDebit(textBox1.Text); dbsql.AddNewCreditor(textBox1.Text); Refersh1(); textBox1.Focus(); } catch (Exception ex) { MessageBox.Show(ex.Message); } } }