public void TriggerReceivesNotificationsFromBindedInteractionRequest()
        {
            var page = new MockFrameworkElement();

            var myNotificationAwareObject = new MyNotificationAwareClass();
            var binding = new Binding("InteractionRequest")
            {
                Source = myNotificationAwareObject, Mode = BindingMode.OneWay
            };
            var trigger = new InteractionRequestTrigger()
            {
                SourceObject = binding,
            };

            InteractionRequestedEventArgs eventArgs = null;
            var actionListener = new ActionListener((e) => { eventArgs = (InteractionRequestedEventArgs)e; });

            trigger.Actions.Add(actionListener);
            trigger.Attach(page);

            myNotificationAwareObject.InteractionRequest.Raise(new Notification {
                Title = "Bar"
            });
            Assert.IsNotNull(eventArgs);
            Assert.AreEqual("Bar", eventArgs.Context.Title);
        }
        public void WhenAcceptingConfirmationToNavigateAway_ThenInvokesRequestCallbackWithTrue()
        {
            var emailServiceMock = new Mock <IEmailService>();

            var viewModel = new ComposeEmailViewModel(emailServiceMock.Object);
            var uriQuery  = new UriQuery();

            uriQuery.Add("To", "*****@*****.**");
            ((INavigationAware)viewModel).OnNavigatedTo(new NavigationContext(new Mock <IRegionNavigationService>().Object, new Uri("" + uriQuery.ToString(), UriKind.Relative)));

            InteractionRequestedEventArgs args = null;

            viewModel.ConfirmExitInteractionRequest.Raised += (s, e) => args = e;

            bool?callbackResult = null;

            ((IConfirmNavigationRequest)viewModel).ConfirmNavigationRequest(
                new NavigationContext(new Mock <IRegionNavigationService>().Object, new Uri("some uri", UriKind.Relative)),
                b => callbackResult = b);

            var confirmation = args.Context as Confirmation;

            confirmation.Confirmed = true;

            args.Callback();

            Assert.IsTrue(callbackResult.Value);
        }
        public void WhenCancellingTheSendMessageInteraction_ThenDoesNothing()
        {
            var serviceMock = new Mock <IChatService>(MockBehavior.Strict);

            serviceMock.SetupSet(svc => svc.Connected = true);
            serviceMock.Setup(svc => svc.GetContacts(It.IsAny <Action <IOperationResult <IEnumerable <Contact> > > >()));

            var viewModel = new ChatViewModel(serviceMock.Object);

            InteractionRequestedEventArgs args = null;

            viewModel.SendMessageRequest.Raised += (s, e) => args = e;

            viewModel.SendMessage();

            Assert.IsNotNull(args);

            var sendMessage = args.Context as SendMessageViewModel;

            sendMessage.Result = false;

            args.Callback();

            serviceMock.VerifyAll();
        }
        public void WhenRequestedForVetoOnNavigationAfterSubmitting_ThenDoesNotRaiseInteractionRequest()
        {
            var emailServiceMock = new Mock <IEmailService>();

            var viewModel = new ComposeEmailViewModel(emailServiceMock.Object);
            var uriQuery  = new UriQuery();

            uriQuery.Add("To", "*****@*****.**");
            ((INavigationAware)viewModel).OnNavigatedTo(new NavigationContext(new Mock <IRegionNavigationService>().Object, new Uri("" + uriQuery.ToString(), UriKind.Relative)));

            InteractionRequestedEventArgs args = null;

            viewModel.ConfirmExitInteractionRequest.Raised += (s, e) => args = e;

            viewModel.SendEmailCommand.Execute(null);

            bool?callbackResult = null;

            ((IConfirmNavigationRequest)viewModel).ConfirmNavigationRequest(
                new NavigationContext(new Mock <IRegionNavigationService>().Object, new Uri("some uri", UriKind.Relative)),
                b => callbackResult = b);

            Assert.IsNull(args);
            Assert.IsTrue(callbackResult.Value);
        }
