private void OKButton_Click(object sender, EventArgs e) { denumire = textBox1.Text; IBAN = textBox2.Text; //contBancarCon.Insert(denumire, IBAN); ConturiBancare cont = new ConturiBancare(); DataGridView data = cont.GetDataTable(); DataTable d = contBancarCon.Read(); data.DataSource = d; cont.SetDataTable(data); /* * while (Reader.Read()) * { * string thisrow = ""; * for (int i = 0; i < Reader.FieldCount; i++) * thisrow += Reader.GetValue(i).ToString() + ","; * Console.WriteLine(thisrow); * }*/ //entity.CloseConnection(); }
private void conturiBancareToolStripMenuItem_Click(object sender, EventArgs e) { ConturiBancare conturiBancare = new ConturiBancare(); conturiBancare.Show(); }