private void button4_Click(object sender, EventArgs e)
        {
            Form13 f = new Form13();

            this.Hide();
            f.ShowDialog();
        }
Exemple #2
0
        private void label9_Click(object sender, EventArgs e)
        {
            Form13 f = new Form13();

            this.Hide();
            f.ShowDialog();
            Close();
        }
Exemple #3
0
        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();
            }
        }
Exemple #4
0
        private void pictureBox1_Click_1(object sender, EventArgs e)
        {
            Form13 f13 = new Form13();

            f13.ShowDialog();
        }