private void button2_Click(object sender, EventArgs e) { localhost.ProfileServiceClient proxy = new localhost.ProfileServiceClient(); CultureInfo c = new CultureInfo(proxy.GetCulturePreference()); string s = string.Format("{0}, ({1})", c.DisplayName, c.Name); MessageBox.Show(s); }
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); } }