예제 #1
0
        private void bunifuFlatButton6_Click(object sender, EventArgs e)
        {
            Buy buy = new Buy();

            this.Hide();
            buy.Show();
        }
예제 #2
0
        private void pictureBox1_Click_1(object sender, EventArgs e)
        {
            con.Open();
            SqlCommand cmd = con.CreateCommand();

            cmd.CommandType = CommandType.Text;
            cmd.CommandText = "SELECT * FROM Movie";
            cmd.ExecuteNonQuery();
            DataTable      dt = new DataTable();
            SqlDataAdapter sa = new SqlDataAdapter(cmd);

            sa.Fill(dt);
            //dataGridView1.DataSource = dt;
            con.Close();
            Buy buy = new Buy();

            this.Hide();
            buy.Show();
        }