public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Talentos_Master;component/frmRecomendacionesFinales.xaml", System.UriKind.Relative)); this.txtCerrarSession = ((System.Windows.Controls.TextBlock)(this.FindName("txtCerrarSession"))); this.txtfullname = ((System.Windows.Documents.Run)(this.FindName("txtfullname"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.rowPanel = ((System.Windows.Controls.RowDefinition)(this.FindName("rowPanel"))); this.brInstruc = ((System.Windows.Controls.Border)(this.FindName("brInstruc"))); this.Instruccion = ((System.Windows.Controls.StackPanel)(this.FindName("Instruccion"))); this.brHeader = ((System.Windows.Controls.Border)(this.FindName("brHeader"))); this.brInstruc1 = ((System.Windows.Controls.Border)(this.FindName("brInstruc1"))); this.txtInstruccion1 = ((System.Windows.Controls.TextBlock)(this.FindName("txtInstruccion1"))); this.line1 = ((System.Windows.Shapes.Line)(this.FindName("line1"))); this.brInstruc2 = ((System.Windows.Controls.Border)(this.FindName("brInstruc2"))); this.txtInstruccion2 = ((System.Windows.Controls.TextBlock)(this.FindName("txtInstruccion2"))); this.Line2 = ((System.Windows.Shapes.Line)(this.FindName("Line2"))); this.brInstrcResult = ((System.Windows.Controls.Border)(this.FindName("brInstrcResult"))); this.txtInstruccionResult = ((System.Windows.Controls.TextBlock)(this.FindName("txtInstruccionResult"))); this.Line3 = ((System.Windows.Shapes.Line)(this.FindName("Line3"))); this.brInstruccion3 = ((System.Windows.Controls.Border)(this.FindName("brInstruccion3"))); this.txtInstruccion3 = ((System.Windows.Controls.TextBlock)(this.FindName("txtInstruccion3"))); this.brpanel = ((System.Windows.Controls.Border)(this.FindName("brpanel"))); this.canvTalentos = ((System.Windows.Controls.Canvas)(this.FindName("canvTalentos"))); this.txtIndicaciones = ((System.Windows.Controls.TextBlock)(this.FindName("txtIndicaciones"))); this.btnCerrarJuego = ((System.Windows.Controls.Border)(this.FindName("btnCerrarJuego"))); this.talento1 = ((Talentos_Master.ucTalento)(this.FindName("talento1"))); this.talento2 = ((Talentos_Master.ucTalento)(this.FindName("talento2"))); this.talento3 = ((Talentos_Master.ucTalento)(this.FindName("talento3"))); this.talento4 = ((Talentos_Master.ucTalento)(this.FindName("talento4"))); this.talento5 = ((Talentos_Master.ucTalento)(this.FindName("talento5"))); this.talentosListBox = ((System.Windows.Controls.ListBox)(this.FindName("talentosListBox"))); this.talento6 = ((Talentos_Master.ucTalento)(this.FindName("talento6"))); this.talento7 = ((Talentos_Master.ucTalento)(this.FindName("talento7"))); this.talento8 = ((Talentos_Master.ucTalento)(this.FindName("talento8"))); this.talento9 = ((Talentos_Master.ucTalento)(this.FindName("talento9"))); this.talento10 = ((Talentos_Master.ucTalento)(this.FindName("talento10"))); this.talentosListBox2 = ((System.Windows.Controls.ListBox)(this.FindName("talentosListBox2"))); this.txtVolverResultados = ((System.Windows.Controls.TextBlock)(this.FindName("txtVolverResultados"))); this.canvDetalle = ((System.Windows.Controls.Canvas)(this.FindName("canvDetalle"))); this.grDetalle = ((System.Windows.Controls.Grid)(this.FindName("grDetalle"))); this.txtNombreTalento = ((System.Windows.Controls.TextBlock)(this.FindName("txtNombreTalento"))); this.txtVolver = ((System.Windows.Controls.TextBlock)(this.FindName("txtVolver"))); this.imgTalento = ((System.Windows.Controls.Image)(this.FindName("imgTalento"))); this.lnSeparacion = ((System.Windows.Shapes.Line)(this.FindName("lnSeparacion"))); this.txtDescripcion = ((System.Windows.Documents.Run)(this.FindName("txtDescripcion"))); }
//ver recomendaciones de un talentos private void talento_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { this.IsEnabled = false; //RecomendacionTalento.IsOpen = false; TalentosReference.WSTalentosSoapClient ws = new Talentos_Master.TalentosReference.WSTalentosSoapClient(); //TalentoUC ucTalento = ((TalentoUC)talentosListBox.SelectedItem); //TalentoUC ucTalento = ((TalentoUC)((sender as ListBox).SelectedItem)); ucTalento ucTal = (sender as ucTalento); ws.ObtenerRecomedacionCompleted += new EventHandler <TalentosReference.ObtenerRecomedacionCompletedEventArgs>(ObtenerRecomendacion_Completed); //if ((ucTalento.id != 5) && (ucTalento.id != 20)) // ws.ObtenerRecomedacionAsync(20); //else //ws.ObtenerRecomedacionAsync(ucTalento.id);//(ucTalento.id); ws.ObtenerRecomedacionAsync(Convert.ToInt16(ucTal.img.Tag)); //(ucTalento.id); imgTalento.Source = new BitmapImage(new Uri(ucTal.LayoutRoot.Tag.ToString(), UriKind.Relative)); //new BitmapImage(new Uri(ucTal.img.Source.ToString(), UriKind.Relative)); txtDescripcion.Text = ucTal.recomendacionBorder.Tag.ToString(); //descripcion txtNombreTalento.Text = ucTal.canvTalento.Tag.ToString() + " >>"; //.nombre longitudDescripcion = ucTal.recomendacionBorder.Tag.ToString().Length; }