public Props(TaskDetails task, Action <TaskDetails> onChange, Action onRemove) : base(task.Id) { this.CtorSet(_ => _.Task, task); this.CtorSet(_ => _.OnChange, onChange); this.CtorSet(_ => _.OnRemove, onRemove); }
public TaskCard(TaskDetails task, Action <TaskDetails> onChange, Action onRemove) : base(new Props(task, onChange, onRemove)) { }