public void operationSelect() { C_ResponseFromService c_Response = new C_ResponseFromService(); DataTable dataTable; try { if (textBoxLocation_1.Text != "" & textBoxLocation_2.Text != "" & textBoxLocation_3.Text != "") { dataTable = (c_Response.m_GetListProduct(textBoxLocation_1.Text + "-" + textBoxLocation_2.Text + "-" + textBoxLocation_3.Text)); if (dataTable != null) { DataGridSQL.ItemsSource = dataTable.DefaultView; } } else if (textBoxLocation_1.Text != "" & textBoxLocation_2.Text != "") { dataTable = (c_Response.m_GetListProduct(textBoxLocation_1.Text + "-" + textBoxLocation_2.Text)); if (dataTable != null) { DataGridSQL.ItemsSource = dataTable.DefaultView; } } else if (textBoxLocation_1.Text != "") { dataTable = (c_Response.m_GetListProduct(textBoxLocation_1.Text)); if (dataTable != null) { DataGridSQL.ItemsSource = dataTable.DefaultView; } } else { return; } } catch (Exception e) { } }