void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.PrintWindow = ((WpfApplication1.PrintPage)(target));

            #line 6 "..\..\PrintPage.xaml"
                this.PrintWindow.Loaded += new System.Windows.RoutedEventHandler(this.PrintWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.btnPrint = ((System.Windows.Controls.Button)(target));

            #line 14 "..\..\PrintPage.xaml"
                this.btnPrint.Click += new System.Windows.RoutedEventHandler(this.btnPrint_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.PrintPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 4:
                this.grid1 = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 5:
                this.nameLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 6:
                this.mainRecipeDetailsDataGrid = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 7:
                this.ingredientsColumn = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 8:
                this.quantityColumn = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 9:
                this.unitsColumn = ((System.Windows.Controls.DataGridTemplateColumn)(target));
                return;

            case 10:
                this.descriptionTextBlock = ((System.Windows.Controls.TextBlock)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private void btnPrint_Click(object sender, RoutedEventArgs e)
        {
            PrintPage pp = new PrintPage();

            pp.ShowDialog();
        }