12345678910111213141516171819202122 |
- using System;
- using System.Collections.Generic;
- using Acosta.Models;
- using ReactiveUI;
- namespace Acosta.ViewModels
- {
- public class VisitsViewModel : ReactiveObject
- {
- SuharevaContext myC;
- Visit? currentVisit;
- public VisitsViewModel(SuharevaContext myC)
- {
- this.myC = myC;
- CurrentVisit = new Visit();
- myC.Add(CurrentVisit);
- }
- public Visit? CurrentVisit { get => currentVisit; set => currentVisit = value; }
- }
- }
|