void MeetingRoomClient_GetMeetingRoomNameInfosToComboxCompleted(object sender, GetMeetingRoomNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingRoom.Items.Clear(); this.cbMeetingRoom.ItemsSource = e.Result; if (strMeetingRoom == "") { this.cbMeetingRoom.SelectedIndex = 0; } else { this.cbMeetingRoom.SelectedItem = strMeetingRoom; } } }
void MeetingRoomClient_GetMeetingRoomNameInfosToComboxCompleted(object sender, GetMeetingRoomNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingRoom.Items.Clear(); this.cbMeetingRoom.ItemsSource = e.Result; if (strMeetingRoom == "") { this.cbMeetingRoom.SelectedIndex = 0; } else { this.cbMeetingRoom.SelectedItem = strMeetingRoom; } } }
void MeetingRoomClient_GetMeetingRoomNameInfosToComboxCompleted(object sender, GetMeetingRoomNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingRoom.Items.Clear(); this.cbMeetingRoom.ItemsSource = e.Result; this.cbMeetingRoom.DisplayMemberPath = "MEETINGROOMNAME"; if (SelectedMeetingRoom.MEETINGROOMID != null) { foreach (var item in cbMeetingRoom.Items) { T_OA_MEETINGROOM dict = item as T_OA_MEETINGROOM; if (dict != null) { if (dict.MEETINGROOMNAME == SelectedMeetingRoom.MEETINGROOMNAME) { cbMeetingRoom.SelectedItem = item; break; } } } } else { cbMeetingRoom.SelectedIndex = 0; } } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("FOUNDMEETINGROOM"), Utility.GetResourceStr("CONFIRMBUTTON")); } }
void MeetingRoomClient_GetMeetingRoomNameInfosToComboxCompleted(object sender, GetMeetingRoomNameInfosToComboxCompletedEventArgs e) { if (e.Result != null) { this.cbMeetingRoom.Items.Clear(); this.cbMeetingRoom.ItemsSource = e.Result; this.cbMeetingRoom.DisplayMemberPath = "MEETINGROOMNAME"; if (SelectedMeetingRoom.MEETINGROOMID != null) { foreach (var item in cbMeetingRoom.Items) { T_OA_MEETINGROOM dict = item as T_OA_MEETINGROOM; if (dict != null) { if (dict.MEETINGROOMNAME == SelectedMeetingRoom.MEETINGROOMNAME) { cbMeetingRoom.SelectedItem = item; break; } } } } else { cbMeetingRoom.SelectedIndex = 0; } } else { ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("FOUNDMEETINGROOM"), Utility.GetResourceStr("CONFIRMBUTTON")); } }