private void Button2_Click(object sender, EventArgs e) { boobj.ID = Convert.ToInt32(textView1.Text); invdb.DeleteEmp(boobj); var mainpage = new Intent(this, typeof(ListViewActivity)); StartActivity(mainpage); }