예제 #1
0
        private void RemoveAllSkillsCommand_Execute(object parameter)
        {
            foreach (var item in MemeberSkills)
            {
                AllSkills.Add(item);
            }

            MemeberSkills.Clear();
        }
예제 #2
0
        private void AddAllSkillsCommand_Execute(object parameter)
        {
            foreach (var item in AllSkills)
            {
                MemeberSkills.Add(item);
            }

            AllSkills.Clear();
        }
예제 #3
0
        private void RemoveSkillCommand_Execute(object parameter)
        {
            foreach (var item in SelectedMemberSkills)
            {
                AllSkills.Add(item);
            }

            SelectedMemberSkills.Clear();

            foreach (var item in AllSkills)
            {
                MemeberSkills.Remove(item);
            }
        }
예제 #4
0
 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 { }
 }
예제 #5
0
 private void AddEntityCommand_Execute(object parameter)
 {
     crewMember.Skills.AddRange(MemeberSkills.ToList());
     Client.AddEntity(crewMember);
     crewMember = new CrewMember();
 }