Esempio 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");
        }
Esempio n. 2
0
        private void radioButton2_CheckedChanged(object sender, EventArgs e)
        {
            operationclass d  = new operationclass();
            DataSet        f1 = d.mostpopular();

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

            dataGridView4.DataSource = f.Tables[0];
        }
Esempio 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");
            }
        }
Esempio 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");
            }
        }
Esempio 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");
            }
        }
Esempio 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");
            }
        }
Esempio 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");
            }
        }
Esempio 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");
        }
Esempio 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 = "";
            }
        }