Пример #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Interview task = new Interview();

            task.Show();
            this.Hide();
        }
Пример #2
0
        private void pictureBox4_Click(object sender, EventArgs e)
        {
            this.Close();
            Interview f = new Interview();

            f.Show();
        }
Пример #3
0
        private void pictureBox7_Click(object sender, EventArgs e)
        {
            SqlCommand command1 = new SqlCommand("UPDATE [Info] SET [stars] = @stars WHERE [login] = @login", sql_connection);

            command1.Parameters.AddWithValue("login", Convert.ToString(Program.client_login));
            command1.Parameters.AddWithValue("stars", stars_count);

            command1.ExecuteNonQuery();

            sndPlayer.Stop();

            if (sql_connection != null && sql_connection.State != ConnectionState.Closed)
            {
                sql_connection.Close();
            }
            this.Close();
            if (form == "Login")
            {
                Login f = new Login();
                f.Show();
            }
            else if (form == "Menu")
            {
                Menu f = new Menu();
                f.Show();
            }
            else if (form == "Tours")
            {
                Tours f = new Tours();
                f.Show();
            }
            else if (form == "Interview")
            {
                Interview f = new Interview();
                f.Show();
            }
            else if (form == "Data")
            {
                Data f = new Data(active, beach);
                f.Show();
            }
            else if (form == "Information")
            {
                Information f = new Information(step, active, beach, add_budget);
                f.Show();
            }
            else if (form == "Order")
            {
                Order f = new Order();
                f.Show();
            }
            else if (form == "Change_Parameters")
            {
                Change_Parameters f = new Change_Parameters(step, active, beach, add_budget);
                f.Show();
            }
        }