Example #5
0
        public void WhenRequestedForVetoOnNavigationAfterSubmitting_ThenDoesNotRaiseInteractionRequest()
        {
            var emailServiceMock = new Mock <IEmailService>();

            var viewModel = new ComposeEmailViewModel(emailServiceMock.Object);

            var navService = new Mock <IRegionNavigationService>();
            var region     = new Mock <IRegion>();

            region.SetupGet(x => x.Context).Returns(null);
            navService.SetupGet(x => x.Region).Returns(region.Object);

            ((INavigationAware)viewModel).OnNavigatedTo(new NavigationContext(navService.Object, new Uri("[email protected]", UriKind.Relative)));

            InteractionRequestedEventArgs args = null;

            viewModel.ConfirmExitInteractionRequest.Raised += (s, e) => args = e;

            viewModel.SendEmailCommand.Execute(null);

            bool?callbackResult = null;

            ((IConfirmNavigationRequest)viewModel).ConfirmNavigationRequest(
                new NavigationContext(new Mock <IRegionNavigationService>().Object, new Uri("some uri", UriKind.Relative)),
                b => callbackResult = b);

            Assert.IsNull(args);
            Assert.IsTrue(callbackResult.Value);
        }
        private void CreateDefaultDialog(InteractionRequestedEventArgs args)
        {
            dialog = new Window
            {
                Style           = DialogWindowStyle,
                Content         = dialogViewModel,
                Title           = dialogViewModel.Header ?? string.Empty,
                ContentTemplate = DialogContentTemplate,
                ShowInTaskbar   = false,
                Width           = args.DlgWidth,
                Height          = args.DlgHeight
            };
            if (IsBindedWithOwner)
            {
                dialog.Owner = DialogWindowOwner;
                dialog.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            }
            else
            {
                dialog.Owner = null;
                dialog.WindowStartupLocation = WindowStartupLocation.CenterScreen;
                dialog.Topmost = true;
            }

            dialog.ShowActivated = true;
            dialog.Closing      += dialogViewModel.OnDialogWindowClosing;
            dialog.Closed       += OnDialogClosed;
            dialog.Deactivated  += dialog_Deactivated;

            dialogViewModel.RequestDialogClose += OnRequestDialogClosedRaised;
        }
Example #7
0
        public void WhenCancellingTheConfirmationViewAfterCancellingASubmit_ThenViewModelStaysOnTheQuestionnairePage()
        {
            var questionnaireRepositoryMock = new Mock <IQuestionnaireRepository>(MockBehavior.Strict);

            var uiServiceMock = new Mock <ISingleViewUIService>(MockBehavior.Strict);

            var questionnaireTemplate =
                new QuestionnaireTemplate {
                Questions = { new NumericQuestionTemplate {
                                  QuestionText = "unknown"
                              } }
            };
            var viewModel =
                new QuestionnaireViewModel(
                    CreateStateMock(questionnaireTemplate).Object,
                    questionnaireRepositoryMock.Object,
                    uiServiceMock.Object);

            viewModel.Questionnaire.Name = "name";

            InteractionRequestedEventArgs args = null;

            viewModel.CancelConfirmationInteractionRequest.Raised += (o, e) => { args = e; };

            viewModel.Cancel();

            args.Callback();

            questionnaireRepositoryMock.Verify();
            uiServiceMock.Verify();
        }
        private void EditValueSetConfirmation(object o, InteractionRequestedEventArgs args)
        {
            var confirmation    = (Confirmation)args.Context;
            var propertyvalueVM = (PropertyValueBaseViewModel)confirmation.Content;

            if (propertyvalueVM.IsBooleanValue)
            {
                propertyvalueVM.InnerItem.Value.BooleanValue = true;
            }
            else if (propertyvalueVM.IsDateTimeValue)
            {
                propertyvalueVM.InnerItem.Value.DateTimeValue = DateTime.UtcNow;
            }
            else if (propertyvalueVM.IsDecimalValue)
            {
                propertyvalueVM.InnerItem.Value.DecimalValue = DecimalValue;
            }
            else if (propertyvalueVM.IsIntegerValue)
            {
                propertyvalueVM.InnerItem.Value.IntegerValue = 1234;
            }
            else if (propertyvalueVM.IsLongStringValue)
            {
                propertyvalueVM.InnerItem.Value.LongTextValue = LongTextValue;
            }
            else if (propertyvalueVM.IsShortStringValue)
            {
                propertyvalueVM.InnerItem.Value.ShortTextValue = "shrt";
            }

            confirmation.Confirmed = true;
            args.Callback.Invoke();
        }
