private void button2_Click(object sender, EventArgs e) { PostGreSQL pgTest = new PostGreSQL(); dataItems = pgTest.PostgreSQLtest2(); tbData.Clear(); for (int i = 0; i < dataItems.Count; i++) { tbData.Text += dataItems[i]; } }
private void button1_Click(object sender, EventArgs e) { PostGreSQL pgTest = new PostGreSQL(); dataItems = pgTest.PostgreSQLtest4(); //vale stin metavliti dataitems, oti exi epistrepsi to PostgreSQLtest2 tbDataItems.Clear(); //katharise to periexomeno tou pinaka apo kato for (int i = 0; i < dataItems.Count; i++) //Epanalipsi gia na ektiposume se diaforetikes grammes to output apo tin endoli pou stilame sti vasi { tbDataItems.Text += dataItems[i]; //emfanise ston pinaka apo kato , ta apotelesmata tu query tbDataItems.ScrollToCaret(); //Afu ektiposis ta dataitems tis siras i pou pernai apo tin loopa, alakse sira prin pas sto epomeno i } }