public CustomStopwatch(Api.Model.Task task, TimeSpan elapsed = new TimeSpan()) { this._elapsed = elapsed; this._timer = new Timer(1000); this._timer.AutoReset = true; this._timer.Elapsed += (s, e) => OnPropertyChanged(nameof(Elapsed)); this.Task = task; }
public Model.Task ModifyTask(Model.Task task) { return(ModifyTask(task.Id, task.Metadata)); }