Example #9
0
        private static string GetPurchRequestId()
        {
            string retVal = string.Empty;

            try
            {
                InputConfirmation inputConfirmation = new InputConfirmation()
                {
                    PromptText = LSRetailPosis.ApplicationLocalizer.Language.Translate(51001), // Enter purchase request id
                };

                InteractionRequestedEventArgs request = new InteractionRequestedEventArgs(inputConfirmation, () =>
                {
                    retVal = inputConfirmation.EnteredText;
                    if (retVal.Length > 20)
                    {
                        retVal = retVal.Substring(0, 20);
                    }
                }
                                                                                          );

                InternalApplication.Services.Interaction.InteractionRequest(request);
            }
            catch (Exception ex)
            {
                NetTracer.Error(ex, "Customer::GetPurchRequestId failed");
            }

            return(retVal);
        }
        protected override void InvokeAction(InteractionRequestedEventArgs e)
        {
            var n   = e.Context as OpenFileDialogConfirmation ?? NullObject;
            var dlg = new OpenFileDialog();

            this.ApplyMessagePropertyeValues(n, dlg);

            var conf = e.Context as Confirmation;

            // キャンセル時
            if (dlg.ShowDialog() != true)
            {
                if (conf != null)
                {
                    conf.Confirmed = false;
                }
                e.Callback();
                return;
            }

            this.ApplyDialogPropertyValues(n, dlg);

            if (conf != null)
            {
                conf.Confirmed = true;
            }
            e.Callback();
        }
Example #11
0
        protected override void Invoke(object parameter)
        {
            InteractionRequestedEventArgs args = parameter as InteractionRequestedEventArgs;

            if (args == null)
            {
                return;
            }

            Window popupWindow = GetPopupWindow(args.Context);

            EventHandler handler = null;

            handler =
                (o, e) =>
            {
                popupWindow.Closed -= handler;
                args.Callback();
            };
            popupWindow.Closed += handler;

            if (IsModal)
            {
                popupWindow.ShowDialog();
            }
            else
            {
                popupWindow.Show();
            }
        }
        /// <summary>
        /// Show view time clock entries.
        /// </summary>
        /// <param name="posTransaction">Reference to an IPosTransaction object.</param>
        public void ViewTimeClockEntries()
        {
            InteractionRequestedEventArgs request = new InteractionRequestedEventArgs(
                new ViewTimeClockEntriesNotification(), () => { });

            this.Application.Services.Interaction.InteractionRequest(request);
        }
        /// <summary>
        /// Time registration, this allows operator to register time clock in\clock out time
        /// </summary>
        /// <param name="posTransaction">Current pos transaction.</param>
        public void TimeRegistrations(IPosTransaction posTransaction)
        {
            InteractionRequestedEventArgs request = new InteractionRequestedEventArgs(
                new RegisterTimeNotification(), () => {});

            this.Application.Services.Interaction.InteractionRequest(request);
        }
Example #14
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);
        }
Example #15
0
        public void WhenCancellingModifiedQuestionnaire_ThenViewModelPromptsForConfirmation()
        {
            var questionnaireRepositoryMock = new Mock <IQuestionnaireRepository>(MockBehavior.Strict);

            var uiServiceMock = new Mock <ISingleViewUIService>(MockBehavior.Strict);

            var questionnaireTemplate =
                new QuestionnaireTemplate {
                Questions = { new NumericQuestionTemplate {
                                  QuestionText = "unknown"
                              } }
            };
            var viewModel =
                new QuestionnaireViewModel(
                    CreateStateMock(questionnaireTemplate).Object,
                    questionnaireRepositoryMock.Object,
                    uiServiceMock.Object);

            viewModel.Questionnaire.Name = "name";

            InteractionRequestedEventArgs args = null;

            viewModel.CancelConfirmationInteractionRequest.Raised += (o, e) => { args = e; };

            viewModel.Cancel();

            Assert.IsNotNull(args);
            questionnaireRepositoryMock.Verify();
            uiServiceMock.Verify();
        }
