Пример #1
0
        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            dataoperation d  = new dataoperation();
            DataSet       f1 = d.mostpopular();

            dataGridView4.DataSource = f1.Tables[0];
        }
Пример #2
0
        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            dataoperation d = new dataoperation();
            DataSet       f = d.showcurrent();

            dataGridView4.DataSource = f.Tables[0];
        }
Пример #3
0
        private void button4_Click(object sender, EventArgs e)
        {
            dataoperation f = new dataoperation();
            bool          g = f.insertnewmovie(textBox6.Text, textBox7.Text, textBox8.Text, textBox9.Text, textBox11.Text, textBox12.Text, textBox13.Text);

            if (g == true)
            {
                MessageBox.Show("New Movie Inserted");
            }
        }
Пример #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            dataoperation d = new dataoperation();
            bool          h = d.addcustomer(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text);

            if (h == true)
            {
                MessageBox.Show("New Cutomer Added");
            }
        }
Пример #5
0
        private void button2_Click(object sender, EventArgs e)
        {
            dataoperation f = new dataoperation();
            bool          g = f.updatecustomer(textBox5.Text, textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text);

            if (g == true)
            {
                MessageBox.Show("Customer Updated");
            }
        }
Пример #6
0
        private void button8_Click(object sender, EventArgs e)
        {
            dataoperation d = new dataoperation();
            bool          f = d.returnmovie(textBox14.Text, textBox18.Text);

            if (f == true)
            {
                MessageBox.Show("Movie retunrned");
            }
        }
Пример #7
0
        private void button7_Click(object sender, EventArgs e)
        {
            dataoperation d = new dataoperation();
            bool          f = d.issuemovie(textBox15.Text, textBox16.Text, textBox17.Text);

            if (f == true)
            {
                MessageBox.Show("Movie Issued");
            }
        }
Пример #8
0
        private void button5_Click(object sender, EventArgs e)
        {
            dataoperation d = new dataoperation();
            bool          g = d.deletemovie(textBox6.Text);

            if (g == true)
            {
                MessageBox.Show("Movie Deleted");
            }
        }
Пример #9
0
        private void button3_Click(object sender, EventArgs e)
        {
            dataoperation f = new dataoperation();

            f.deletecustomer(textBox5.Text);
        }
Пример #10
0
 private void button6_Click(object sender, EventArgs e)
 {
     dataoperation f = new dataoperation();
     bool          g = f.updatemovie(textBox6.Text, textBox7.Text, textBox8.Text, textBox9.Text, textBox11.Text, textBox12.Text, textBox13.Text);
 }