Ejemplo n.º 1
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 GeneralSkillVM(PersonalSkill entity, AccessType access, GeneralSkillDataService dataService)
			: base(access)
		{
			InitializeData(dataService);
			_model = entity;
		}
Ejemplo n.º 2
0
		public override void Save(object param)
		{
			GeneralSkillDataService.AttachModel(_model);
			_model = GeneralSkillDataService.GetSingle(_model.Id); OnPropertyChanged("ModifiedBy"); OnPropertyChanged("ModifiedDate"); Mode = ModificationStatus.Saved;
		}
Ejemplo n.º 3
0
     private void FixupPersonalSkill(PersonalSkill previousValue)
     {
         if (previousValue != null && ReferenceEquals(previousValue.Operator, this))
         {
             previousValue.Operator = null;
         }
 
         if (PersonalSkill != null)
         {
             PersonalSkill.Operator = this;
         }
     }