Ejemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            operationclass f = new operationclass();
            bool           g = f.updatemovie(textBox6.Text, textBox7.Text, textBox8.Text, textBox9.Text, textBox11.Text, textBox12.Text, textBox13.Text);

            MessageBox.Show("Updated");
        }
Ejemplo n.º 2
0
        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            operationclass d  = new operationclass();
            DataSet        f1 = d.mostpopular();

            dataGridView4.DataSource = f1.Tables[0];
        }
Ejemplo n.º 3
0
        private void radioButton1_CheckedChanged(object sender, EventArgs e)
        {
            operationclass d = new operationclass();
            DataSet        f = d.showcurrent();

            dataGridView4.DataSource = f.Tables[0];
        }
Ejemplo n.º 4
0
        private void button2_Click(object sender, EventArgs e)
        {
            operationclass f = new operationclass();
            bool           g = f.updatecustomer(textBox5.Text, textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text);

            if (g == true)
            {
                MessageBox.Show("Customer Updated");
            }
        }
Ejemplo n.º 5
0
        private void button1_Click(object sender, EventArgs e)
        {
            operationclass d = new operationclass();
            bool           h = d.addcustomer(textBox1.Text, textBox2.Text, textBox3.Text, textBox4.Text);

            if (h == true)
            {
                MessageBox.Show("Cutomer Added");
            }
        }
Ejemplo n.º 6
0
        private void button4_Click(object sender, EventArgs e)
        {
            operationclass f = new operationclass();
            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");
            }
        }
Ejemplo n.º 7
0
        private void button8_Click(object sender, EventArgs e)
        {
            operationclass d = new operationclass();
            bool           f = d.returnmovie(textBox14.Text, textBox18.Text);

            if (f == true)
            {
                MessageBox.Show("Movie retunrned");
            }
        }
Ejemplo n.º 8
0
        private void button7_Click(object sender, EventArgs e)
        {
            operationclass d = new operationclass();
            bool           f = d.issuemovie(textBox15.Text, textBox16.Text, textBox17.Text);

            if (f == true)
            {
                MessageBox.Show("Movie Issued");
            }
        }
Ejemplo n.º 9
0
        private void button3_Click(object sender, EventArgs e)
        {
            operationclass f = new operationclass();

            f.deletecustomer(textBox5.Text);
            textBox1.Text = "";
            textBox2.Text = "";
            textBox3.Text = "";
            textBox4.Text = "";
            textBox5.Text = "";


            MessageBox.Show("Customer deleted");
        }
Ejemplo n.º 10
0
        private void button5_Click(object sender, EventArgs e)
        {
            operationclass d = new operationclass();
            bool           g = d.deletemovie(textBox6.Text);

            if (g == true)
            {
                MessageBox.Show("Movie Deleted");
                textBox7.Text  = "";
                textBox8.Text  = "";
                textBox9.Text  = "";
                textBox10.Text = "";
                textBox11.Text = "";
                textBox12.Text = "";
                textBox13.Text = "";
            }
        }