Example #16
0
        public void WhenAcceptingConfirmationToNavigateAway_ThenInvokesRequestCallbackWithTrue()
        {
            var emailServiceMock = new Mock <IEmailService>();

            var viewModel = new ComposeEmailViewModel(emailServiceMock.Object);

            var navService = new Mock <IRegionNavigationService>();
            var region     = new Mock <IRegion>();

            region.SetupGet(x => x.Context).Returns(null);
            navService.SetupGet(x => x.Region).Returns(region.Object);

            ((INavigationAware)viewModel).OnNavigatedTo(new NavigationContext(navService.Object, new Uri("[email protected]", UriKind.Relative)));

            InteractionRequestedEventArgs args = null;

            viewModel.ConfirmExitInteractionRequest.Raised += (s, e) => args = e;

            bool?callbackResult = null;

            ((IConfirmNavigationRequest)viewModel).ConfirmNavigationRequest(
                new NavigationContext(new Mock <IRegionNavigationService>().Object, new Uri("some uri", UriKind.Relative)),
                b => callbackResult = b);

            var confirmation = args.Context as Confirmation;

            confirmation.Confirmed = true;

            args.Callback();

            Assert.IsTrue(callbackResult.Value);
        }
Example #17
0
 private void OnButtonClickTrigger(object sender, InteractionRequestedEventArgs e)
 {
     Debug.Log("OnButtonClickTrigger");
     if (e.Callback != null)
     {
         e.Callback();
     }
 }
        public void WhenSendingMessage_ThenUpdatesAndNotifiesSendingMessage()
        {
            var contact = new Contact();
            var message = "message";
            Action <IOperationResult <IEnumerable <Contact> > > getContactsCallback = null;
            Action <IOperationResult> sendMessageCallback = null;

            var serviceMock = new Mock <IChatService>(MockBehavior.Strict);

            serviceMock
            .SetupSet(svc => svc.Connected = true);
            serviceMock
            .Setup(svc => svc.GetContacts(It.IsAny <Action <IOperationResult <IEnumerable <Contact> > > >()))
            .Callback <Action <IOperationResult <IEnumerable <Contact> > > >(cb => getContactsCallback = cb);
            serviceMock
            .Setup(svc => svc.SendMessage(contact, message, It.IsAny <Action <IOperationResult> >()))
            .Callback <Contact, string, Action <IOperationResult> >((c, m, cb) => sendMessageCallback = cb);


            var getContactsOperationMock = new Mock <IOperationResult <IEnumerable <Contact> > >();

            getContactsOperationMock.SetupGet(or => or.Result).Returns(new[] { contact });

            var viewModel = new ChatViewModel(serviceMock.Object);

            InteractionRequestedEventArgs args = null;

            viewModel.SendMessageRequest.Raised += (s, e) => args = e;

            getContactsCallback(getContactsOperationMock.Object);

            viewModel.ContactsView.MoveCurrentTo(contact);

            var tracker = new PropertyChangeTracker(viewModel);

            Assert.IsFalse(viewModel.SendingMessage);

            viewModel.SendMessage();

            Assert.IsFalse(viewModel.SendingMessage);

            var sendMessage = args.Context as SendMessageViewModel;

            sendMessage.Result  = true;
            sendMessage.Message = message;

            args.Callback();

            Assert.IsTrue(viewModel.SendingMessage);
            CollectionAssert.AreEqual(new[] { "SendingMessage" }, tracker.ChangedProperties);

            tracker.Reset();

            sendMessageCallback(new Mock <IOperationResult>().Object);

            Assert.IsFalse(viewModel.SendingMessage);
            CollectionAssert.AreEqual(new[] { "SendingMessage" }, tracker.ChangedProperties);
        }
Example #19
0
        private void DescriptorSelectionRequest_Raised(object sender, InteractionRequestedEventArgs e)
        {
            var notification = ( FigureDescriptorSelectionNotification )e.Context;

            notification.DescriptorType = typeof(PathCellDescriptor);
            notification.Confirmed      = true;

            e.Callback();
        }
