25 lines
754 B
C#
25 lines
754 B
C#
namespace WinFormsApp
|
|
{
|
|
public class Employee
|
|
{
|
|
public int Id { get; set; }
|
|
public string Departament { get; set; }
|
|
public string Position { get; set; }
|
|
public string Name { get; set; }
|
|
public string Surname { get; set; }
|
|
public Employee() { }
|
|
public Employee(string departament, string position, string surname, string name)
|
|
{
|
|
Id = new Random().Next(4);
|
|
Departament = departament;
|
|
Position = position;
|
|
Name = name;
|
|
Surname = surname;
|
|
}
|
|
public override string ToString()
|
|
{
|
|
return Id.ToString() + ", " + Departament + ", " + Position + ", " + Surname + " " + Name;
|
|
}
|
|
}
|
|
}
|