public us_CitasUsuarios(Empresa.RHH.tpersonal item) { this.Persona = item; //Buscando Contactos. _enlace = new Empresa.Comun.EnlaceContacto(item.Cedula); this.Contacto = _enlace.Contacto; this.Direccion = _enlace.Direccion; InitializeComponent(); //Asignandole Contacto al Control this.Direccion = _enlace.Direccion; control_us_contactos.Contacto = this.Contacto; }
public TEmpresa(string nombre, string rnc,string telefono,string telefono1,string fax, string web, string email, string email1, Comun.TDireccion direccion, object logo,string descripcion) { this.Nombre = nombre; this.Rnc = rnc; this.Telefono = telefono; this.Telefono1 = telefono1; this.Fax = fax; this.Web = web; this.Email1 = email1; this.Email = email; this.Direccion = direccion; this.Logo = logo; this.Descripcion = descripcion; this.Director = new RHH.tpersonal(); }
public TEmpresa() { this.Id = 0; this.Nombre = string.Empty; this.Rnc = string.Empty; this.Telefono = string.Empty; this.Telefono1 = string.Empty; this.Fax = string.Empty; this.Web = string.Empty; this.Email1 = string.Empty; this.Email = string.Empty; this.Direccion = new Comun.TDireccion(); this.Logo = new object(); this.Descripcion = string.Empty; this.Director = new RHH.tpersonal(); }
public void worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if (e.Result != null){ this.Persona = (Empresa.RHH.tpersonal)e.Result; this.DataContext = this.Persona; this.Raise(new RoutedEventArgs(us_BuscarPersonas.EsResultadoEvent, this.Persona)); //Indica que el trabajo fue completado con resultados efectivos. this.TrabajoCompleto = true; } else { //MessageBox.Show("Cedula no valida o no Encontrada en los registros.", "-- CEDULA NO VALIDA --", MessageBoxButton.OK, MessageBoxImage.Exclamation); this.Raise(new RoutedEventArgs(us_BuscarPersonas.EsLimpiadoEventVacio)); } }