private void ChangeSeating() { if (!LockCheckPass(true, false, Types.Strings.ThisTicketIsOpenSomewhereElseItCanNotBeModified)) { return; } // Create the seating selection control PosDialogWindow window = SeatingSelectionControl.CreateInDefaultWindow(); SeatingSelectionControl control = window.DockedControl as SeatingSelectionControl; control.InitializeFromTicket(CurrentTicket); // Show the dialog ParentWindow.ShowShadingOverlay = true; window.ShowDialog(ParentWindow); if (!window.ClosedByUser) { // Process Results if (CurrentTicket != null) { if (control.SelectedCustomer != null) { CurrentTicket.SetCustomerId(control.SelectedCustomer.Id); } CurrentTicket.SetType(control.TicketType); CurrentTicket.SetSeatingId(control.SelectedSeatingId); CurrentTicket.Update(); } } ParentWindow.ShowShadingOverlay = false; }