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); } } }
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); } } }
private void FixupOperator(Operator previousValue) { if (previousValue != null && ReferenceEquals(previousValue.PersonalSkill, this)) { previousValue.PersonalSkill = null; } if (Operator != null) { Operator.PersonalSkill = this; } }
/// <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; }
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); } } }
/// <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; }
public override void Save(object param) { OperatorDataService.AttachModel(_model); _model = OperatorDataService.GetSingle(_model.Id); OnPropertyChanged("ModifiedBy");OnPropertyChanged("ModifiedDate");Mode = ModificationStatus.Saved; }