1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2025-01-08 21:27:34 +01:00
admissionManager/Model/Basic/Room.cs
Marcel Grześ 52f1c1e71f Basic function development
All database models has been added;
All basic ViewModels has been added;
2018-12-22 15:52:17 +01:00

24 lines
590 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalServerManager.Model.Basic
{
class Room : SqlTable
{
public int PlacesNumber { get; protected set; }
public bool IsSpecialCare { get; protected set; }
protected Room() : base() { }
public Room(List<string> listOfValues)
: base(listOfValues[0], "Nr_sali", new List<string>())
{
if (int.TryParse(listOfValues[1], out int placesNumber))
PlacesNumber = placesNumber;
IsSpecialCare = bool.Parse(listOfValues[2]);
}
}
}