mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-09-18 09:33:00 +02:00
f234ec1f26
- last changes and visual edit
38 lines
783 B
C#
38 lines
783 B
C#
using HospitalServerManager.InterfacesAndEnums;
|
|
using HospitalServerManager.Model.Basic;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace HospitalServerManager.ViewModel
|
|
{
|
|
class RoomViewModel : IPrimaryKeyGetable
|
|
{
|
|
private Room model;
|
|
public string PrimaryKey { get => model.PrimaryKey; }
|
|
public int PlacesNumber { get => model.PlacesNumber; }
|
|
public bool IsSpecialCare { get => model.IsSpecialCare; }
|
|
|
|
public RoomViewModel(Room model)
|
|
{
|
|
this.model = model;
|
|
}
|
|
|
|
public string GetPrimaryKey()
|
|
{
|
|
return PrimaryKey;
|
|
}
|
|
|
|
public string GetPrimaryKeyName()
|
|
{
|
|
return model.PrimaryKeyName;
|
|
}
|
|
public override string ToString()
|
|
{
|
|
return "Sala nr" + PrimaryKey;
|
|
}
|
|
}
|
|
}
|