public void Initialize(ICommand guestCommand, Action cancelAction, Guest currentGuestData, Action afterSubmitAction) { Guest = new Guest(); Guest.CopyDeltaProperties(currentGuestData); GuestCommand = guestCommand; CancelCommand = new ActionCommand(cancelAction); SubmitCommand = new RelayCommand(OnSubmitClicked, (_) => ValidateInput()); AfterSubmitAction = afterSubmitAction; }
public void Execute(object newGuestData) { selectedGuest.CopyDeltaProperties(newGuestData as Guest); }