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))); }
protected virtual void AfterTaskAdd(Task task) { task.Owner = this; task.Listeners.Update.Owner = this; task.DirectEvents.Update.Owner = this; }