Example #20
0
        private void HandleRegisterTimeNotificationInteraction(InteractionRequestedEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("InteractionRequestedEventArgs");
            }

            RegisterTimeNotification context = (RegisterTimeNotification)e.Context;
            RegisterTimeNotification results = InvokeInteraction <RegisterTimeNotification, RegisterTimeNotification>("RegisterTimeForm", context, true);
        }
Example #21
0
        private void HandleViewTimeClockEntriesNotificationInteraction(InteractionRequestedEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("InteractionRequestedEventArgs");
            }

            ViewTimeClockEntriesNotification context = (ViewTimeClockEntriesNotification)e.Context;
            ViewTimeClockEntriesNotification results = InvokeInteraction <ViewTimeClockEntriesNotification, ViewTimeClockEntriesNotification>("ViewTimeClockEntriesForm", context, true);
        }
 private void CancelConfirmation_Raised(object sender, InteractionRequestedEventArgs <IConfirmation> e)
 {
     //if (MessageBox.Show((string)e.Context.Content, e.Context.Title, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
     //  e.Context.Confirmed = true;
     //else
     //  e.Context.Confirmed = false;
     m_LastCancelConfirmationContent = e.Context.Content;
     m_LastCancelConfirmationTitle   = e.Context.Title;
     e.Context.Confirmed             = true;
     e.Callback();
 }
Example #23
0
        private async void DoRayTracerRequest(object sender, InteractionRequestedEventArgs e)
        {
            if (e.Context is BitmapRequestContext context)
            {
                var source = new SoftwareBitmapSource();

                await source.SetBitmapAsync(context.Bitmap);

                PreviewImage.Source = source;
            }
        }
