private void RemoveAllSkillsCommand_Execute(object parameter) { foreach (var item in MemeberSkills) { AllSkills.Add(item); } MemeberSkills.Clear(); }
private void AddAllSkillsCommand_Execute(object parameter) { foreach (var item in AllSkills) { MemeberSkills.Add(item); } AllSkills.Clear(); }
private void RemoveSkillCommand_Execute(object parameter) { foreach (var item in SelectedMemberSkills) { AllSkills.Add(item); } SelectedMemberSkills.Clear(); foreach (var item in AllSkills) { MemeberSkills.Remove(item); } }
private void RefreshLists() { MemeberSkills.Clear(); crewMember = Client.GetEntityById(EntityType.CrewMember, gid) as CrewMember; foreach (var item in crewMember.Skills) { MemeberSkills.Add(item); AllSkills.Remove(item); } RaisePropertyChanged("FirstName"); RaisePropertyChanged("FamilyName"); RaisePropertyChanged("Email"); RaisePropertyChanged("Phone"); RaisePropertyChanged("Username"); RaisePropertyChanged("Password"); RaisePropertyChanged("UserType"); try { Crew = Client.GetEntityById(EntityType.Crew, crewMember.Crew) as Crew; } catch { } }
private void AddEntityCommand_Execute(object parameter) { crewMember.Skills.AddRange(MemeberSkills.ToList()); Client.AddEntity(crewMember); crewMember = new CrewMember(); }