mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2025-01-08 21:27:34 +01:00
52f1c1e71f
All database models has been added; All basic ViewModels has been added;
24 lines
590 B
C#
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]);
|
|
}
|
|
}
|
|
}
|