private void button4_Click(object sender, EventArgs e) { Form13 f = new Form13(); this.Hide(); f.ShowDialog(); }
private void label9_Click(object sender, EventArgs e) { Form13 f = new Form13(); this.Hide(); f.ShowDialog(); Close(); }
private void button2_Click(object sender, EventArgs e) { string SqlText = "INSERT INTO [Reys] ([ReysID], [Litak_ID],[Data],[ChasVidpravlennya],[MarshrutID],[ChasPrybuttya]) VALUES (1,1, '01:01:2018','20:40',1,'21:50') "; Form13 f = new Form13(); // створити екземпляр вікна if (f.ShowDialog() == DialogResult.OK) { // сформувати SQL-рядок SqlText = "INSERT INTO [Reys] ([ReysID], [Litak_ID],[Data],[ChasVidpravlennya],[MarshrutID],[ChasPrybuttya]) VALUES ("; SqlText = SqlText + "\'" + f.textBox1.Text + "\', "; SqlText = SqlText + "\'" + f.textBox2.Text + "\', "; SqlText = SqlText + "\'" + f.textBox3.Text + "\')"; SqlText = SqlText + "\'" + f.textBox4.Text + "\')"; SqlText = SqlText + "\'" + f.textBox5.Text + "\')"; // виконати SQL-команду MyExecuteNonQuery(SqlText); // відобразати таблицю Source Reys(); } }
private void pictureBox1_Click_1(object sender, EventArgs e) { Form13 f13 = new Form13(); f13.ShowDialog(); }