public CustomerDetailsViewModel() { if (IsInDesignMode) { m_currentCustomer = new Customer { FirstName = "Frank", LastName = "Spolsky", Age = 12, Address = "BamBam !" }; } else { m_currentCustomer = new Customer(); } CloseWindowCommandCommand = new CloseWindowCommand(); }
public CustomerDetailsViewModel(Customer a_currentCustomer) : this() { m_currentCustomer = a_currentCustomer; }