private void Initialize() { taskMonitorDataContext = TaskMonitorFactoryFacade.CreateFactory(taskMonitorContext.FactoryType).GetTaskMonitorDataContext(); this.DataContext = taskMonitorDataContext; CancelTaskCommand = new THCommand <TaskItemFileUpload>(taskMonitorDataContext.OnCancelTask); RetryTaskCommand = new THCommand <TaskItemFileUpload>(taskMonitorDataContext.OnRetryTask); }
public TaskMonitorWindow() { InitializeComponent(); taskMonitorContext = new TaskMonitorDataContext(this); this.DataContext = taskMonitorContext; CancelTaskCommand = new THCommand <TaskItem>(taskMonitorContext.OnCancelTask); RetryTaskCommand = new THCommand <TaskItem>(taskMonitorContext.OnRetryTask); }