private void ModifySeat()
        {
            try
            {
                var item = LvSeatList.SelectedItem as ObjItem;
                if (item == null)
                {
                    return;
                }
                var seatInfo = item.Data as SeatInfo;
                if (seatInfo == null)
                {
                    return;
                }

                UCSeatModify uc = new UCSeatModify();
                uc.CurrentApp      = CurrentApp;
                uc.PageParent      = this;
                uc.IsAdd           = false;
                uc.SeatItem        = item;
                uc.ListAllSeatInfo = mListSeatInfos;
                PopupPanel.Title   = string.Format("Modify Seat");
                PopupPanel.Content = uc;
                PopupPanel.IsOpen  = true;
            }
            catch (Exception ex)
            {
                ShowException(ex.Message);
            }
        }
 private void AddSeat()
 {
     try
     {
         UCSeatModify uc = new UCSeatModify();
         uc.CurrentApp      = CurrentApp;
         uc.PageParent      = this;
         uc.IsAdd           = true;
         uc.ListAllSeatInfo = mListSeatInfos;
         PopupPanel.Title   = string.Format("Add Seat");
         PopupPanel.Content = uc;
         PopupPanel.IsOpen  = true;
     }
     catch (Exception ex)
     {
         ShowException(ex.Message);
     }
 }