/// <summary> /// Initializes a new instance of the <see cref="NewTaskWindow" /> class. /// </summary> /// <param name="taskRepository"> /// The task repository. /// </param> public NewTaskWindow(ITaskRepository taskRepository) { this.newTaskViewModel = new NewTaskViewModel(taskRepository) { Owner = this }; DataContext = this.newTaskViewModel; this.InitializeComponent(); }
public NewTaskWindow(ITaskRepository taskRepository) { newTaskViewModel = new NewTaskViewModel(taskRepository) {Owner = this}; DataContext = newTaskViewModel; InitializeComponent(); }