private void button1_Click(object sender, EventArgs e) { localhost.ProfileServiceClient proxy = new localhost.ProfileServiceClient(); CultureInfo c = this.comboBox1.SelectedItem as CultureInfo; if (c != null) { proxy.SetCulturePreference(c.Name); } }