private void EditPartyInfo() { if (PosHelper.IsLocked(TableName.Party, CurrentTicket.PartyId)) { PosDialogWindow.ShowDialog( Types.Strings.ThePartyInformationForThisTicketIsCurrentlyBeingModifiedSomewhereElse, Types.Strings.PartyInformationLocked); return; } PosHelper.Lock(TableName.Party, CurrentTicket.PartyId, SessionManager.ActiveEmployee.Id); PosDialogWindow window = PartyEditControl.CreateInDefaultWindow(); PartyEditControl control = window.DockedControl as PartyEditControl; control.Initialize(ParentTicket.PartyId); window.ShowDialog(ParentWindow); control.ActiveParty.Update(); PosHelper.Unlock(TableName.Party, CurrentTicket.PartyId); }
public static PosDialogWindow CreateInDefaultWindow() { PartyEditControl control = new PartyEditControl(); return(new PosDialogWindow(control, Strings.EditParty, 600, 475)); }