private void button1_Click(object sender, EventArgs e) { ManagerDBO adbo = new ManagerDBO(); string empid = txtempid.Text.Trim(); string fname = txtfname.Text.Trim(); string lname = txtlname.Text.Trim(); string addressl1 = txtaddressl1.Text.Trim(); string street = txtstreet.Text.Trim(); string city = txtcity.Text.Trim(); string gender = comboBox1.Text.Trim(); string dob = dateTimePicker1.Text.Trim(); Manager manager = new Manager(empid, fname, lname, addressl1, street, city, gender, dob); ArrayList list = new ArrayList(); list.Add(txthome.Text.Trim()); list.Add(txtmobile.Text.Trim()); adbo.registerManager(manager, list); MessageBox.Show("manager registration succesfully!!!"); }
private void button3_Click(object sender, EventArgs e) { string empid = txtempid.Text.Trim(); ManagerDBO sdbo = new ManagerDBO(); sdbo.deletemanager(empid); MessageBox.Show("Manager delete succesfully!!!"); }