PIbd-31_PotapovNS_COP_20/WinFormSolution/WinFormsApp/TableEmployee.cs

33 lines
1012 B
C#
Raw Normal View History

2024-10-23 17:56:27 +04:00
using System.ComponentModel;
namespace WinFormsApp
{
public class TableEmployee
{
[DisplayName("ID")]
public int ID { get; set; }
[DisplayName("Имя")]
public string Name { get; set; }
[DisplayName("Фамилия")]
public string SurName { get; set; }
[DisplayName("Возраст")]
public int Age { get; set; }
[DisplayName("Место работы")]
public string WorkPlace { get; set; }
[DisplayName("Должность")]
public string WorkPost { get; set; }
[DisplayName("Зарплата")]
public double Salary { get; set; }
public TableEmployee(int id, string name, string surname, int age, string workPlace, string workPost, double salary)
{
ID = id;
Name = name;
SurName = surname;
Age = age;
WorkPlace = workPlace;
WorkPost = workPost;
Salary = salary;
}
}
}