Ejemplo n.º 1
0
     private void FixupOperator(Operator previousValue)
     {
         if (previousValue != null && previousValue.OperatorStoppageReports.Contains(this))
         {
             previousValue.OperatorStoppageReports.Remove(this);
         }
 
         if (Operator != null)
         {
             if (!Operator.OperatorStoppageReports.Contains(this))
             {
                 Operator.OperatorStoppageReports.Add(this);
             }
         }
     }
Ejemplo n.º 2
0
     private void FixupOperator(Operator previousValue)
     {
         if (previousValue != null && previousValue.EducatingOperators.Contains(this))
         {
             previousValue.EducatingOperators.Remove(this);
         }
 
         if (Operator != null)
         {
             if (!Operator.EducatingOperators.Contains(this))
             {
                 Operator.EducatingOperators.Add(this);
             }
         }
     }
Ejemplo n.º 3
0
     private void FixupOperator(Operator previousValue)
     {
         if (previousValue != null && ReferenceEquals(previousValue.PersonalSkill, this))
         {
             previousValue.PersonalSkill = null;
         }
 
         if (Operator != null)
         {
             Operator.PersonalSkill = this;
         }
     }
Ejemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OperatorInfoVM"/> class from the model.
 /// </summary>
 /// <param name="entity">The model.</param>
 public OperatorInfoVM(Operator entity)
 {
     _model = entity;
 }
Ejemplo n.º 5
0
     private void FixupOperator(Operator previousValue)
     {
         if (previousValue != null && previousValue.ActivitySkills.Contains(this))
         {
             previousValue.ActivitySkills.Remove(this);
         }
 
         if (Operator != null)
         {
             if (!Operator.ActivitySkills.Contains(this))
             {
                 Operator.ActivitySkills.Add(this);
             }
         }
     }
Ejemplo n.º 6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProductVM"/> class from the model.
        /// </summary>
        /// <param name="entity">The model.</param>
        /// <param name="access"></param>
        /// <param name="dataService"></param>
        public OperatorVM(Operator entity, AccessType access, OperatorDataService dataService)
            : base(access)
        {
            InitializeData(dataService);
            _model = entity;

        }
Ejemplo n.º 7
0
 public override void Save(object param)
 {
     OperatorDataService.AttachModel(_model);
     _model = OperatorDataService.GetSingle(_model.Id); OnPropertyChanged("ModifiedBy");OnPropertyChanged("ModifiedDate");Mode = ModificationStatus.Saved;
 }