Ejemplo n.º 1
0
        private void SearchTextBox_TextChanged(object sender, EventArgs e)
        {
            var client = new ServiceClient();

            if (string.IsNullOrEmpty(SearchTextBox.Text))
            {
                GridBindingSource.DataSource = client.GetStudents();
                return;
            }
            GridBindingSource.DataSource = client.GetStudent(SearchTextBox.Text);
        }