コード例 #1
0
 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;
 }
コード例 #2
0
 public Model.Task ModifyTask(Model.Task task)
 {
     return(ModifyTask(task.Id, task.Metadata));
 }