public CustomerDetailsViewModel(IUIDataProvider dataProvider, string customerID) { _dataProvider = dataProvider; Customer = _dataProvider.GetCustomer(customerID); base.DisplayName = Customer.CompanyName; Customer.PropertyChanged += Customer_PropertyChanged; }
public CustomerDetailsViewModel(IUIDataProvider dataProvider, string customerID) : base(TODO) { Customer = dataProvider.GetCustomer(customerID); if (Customer != null) { DisplayName = Customer.CompanyName; } }
public CustomerDetailsViewModel( IUIDataProvider dataProvider, string customerID, IToolManager toolManager, IOrdersViewModelFactory ordersViewModelFactory) : base(toolManager) { _dataProvider = dataProvider; _ordersViewModelFactory = ordersViewModelFactory; Customer = _dataProvider.GetCustomer(customerID); Customer.PropertyChanged += Customer_PropertyChanged; DisplayName = Customer.CompanyName; }
public CustomerDetailsViewModel( IUIDataProvider dataProvider, string customerID, IToolManager toolManager = null ) : base(toolManager) { _dataProvider = dataProvider; Customer = _dataProvider.GetCustomer(customerID); Customer.PropertyChanged += Customer_PropertyChanged; DisplayName = Customer.CompanyName; }
public CustomerDetailsViewModel(IUIDataProvider dataProvider, string customerID) { _dataProvider = dataProvider; Customer = _dataProvider.GetCustomer(customerID); DisplayName = Customer.CompanyName; }