private void Tile_add_mesa_Click(object sender, RoutedEventArgs e) { AgregarMesa am = new AgregarMesa(); am.Owner = this; am.lb_nombreusuario.Content = lb_nombreusuario.Content; am.ShowDialog(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.winaddmesa = ((restaurantexxi_adminstrador.AgregarMesa)(target)); #line 9 "..\..\AgregarMesa.xaml" this.winaddmesa.Loaded += new System.Windows.RoutedEventHandler(this.Winaddmesa_Loaded); #line default #line hidden return; case 2: this.lb_nombreusuario = ((System.Windows.Controls.Label)(target)); return; case 3: this.txt_numeromesa = ((System.Windows.Controls.TextBox)(target)); #line 17 "..\..\AgregarMesa.xaml" this.txt_numeromesa.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.Txt_rut_PreviewTextInput); #line default #line hidden #line 17 "..\..\AgregarMesa.xaml" this.txt_numeromesa.GotFocus += new System.Windows.RoutedEventHandler(this.Txt_numeromesa_GotFocus); #line default #line hidden #line 17 "..\..\AgregarMesa.xaml" this.txt_numeromesa.LostFocus += new System.Windows.RoutedEventHandler(this.Txt_numeromesa_LostFocus); #line default #line hidden return; case 4: this.cbb_sala = ((System.Windows.Controls.ComboBox)(target)); #line 18 "..\..\AgregarMesa.xaml" this.cbb_sala.GotFocus += new System.Windows.RoutedEventHandler(this.ComboBox_GotFocus); #line default #line hidden return; case 5: this.ComedorPrincipal = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 6: this.Terraza = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 7: this.Terraza2 = ((System.Windows.Controls.ComboBoxItem)(target)); return; case 8: this.txt_capacidad = ((System.Windows.Controls.TextBox)(target)); #line 23 "..\..\AgregarMesa.xaml" this.txt_capacidad.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.Txt_nombre_PreviewTextInput); #line default #line hidden #line 23 "..\..\AgregarMesa.xaml" this.txt_capacidad.GotFocus += new System.Windows.RoutedEventHandler(this.Txt_capacidad_GotFocus); #line default #line hidden return; case 9: this.btn_addmesa = ((System.Windows.Controls.Button)(target)); #line 24 "..\..\AgregarMesa.xaml" this.btn_addmesa.Click += new System.Windows.RoutedEventHandler(this.Btn_addmesa_Click); #line default #line hidden return; case 10: #line 25 "..\..\AgregarMesa.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BtnVolver_Click); #line default #line hidden return; case 11: this.lb1 = ((System.Windows.Controls.Label)(target)); return; case 12: this.lb3 = ((System.Windows.Controls.Label)(target)); return; case 13: this.lb2 = ((System.Windows.Controls.Label)(target)); return; case 14: this.dtg_ComedorPrincipal = ((System.Windows.Controls.DataGrid)(target)); return; case 15: this.dtg_Terra = ((System.Windows.Controls.DataGrid)(target)); return; case 16: this.dtg_Terra2 = ((System.Windows.Controls.DataGrid)(target)); return; } this._contentLoaded = true; }