예제 #1
0
        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;
                }
            }
        }
예제 #2
0
        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;
                }
            }

        }
예제 #3
0
        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"));
            }

        }
예제 #4
0
        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"));
            }
        }