private void Init() { this.SubTasks = new ObservableCollection <MyTask>(); this.Id = KeyGenerator.CreateIntegerKey(this); this.CreateTime = DateTime.Now; this.Status = TaskStatus.ToDo; //this.SubTasks = new List<MyTask>(); }
private MyProject() { this.CreateTime = DateTime.Now; this.Id = KeyGenerator.CreateIntegerKey(this).ToString(); }