Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        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;
            }
        }