示例#1
0
 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;
 }
示例#2
0
        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;
        }