public AddEmployment(Employment employment) { InitializeComponent(); DataContext = ViewModel = new AddEmploymentViewModel(this, employment); }
public AddEmployment(Employee selectedEmployee) { InitializeComponent(); addEmploymentViewModel = new AddEmploymentViewModel(selectedEmployee); DataContext = addEmploymentViewModel; }