private void Button1_Click(object sender, EventArgs e) { branchId = staff.BranchId; int trackingNum = Convert.ToInt32(textBox1.Text); if (ParcelController.RegisterOnlineLodgeIn(trackingNum, branchId) == true) { MessageBox.Show("Successful Added"); textBox1.Text = ""; home.registerHereLoad(); } else { MessageBox.Show("Fail to add, please check again the tracking number"); textBox1.Text = ""; } }