private void Tile_conf_pedido_Click(object sender, RoutedEventArgs e)
        {
            ConfirmarPedido cp = new ConfirmarPedido();

            cp.Owner = this;
            cp.lb_nombreusuario.Content = lb_nombreusuario.Content;
            cp.ShowDialog();
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.win_aceptar_pedido = ((restaurantexxi_adminstrador.ConfirmarPedido)(target));

            #line 9 "..\..\ConfirmarPedido.xaml"
                this.win_aceptar_pedido.Loaded += new System.Windows.RoutedEventHandler(this.Win_aceptar_pedido_Loaded);

            #line default
            #line hidden
                return;

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

            case 3:
                this.rdb_todos = ((System.Windows.Controls.RadioButton)(target));

            #line 16 "..\..\ConfirmarPedido.xaml"
                this.rdb_todos.Checked += new System.Windows.RoutedEventHandler(this.Rdb_todos_Checked);

            #line default
            #line hidden
                return;

            case 4:
                this.rdb_todos_hoy = ((System.Windows.Controls.RadioButton)(target));

            #line 17 "..\..\ConfirmarPedido.xaml"
                this.rdb_todos_hoy.Checked += new System.Windows.RoutedEventHandler(this.Rdb_todos_hoy_Checked);

            #line default
            #line hidden
                return;

            case 5:
                this.rdb_todos_senana = ((System.Windows.Controls.RadioButton)(target));

            #line 18 "..\..\ConfirmarPedido.xaml"
                this.rdb_todos_senana.Checked += new System.Windows.RoutedEventHandler(this.Rdb_todos_senana_Checked);

            #line default
            #line hidden
                return;

            case 6:
                this.rdb_todos_mes = ((System.Windows.Controls.RadioButton)(target));

            #line 19 "..\..\ConfirmarPedido.xaml"
                this.rdb_todos_mes.Checked += new System.Windows.RoutedEventHandler(this.Rdb_todos_mes_Checked);

            #line default
            #line hidden
                return;

            case 7:
                this.dtg_pedidos = ((System.Windows.Controls.DataGrid)(target));

            #line 20 "..\..\ConfirmarPedido.xaml"
                this.dtg_pedidos.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Dtg_pedidos_SelectionChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.dtg_detalle = ((System.Windows.Controls.DataGrid)(target));

            #line 22 "..\..\ConfirmarPedido.xaml"
                this.dtg_detalle.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.Dtg_detalle_SelectionChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.txt_id_pedido = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.txt_cant = ((System.Windows.Controls.TextBox)(target));
                return;

            case 11:
                this.cbb_proveedor = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 12:
                this.txt_nombreInsumo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 13:
                this.txt_estado = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.txt_stock_bodega = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.txt_stockcocina_bar = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 18:
                this.txt_monto = ((System.Windows.Controls.TextBox)(target));
                return;

            case 19:
                this.btn_Aceptar_pedido = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\ConfirmarPedido.xaml"
                this.btn_Aceptar_pedido.Click += new System.Windows.RoutedEventHandler(this.Btn_Aceptar_pedido_Click);

            #line default
            #line hidden
                return;

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

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

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

            case 23:
                this.btn_anular = ((System.Windows.Controls.Button)(target));

            #line 46 "..\..\ConfirmarPedido.xaml"
                this.btn_anular.Click += new System.Windows.RoutedEventHandler(this.Btn_anular_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.btn_atras = ((System.Windows.Controls.Button)(target));

            #line 48 "..\..\ConfirmarPedido.xaml"
                this.btn_atras.Click += new System.Windows.RoutedEventHandler(this.Btn_atras_Click);

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