private void SearchButton_Click(object sender, EventArgs e) { mobile.p1 = Convert.ToInt32(p1TextBox.Text); mobile.p2 = Convert.ToInt32(p2TextBox.Text); dataGridView1.DataSource = _mobileManager.SearchMobile(mobile); }