Example #24
0
 private void ReadSiteContentConfirmation_Raised(object sender, InteractionRequestedEventArgs <IConfirmation> e)
 {
     if (MessageBox.Show((string)e.Context.Content, e.Context.Title, MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes)
     {
         e.Context.Confirmed = true;
     }
     else
     {
         e.Context.Confirmed = false;
     }
     e.Callback();
 }
            protected override void Notify(object sender, InteractionRequestedEventArgs e)
            {
                if (this.NotifyAction != null)
                {
                    this.NotifyAction.Invoke(e.Context);
                }

                if (e.Callback != null)
                {
                    e.Callback.Invoke();
                }
            }
        /// <summary>
        /// This method Opens Dimesions Screen.
        /// </summary>
        /// <param name="barcodeInfo"></param>
        private bool OpenItemDimensionsDialog(IBarcodeInfo barcodeInfo)
        {
            bool returnValue = false;
            // Get the dimensions
            DataTable inventDimCombination = PurchaseOrderReceiving.InternalApplication.Services.Dimension.GetDimensions(saleLineItem.ItemId);

            // Get the dimensions
            DimensionConfirmation dimensionConfirmation = new DimensionConfirmation()
            {
                InventDimCombination = inventDimCombination,
                DimensionData        = saleLineItem.Dimension,
                DisplayDialog        = !barcodeInfo.Found
            };

            InteractionRequestedEventArgs request = new InteractionRequestedEventArgs(dimensionConfirmation, () =>
            {
                if (dimensionConfirmation.Confirmed)
                {
                    if (dimensionConfirmation.SelectDimCombination != null)
                    {
                        DataRow dr = dimensionConfirmation.SelectDimCombination;
                        saleLineItem.Dimension.VariantId  = dr.Field <string>("VARIANTID");
                        saleLineItem.Dimension.ColorId    = dr.Field <string>("COLORID");
                        saleLineItem.Dimension.ColorName  = dr.Field <string>("COLOR");
                        saleLineItem.Dimension.SizeId     = dr.Field <string>("SIZEID");
                        saleLineItem.Dimension.SizeName   = dr.Field <string>("SIZE");
                        saleLineItem.Dimension.StyleId    = dr.Field <string>("STYLEID");
                        saleLineItem.Dimension.StyleName  = dr.Field <string>("STYLE");
                        saleLineItem.Dimension.ConfigId   = dr.Field <string>(DataAccessConstants.ConfigId);
                        saleLineItem.Dimension.ConfigName = dr.Field <string>("CONFIG");
                        saleLineItem.Dimension.DistinctProductVariantId = (Int64)dr["DISTINCTPRODUCTVARIANT"];

                        if (string.IsNullOrEmpty(saleLineItem.BarcodeId))
                        {   // Pick up if not previously set
                            saleLineItem.BarcodeId = dr.Field <string>("ITEMBARCODE");
                        }

                        string unitId = dr.Field <string>("UNITID");
                        if (!String.IsNullOrEmpty(unitId))
                        {
                            saleLineItem.SalesOrderUnitOfMeasure = unitId;
                        }
                    }
                    returnValue = true;
                }
            }
                                                                                      );

            PurchaseOrderReceiving.InternalApplication.Services.Interaction.InteractionRequest(request);

            return(returnValue);
        }
        protected override void Invoke(object parameter)
        {
            InteractionRequestedEventArgs EventArgs = (InteractionRequestedEventArgs)parameter;
            OpenFileDialog op = Mapper.Map <OpenFileDialog>((OpenFileDialogConfirmation)EventArgs.Context);

            ((OpenFileDialogConfirmation)EventArgs.Context).Confirmed = op.ShowDialog() ?? false;

            if (((OpenFileDialogConfirmation)EventArgs.Context).Confirmed)
            {
                ((OpenFileDialogConfirmation)EventArgs.Context).FileName = op.FileName;
                EventArgs.Callback?.Invoke();
            }
        }
        private void ReturnItemsFromInvoice()
        {
            bool   retValue  = false;
            string comment   = string.Empty;
            string invoiceId = SelectedInvoiceId;
            CustomerOrderTransaction invoiceTransaction;
            DialogResult             results = DialogResult.None;

            try
            {
                // Construct a transaction from the given Invoice
                SalesOrder.GetSalesInvoiceTransaction(ref retValue, ref comment, invoiceId, out invoiceTransaction);

                if (retValue)
                {
                    ReturnTransactionConfirmation returnTransactionConfirmation = new ReturnTransactionConfirmation()
                    {
                        PosTransaction = invoiceTransaction,
                    };

                    InteractionRequestedEventArgs request = new InteractionRequestedEventArgs(returnTransactionConfirmation, () =>
                    {
                        if (returnTransactionConfirmation.Confirmed)
                        {
                            // The user selected to return items...
                            // Transfer the items to the posTranscation for the return
                            // Updates customer and calculates taxes based upon items and customer
                            SalesOrderActions.InsertReturnedItemsIntoTransaction(returnTransactionConfirmation.ReturnedLineNumbers, invoiceTransaction, this.Transaction);

                            // We only support returning a single-invoice at a time, so Close the form after processing the first one.
                            results = System.Windows.Forms.DialogResult.OK;
                            this.Close();
                        }
                    }
                                                                                              );

                    SalesOrder.InternalApplication.Services.Interaction.InteractionRequest(request);
                }
                else
                {
                    //An error occurred in the operation...
                    SalesOrder.InternalApplication.Services.Dialog.ShowMessage(10002, MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
            catch (Exception ex)
            {
                ApplicationExceptionHandler.HandleException(this.ToString(), ex);
            }

            this.DialogResult = results;
        }
Example #29
0
        private void ReadRouteFileNameConfirmation_Raised(object sender, InteractionRequestedEventArgs <IConfirmation> e)
        {
            OpenFileDialog _ofd = (OpenFileDialog)e.Context.Content;

            if (_ofd.ShowDialog().GetValueOrDefault(false))
            {
                e.Context.Confirmed = true;
            }
            else
            {
                e.Context.Confirmed = false;
            }
            e.Callback();
        }
Example #30
0
        private void HandleProductInformationInteraction(InteractionRequestedEventArgs e)
        {
            if (e == null)
            {
                throw new ArgumentNullException("InteractionRequestedEventArgs");
            }

            ProductInformationConfirmation context = (ProductInformationConfirmation)e.Context;
            ProductInformationConfirmation results = InvokeInteraction <ProductInformationConfirmation, ProductInformationConfirmation>("ProductInformationForm", context, true);

            if (results != null)
            {
                context.Confirmed = results.Confirmed;
            }
        }
Example #31
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;
            }
        }