/// <summary> /// Initiate flow for extended log on assignment. /// </summary> public void ExtendedLogOns() { ExtendedLogOnConfirmation assignExtendedLogOnConfirmation = new ExtendedLogOnConfirmation(); InteractionRequestedEventArgs request = new InteractionRequestedEventArgs(assignExtendedLogOnConfirmation, () => { }); Application.Services.Interaction.InteractionRequest(request); }
private void HandleExtendedLogOnInteraction(InteractionRequestedEventArgs e) { if (e == null) { throw new ArgumentNullException("InteractionRequestedEventArgs"); } ExtendedLogOnConfirmation context = (ExtendedLogOnConfirmation)e.Context; ExtendedLogOnConfirmation results = InvokeInteraction <ExtendedLogOnConfirmation, ExtendedLogOnConfirmation>("ExtendedLogOnForm", context, true); if (results != null) { context.Confirmed = results.Confirmed; } }