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