private void Tile_List_Recetas_Click(object sender, RoutedEventArgs e)
        {
            ListarReceta lr = new ListarReceta();

            lr.Owner = this;
            lr.lb_nombreusuario.Content = lb_nombreusuario.Content;
            lr.ShowDialog();
        }
Beispiel #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.win_list_rec = ((restaurantexxi_adminstrador.ListarReceta)(target));

            #line 9 "..\..\ListarReceta.xaml"
                this.win_list_rec.Loaded += new System.Windows.RoutedEventHandler(this.win_list_rec_Loaded);

            #line default
            #line hidden
                return;

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

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

            #line 16 "..\..\ListarReceta.xaml"
                this.txt_nom_rec.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txt_nom_rec_PreviewTextInput);

            #line default
            #line hidden
                return;

            case 4:
                this.dtg_rec = ((System.Windows.Controls.DataGrid)(target));

            #line 17 "..\..\ListarReceta.xaml"
                this.dtg_rec.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dtg_rec_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.btnvolver = ((System.Windows.Controls.Button)(target));

            #line 18 "..\..\ListarReceta.xaml"
                this.btnvolver.Click += new System.Windows.RoutedEventHandler(this.btnvolver_Click);

            #line default
            #line hidden
                return;

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

            #line 19 "..\..\ListarReceta.xaml"
                this.btn_listar.Click += new System.Windows.RoutedEventHandler(this.btn_listar_Click);

            #line default
            #line hidden
                return;

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

            #line 20 "..\..\ListarReceta.xaml"
                this.dtg_rece_list.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.dtg_rece_list_SelectionChanged);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
        private void btnlistar_Click(object sender, RoutedEventArgs e)
        {
            ListarReceta lisre = new ListarReceta();

            lisre.ShowDialog();
        }