Ejemplo n.º 1
0
        private void detailButton_Click(object sender, RoutedEventArgs e)
        {
            var item = (sender as FrameworkElement).DataContext;
            int id   = (item as Recipe).foodID;

            Global.idTransfer = id;
            DetailScreen detailScreen = new DetailScreen();

            detailScreen.Owner   = this;
            coverGrid.Visibility = Visibility.Visible;
            mainGrid.IsEnabled   = false;
            detailScreen.ShowDialog();

            if (detailScreen.DialogResult == true)
            {
                mainGrid.IsEnabled   = true;
                coverGrid.Visibility = Visibility.Collapsed;
            }

            else
            {
                mainGrid.IsEnabled   = true;
                coverGrid.Visibility = Visibility.Collapsed;
            }
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.detailScreen = ((FoodRecipes.DetailScreen)(target));

            #line 19 "..\..\DetailScreen.xaml"
                this.detailScreen.Loaded += new System.Windows.RoutedEventHandler(this.detailScreen_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.detailScreenBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 3:
                this.stepContentListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 4:
                this.thumbnailListView = ((System.Windows.Controls.ListView)(target));
                return;

            case 5:
                this.carouselCoverBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 6:
                this.previousStepButton = ((System.Windows.Controls.Button)(target));

            #line 163 "..\..\DetailScreen.xaml"
                this.previousStepButton.Click += new System.Windows.RoutedEventHandler(this.previousStepButton_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.nextStepButton = ((System.Windows.Controls.Button)(target));

            #line 167 "..\..\DetailScreen.xaml"
                this.nextStepButton.Click += new System.Windows.RoutedEventHandler(this.nextStepButton_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.foodName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 9:
                this.stepNameBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 10:
                this.stepName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 11:
                this.stepsGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 12:
                this.stepsBorder = ((System.Windows.Controls.Border)(target));
                return;

            case 13:
                this.playVideoButton = ((System.Windows.Controls.Button)(target));

            #line 231 "..\..\DetailScreen.xaml"
                this.playVideoButton.Click += new System.Windows.RoutedEventHandler(this.playVideoButton_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.stepsListView = ((System.Windows.Controls.ListView)(target));

            #line 238 "..\..\DetailScreen.xaml"
                this.stepsListView.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.stepsListView_SelectionChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.growButton = ((System.Windows.Controls.Primitives.ToggleButton)(target));
                return;

            case 16:
                this.backButton = ((System.Windows.Controls.Button)(target));

            #line 307 "..\..\DetailScreen.xaml"
                this.backButton.Click += new System.Windows.RoutedEventHandler(this.backButton_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }