Esempio n. 1
0
        private void cmdSelect_Click(object sender, RoutedEventArgs e)
        {
            SelectProductPageFunction pageFunction = new SelectProductPageFunction();
            pageFunction.Return += new ReturnEventHandler<Product>(
              SelectProductPageFunction_Returned);
            this.NavigationService.Navigate(pageFunction);

        }
        private void cmdSelect_Click(object sender, RoutedEventArgs e)
        {
            SelectProductPageFunction pageFunction = new SelectProductPageFunction();

            pageFunction.Return += new ReturnEventHandler <Product>(
                SelectProductPageFunction_Returned);
            this.NavigationService.Navigate(pageFunction);
        }
Esempio n. 3
0
        private void cmdSelect_Click(object sender, RoutedEventArgs e)
        {
            SelectProductPageFunction pageFunction = new SelectProductPageFunction();

            /*pageFunction.Return += new ReturnEventHandler<Product>(
             * SelectProductPageFunction_Returned);*/

            //pageFunction.Return += new ReturnEventHandler<Product>(() => { });
            pageFunction.Return += (s, ev) => {
                if (ev != null)
                {
                    lblStatus.Content = "You chose: " + ev.Result.Name;
                }
            };
            this.NavigationService.Navigate(pageFunction);
        }
        private void OnSelectProduct(object sender, RoutedEventArgs e)
        {
            var pageFunction = new SelectProductPageFunction();

            pageFunction.Return += (o, args) =>
            {
                if (args != null)
                {
                    StatusLabel.Content = string.Format("You chose: {0}", args.Result.Name);
                }
            };

            if (NavigationService != null)
            {
                NavigationService.Navigate(pageFunction);
            }
        }