cosas que faltaban
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Entidades
|
||||
{
|
||||
@@ -10,8 +9,19 @@ namespace Entidades
|
||||
public string Apellido { get; set; }
|
||||
public string Direccion { get; set; }
|
||||
public string Correo { get; set; }
|
||||
|
||||
|
||||
[Browsable(false)]
|
||||
public bool Habilitado { get; set; }
|
||||
|
||||
public string NombreCompleto
|
||||
{
|
||||
get { return $"{Nombre} {Apellido}"; }
|
||||
}
|
||||
|
||||
// Sobreescribir ToString() para mostrar el nombre completo
|
||||
public override string ToString()
|
||||
{
|
||||
return NombreCompleto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user