private void button2_Click(object sender, EventArgs e) { //fill_analize(); fill_rezultate(); //fill_fise(); //fill_medici(); //fill_pacienti(); Console_TextBox.Text += "Success\r\n"; Console_TextBox.SelectionStart = Console_TextBox.Text.Length; Console_TextBox.ScrollToCaret(); }
private void button1_Click(object sender, EventArgs e) { SqlCommand cmd; string cmd_text = ""; cmd_text = "DELETE FROM Rezultate"; cmd = new SqlCommand(cmd_text, con); cmd.ExecuteNonQuery(); cmd_text = "DBCC CHECKIDENT('Rezultate', RESEED, -1);"; cmd = new SqlCommand(cmd_text, con); cmd.ExecuteNonQuery(); Console_TextBox.Text += "Data Cleared\r\n"; Console_TextBox.SelectionStart = Console_TextBox.Text.Length; Console_TextBox.ScrollToCaret(); }