Example #1
0
 public void AddTask(Task task)
 {
     RequestManager.EnsureDirectEvent();
     task.Owner = this;
     task.Listeners.Update.Owner = this;
     task.DirectEvents.Update.Owner = this;
     this.Call("addTask", new JRawValue(new ClientConfig().Serialize(task)));
 }
Example #2
0
 protected virtual void AfterTaskAdd(Task task)
 {
     task.Owner = this;
     task.Listeners.Update.Owner = this;
     task.DirectEvents.Update.Owner = this;
 }