private void Tile_Mod_Receta_Click(object sender, RoutedEventArgs e)
        {
            ModificarReceta mr = new ModificarReceta();

            mr.Owner = this;
            mr.lb_nombreusuario.Content = lb_nombreusuario.Content;
            mr.ShowDialog();
        }
        private void btnmodificar_Click(object sender, RoutedEventArgs e)
        {
            ModificarReceta modire = new ModificarReceta();

            modire.ShowDialog();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.modi_rece = ((restaurantexxi_adminstrador.ModificarReceta)(target));

            #line 9 "..\..\ModificarReceta.xaml"
                this.modi_rece.Loaded += new System.Windows.RoutedEventHandler(this.modi_rece_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.lb_nombreusuario = ((System.Windows.Controls.Label)(target));
                return;

            case 3:
                this.lbl_selec_ing = ((System.Windows.Controls.Label)(target));
                return;

            case 4:
                this.lbl_cant = ((System.Windows.Controls.Label)(target));
                return;

            case 5:
                this.txt_nom_rec = ((System.Windows.Controls.TextBox)(target));

            #line 19 "..\..\ModificarReceta.xaml"
                this.txt_nom_rec.GotFocus += new System.Windows.RoutedEventHandler(this.txt_nom_rec_GotFocus);

            #line default
            #line hidden
                return;

            case 6:
                this.txt_prec = ((System.Windows.Controls.TextBox)(target));

            #line 20 "..\..\ModificarReceta.xaml"
                this.txt_prec.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txt_prec_PreviewTextInput);

            #line default
            #line hidden

            #line 20 "..\..\ModificarReceta.xaml"
                this.txt_prec.GotFocus += new System.Windows.RoutedEventHandler(this.txt_prec_GotFocus);

            #line default
            #line hidden
                return;

            case 7:
                this.txt_cant_ing = ((System.Windows.Controls.TextBox)(target));

            #line 21 "..\..\ModificarReceta.xaml"
                this.txt_cant_ing.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txt_cant_ing_PreviewTextInput);

            #line default
            #line hidden

            #line 21 "..\..\ModificarReceta.xaml"
                this.txt_cant_ing.GotFocus += new System.Windows.RoutedEventHandler(this.txt_cant_ing_GotFocus);

            #line default
            #line hidden
                return;

            case 8:
                this.btn_agre = ((System.Windows.Controls.Button)(target));

            #line 22 "..\..\ModificarReceta.xaml"
                this.btn_agre.Click += new System.Windows.RoutedEventHandler(this.btn_agre_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.cbb_ingres = ((System.Windows.Controls.ComboBox)(target));

            #line 23 "..\..\ModificarReceta.xaml"
                this.cbb_ingres.GotFocus += new System.Windows.RoutedEventHandler(this.cbb_ingres_GotFocus);

            #line default
            #line hidden
                return;

            case 10:
                this.dtg_ing = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 11:
                this.btn_mod = ((System.Windows.Controls.Button)(target));

            #line 25 "..\..\ModificarReceta.xaml"
                this.btn_mod.Click += new System.Windows.RoutedEventHandler(this.btn_mod_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.btnVolver = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\ModificarReceta.xaml"
                this.btnVolver.Click += new System.Windows.RoutedEventHandler(this.btnVolver_Click);

            #line default
            #line hidden
                return;

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

            #line 27 "..\..\ModificarReceta.xaml"
                this.btn_quitar.Click += new System.Windows.RoutedEventHandler(this.btn_quitar_Click);

            #line default
            #line hidden
                return;

            case 14:
                this.btn_list_todo = ((System.Windows.Controls.Button)(target));

            #line 28 "..\..\ModificarReceta.xaml"
                this.btn_list_todo.Click += new System.Windows.RoutedEventHandler(this.btn_list_todo_Click);

            #line default
            #line hidden
                return;

            case 15:
                this.dtg_list_todo = ((System.Windows.Controls.DataGrid)(target));

            #line 29 "..\..\ModificarReceta.xaml"
                this.dtg_list_todo.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Dtg_list_todo_SelectionChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.txt_id_rec = ((System.Windows.Controls.TextBox)(target));

            #line 31 "..\..\ModificarReceta.xaml"
                this.txt_id_rec.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txt_id_rec_PreviewTextInput);

            #line default
            #line hidden

            #line 31 "..\..\ModificarReceta.xaml"
                this.txt_id_rec.GotFocus += new System.Windows.RoutedEventHandler(this.txt_id_rec_GotFocus);

            #line default
            #line hidden
                return;

            case 17:
                this.txt_desc_mod = ((System.Windows.Controls.TextBox)(target));

            #line 33 "..\..\ModificarReceta.xaml"
                this.txt_desc_mod.GotFocus += new System.Windows.RoutedEventHandler(this.txt_desc_mod_GotFocus);

            #line default
            #line hidden

            #line 33 "..\..\ModificarReceta.xaml"
                this.txt_desc_mod.SelectionChanged += new System.Windows.RoutedEventHandler(this.Txt_desc_mod_SelectionChanged);

            #line default
            #line hidden
                return;

            case 18:
                this.cbb_habili = ((System.Windows.Controls.ComboBox)(target));

            #line 35 "..\..\ModificarReceta.xaml"
                this.cbb_habili.GotFocus += new System.Windows.RoutedEventHandler(this.cbb_habili_GotFocus);

            #line default
            #line hidden
                return;

            case 19:
                this.cbb_catego = ((System.Windows.Controls.ComboBox)(target));

            #line 40 "..\..\ModificarReceta.xaml"
                this.cbb_catego.GotFocus += new System.Windows.RoutedEventHandler(this.cbb_catego_GotFocus);

            #line default
            #line hidden
                return;

            case 20:
                this.rb_cons = ((System.Windows.Controls.RadioButton)(target));

            #line 46 "..\..\ModificarReceta.xaml"
                this.rb_cons.Checked += new System.Windows.RoutedEventHandler(this.rb_cons_Checked);

            #line default
            #line hidden
                return;

            case 21:
                this.rb_elim = ((System.Windows.Controls.RadioButton)(target));

            #line 47 "..\..\ModificarReceta.xaml"
                this.rb_elim.Checked += new System.Windows.RoutedEventHandler(this.rb_elim_Checked);

            #line default
            #line hidden
                return;

            case 22:
                this.lb1 = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.lb2 = ((System.Windows.Controls.Label)(target));
                return;

            case 24:
                this.lb5 = ((System.Windows.Controls.Label)(target));
                return;

            case 25:
                this.lb6 = ((System.Windows.Controls.Label)(target));
                return;

            case 26:
                this.lb8 = ((System.Windows.Controls.Label)(target));
                return;

            case 27:
                this.lb3 = ((System.Windows.Controls.Label)(target));
                return;

            case 28:
                this.lb4 = ((System.Windows.Controls.Label)(target));
                return;

            case 29:
                this.lb7 = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }