1
0
mirror of https://github.com/SirLecram/HospitalServerManager synced 2024-07-17 18:30:30 +02:00
admissionManager/ViewModel/RoomViewModel.cs
Marcel Grześ f234ec1f26 First version of working application
- last changes and visual edit
2019-01-11 22:32:18 +01:00

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;
}
}
}