/// <summary> /// The view for a task in the sidebar /// </summary> /// <param name="workType">Job type</param> /// <param name="data">Data Model for this View</param> public HITView(string workType, HITData data, int job) { InitializeComponent(); hitType.Content = workType; this.data = data; data.register(this); previewText.Text = data.originalText; stageList = new Dictionary<HITData.ResultType,StageView>(); stub = new HITViewStub(workType, data, this); this.job = job; cancelBtn.IsEnabled = true; }
/// <summary> /// The view for a task in the sidebar /// </summary> /// <param name="workType">Job type</param> /// <param name="data">Data Model for this View</param> public HITView(string workType, HITData data, int job) { InitializeComponent(); hitType.Content = workType; this.data = data; data.register(this); previewText.Text = data.originalText; stageList = new Dictionary <HITData.ResultType, StageView>(); stub = new HITViewStub(workType, data, this); this.job = job; cancelBtn.IsEnabled = true; }