void client_GetPostDictionaryAllCompleted(object sender, GetPostDictionaryAllCompletedEventArgs e) { cbxPosition.ItemsSource = e.Result; cbxPosition.DisplayMemberPath = "POSTNAME"; if (Post != null) { foreach (var item in cbxPosition.Items) { T_HR_POSTDICTIONARY dict = item as T_HR_POSTDICTIONARY; if (dict != null) { if (dict.POSTDICTIONARYID == Post.T_HR_POSTDICTIONARY.POSTDICTIONARYID) { cbxPosition.SelectedItem = item; txtPosCode.Text = dict.POSTCODE; break; } } } } }
void client_GetPostDictionaryAllCompleted(object sender, GetPostDictionaryAllCompletedEventArgs e) { cbxPosition.ItemsSource = e.Result; cbxPosition.DisplayMemberPath = "POSTNAME"; if (Post != null) { foreach (var item in cbxPosition.Items) { T_HR_POSTDICTIONARY dict = item as T_HR_POSTDICTIONARY; if (dict != null) { if (dict.POSTDICTIONARYID == Post.T_HR_POSTDICTIONARY.POSTDICTIONARYID) { cbxPosition.SelectedItem = item; txtPosCode.Text = dict.POSTCODE; break; } } } } }