예제 #1
0
 public MainViewModel(string buyerName, IWarehouseConnection connection, BuyerRepository repository)
 {
     _buyerName         = buyerName;
     _connection        = connection;
     _repository        = repository;
     StartBuyingCommand = new Command(Join);
     Buyers             = new ObservableCollection <BuyerViewModel>();
 }
예제 #2
0
 public Warehouse(IWarehouseConnection connection, string buyerName)
 {
     _buyerName  = buyerName;
     _connection = connection;
 }