mirror of
https://github.com/SirLecram/HospitalServerManager
synced 2024-07-17 10:25:30 +02:00
![Marcel Grześ](/assets/img/avatar_default.png)
- EditRecordDialog has been added and edited; Others pages (View) has been added and completed; - All ViewModel and Models was completed; - WebService, ApiComandProvider has full funcionality, - New interface has been created; - Application is working now :) it's time to refractoring and testing
34 lines
705 B
C#
34 lines
705 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;
|
|
}
|
|
}
|
|
}
|