Ejemplo n.º 1
0
        private void butSure_Click(object sender, EventArgs e)
        {
            try
            {
                _queueData.包含房间.房间明细.Clear();

                for (int i = 0; i <= checkedListBox1.Items.Count - 1; i++)
                {
                    if (checkedListBox1.GetItemChecked(i) == false)
                    {
                        continue;
                    }

                    JQueueRoomItem roomItem = new JQueueRoomItem();

                    ItemBind ib = checkedListBox1.Items[i] as ItemBind;
                    roomItem.房间ID = ib.Value;
                    roomItem.房间名称 = ib.Name;

                    _queueData.包含房间.房间明细.Add(roomItem);
                }

                _qm.UpdateQueueRooms(_queueData);

                _isOk = true;

                this.Close();
            }
            catch (Exception ex)
            {
                MsgBox.ShowException(ex, this);
            }
        }