private void radioButton2_CheckedChanged(object sender, EventArgs e) { dataoperation d = new dataoperation(); DataSet f1 = d.mostpopular(); dataGridView4.DataSource = f1.Tables[0]; }
private void radioButton1_CheckedChanged(object sender, EventArgs e) { dataoperation d = new dataoperation(); DataSet f = d.showcurrent(); dataGridView4.DataSource = f.Tables[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"); } }
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"); } }
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"); } }
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"); } }
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"); } }
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"); } }
private void button3_Click(object sender, EventArgs e) { dataoperation f = new dataoperation(); f.deletecustomer(textBox5.Text); }
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); }