2024-09-23 14:37:08 +04:00
|
|
|
|
namespace WinFormsApp
|
|
|
|
|
{
|
|
|
|
|
public class Employee
|
|
|
|
|
{
|
2024-11-19 23:44:02 +04:00
|
|
|
|
public int Id { get; set; }
|
2024-09-23 14:37:08 +04:00
|
|
|
|
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)
|
|
|
|
|
{
|
2024-11-19 23:44:02 +04:00
|
|
|
|
Id = new Random().Next(4);
|
2024-09-23 14:37:08 +04:00
|
|
|
|
Departament = departament;
|
|
|
|
|
Position = position;
|
|
|
|
|
Name = name;
|
|
|
|
|
Surname = surname;
|
|
|
|
|
}
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2024-11-19 23:44:02 +04:00
|
|
|
|
return Id.ToString() + ", " + Departament + ", " + Position + ", " + Surname + " " + Name;
|
2024-09-23 14:37:08 +04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|