123456789101112131415161718192021222324 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using Acosta.Models;
- using ReactiveUI;
- namespace Acosta.ViewModels
- {
- public class AddOutletsViewModel : ReactiveObject
- {
- SuharevaContext myC;
- Outlet? currentOutlet;
- public AddOutletsViewModel(SuharevaContext myC)
- {
- this.myC = myC;
- CurrentOutlet = new Outlet();
- myC.Add(CurrentOutlet);
- }
- public List<TradeNetwork> Trades => myC.TradeNetworks.ToList();
- public Outlet? CurrentOutlet { get => currentOutlet; set => currentOutlet = value; }
- }
- }
|