public MemoDetail(Model.Internal.Planning planning) { InitializeComponent(); this._uow = new UnitOfWork(); this._memo = new PlanningMemo(this._uow); this._planning = planning.Id; this.dteMemoDate.DateTime = DateTime.Today; }
public MemoDetail(PlanningMemo memo) { InitializeComponent(); this._uow = new UnitOfWork(); this._memo = new XPQuery<PlanningMemo>(this._uow).FirstOrDefault(q => q.Id == memo.Id); this._planning = this._memo.Planning; FillDetails(); this.dteMemoDate.DateTime = DateTime.Today; }