コード例 #1
0
        public override IEditModel <ScienceRecordInfo> Create(ScienceRecordInfo model, ViewModelContext context)
        {
            var editModel = CopyCstor.New <ScienceRecordEditModel, IScienceRecordWritable> (model);

            editModel.Context = context;
            editModel.ScienceRecordType_Type = model.ScienceRecordType.Type;
            return(editModel);
        }
コード例 #2
0
        public override IEditModel <OccupiedPositionInfo> Create(OccupiedPositionInfo model, ViewModelContext context)
        {
            var editModel = CopyCstor.New <OccupiedPositionEditModel, IOccupiedPositionWritable> (model);

            editModel.Context           = context;
            editModel.PositionTitle     = model.Position.Title;
            editModel.DivisionTitle     = model.Division.Title;
            editModel.DivisionStartDate = model.Division.StartDate;
            editModel.DivisionEndDate   = model.Division.EndDate;

            return(editModel);
        }
コード例 #3
0
 public override ScienceRecordInfo CreateModel()
 {
     return(CopyCstor.New <ScienceRecordInfo, IScienceRecordWritable> (this));
 }
コード例 #4
0
 public override OccupiedPositionInfo CreateModel()
 {
     return(CopyCstor.New <OccupiedPositionInfo, IOccupiedPositionWritable> (this));
 }