Ejemplo n.º 1
0
        public EditableExpressionModel SerializeEditableExpression(Aims.Expressions.EditableExpression expression)
        {
            var result = new EditableExpressionModel(
                expression.DefaultValue,
                expression.InitialValue,
                expression.EditedValue,
                expression.Comment,
                this.SerializeValidationIssues(expression.Validate()),
                expression.LastOneModified
                );

            return(result);
        }
Ejemplo n.º 2
0
 public void PopulateEditableExpression(Aims.Expressions.EditableExpression expression, EditableExpressionModel model)
 {
     expression.InitialValue    = model.InitialValue;
     expression.EditedValue     = model.EditedValue;
     expression.Comment         = model.Comment;
     expression.LastOneModified = model.IsLastEdited;
 }