Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 public NewTaskWindow(ITaskRepository taskRepository)
 {
     newTaskViewModel = new NewTaskViewModel(taskRepository) {Owner = this};
     DataContext = newTaskViewModel;
     InitializeComponent();
 }