41 lines
758 B
C#
41 lines
758 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DesktopWithMyVisualComponents
|
|
{
|
|
public class Device
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string DeviceType { get; set; }
|
|
|
|
public string Model { get; set; }
|
|
|
|
public string SerialNumber { get; set; }
|
|
|
|
public string Owner { get; set; }
|
|
|
|
public DateTime PurchaseDate { get; set; }
|
|
|
|
public string State { get; set; }
|
|
|
|
public string Color { get; set; }
|
|
|
|
public int WarrantyPeriod { get; set; }
|
|
|
|
public int Price { get; set; }
|
|
|
|
public Device(string serialNumber, string deviceType, string model)
|
|
{
|
|
SerialNumber = serialNumber;
|
|
Model = model;
|
|
DeviceType = deviceType;
|
|
}
|
|
|
|
public Device() { }
|
|
}
|
|
}
|