private void But_AgregarPersonal_Click(object sender, RoutedEventArgs e) { _inper = new Win_IncluirPersonal(); _inper.ShowDialog(); try { if (_inper.EsValida){ doc_incluir.Agregar(_inper.DocenteIncluido); //Buscar persona this.Txt_Cedula.Text = _inper.DocenteIncluido.Cedula; this.BuscarDoncente(_inper.DocenteIncluido.Cedula); } _inper.Close(); } catch { MessageBox.Show("Falta datos o la persona que intente introducir existe en nuestra base de datos, verifique: consulte la existencia de la persona en nuestra base de datos o debe introducir la empresa origen.", "Faltan datos o la pesona existe en nuestra base de datos.", MessageBoxButton.OK, MessageBoxImage.Warning); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.us_Win_IncluirPersonal = ((SIC.Objs.Controles.Win_IncluirPersonal)(target)); return; case 2: this.gri_general = ((System.Windows.Controls.Grid)(target)); return; case 3: this.grid_controles = ((System.Windows.Controls.Grid)(target)); return; case 4: this.grid_info_personal = ((System.Windows.Controls.Grid)(target)); return; case 5: this.border_Copy = ((System.Windows.Controls.Border)(target)); return; case 6: this.grid_inf_laboral = ((System.Windows.Controls.Grid)(target)); return; case 7: this.border_Copy1 = ((System.Windows.Controls.Border)(target)); return; case 8: this.Txt_Fecha = ((System.Windows.Controls.TextBlock)(target)); return; case 9: this.Txt_Monto = ((System.Windows.Controls.TextBox)(target)); return; case 10: this.Txt_TiempoServicio = ((System.Windows.Controls.TextBox)(target)); return; case 11: this.us_er_empresa = ((SIC.Objs.Controles.ERSuplidormini)(target)); return; case 12: this.But_Guardar = ((System.Windows.Controls.Button)(target)); #line 56 "..\..\..\..\Objs\Controles\Win_IncluirPersonal.xaml" this.But_Guardar.Click += new System.Windows.RoutedEventHandler(this.But_Guardar_Click); #line default #line hidden return; case 13: this.But_Salir = ((System.Windows.Controls.Button)(target)); #line 64 "..\..\..\..\Objs\Controles\Win_IncluirPersonal.xaml" this.But_Salir.Click += new System.Windows.RoutedEventHandler(this.But_Salir_Click); #line default #line hidden return; case 14: this.But_OtraBusqueda = ((System.Windows.Controls.Button)(target)); #line 72 "..\..\..\..\Objs\Controles\Win_IncluirPersonal.xaml" this.But_OtraBusqueda.Click += new System.Windows.RoutedEventHandler(this.But_OtraBusqueda_Click); #line default #line hidden return; case 15: this.grid_inicial = ((System.Windows.Controls.Grid)(target)); return; case 16: this.us_buscarempresa = ((Contrato.objects.paginas.ERBuscarPersona)(target)); return; case 17: #line 90 "..\..\..\..\Objs\Controles\Win_IncluirPersonal.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click); #line default #line hidden return; } this._contentLoaded = true; }