Exemplo n.º 1
0
 public void UpdateFromLocalData(CFullMemberInfo localMemberInfo)
 {
     local_member_id = (int)localMemberInfo.IDMember;
     name            = localMemberInfo.Name;
     surname         = localMemberInfo.Surname;
     rang            = localMemberInfo.InitGradeForShow;
     age             = localMemberInfo.YearOfBirth;
     team            = localMemberInfo.SecondCol;
 }
Exemplo n.º 2
0
        public void SetMember(CFullMemberInfo memberInfo, int index)
        {
            int row = index + FIRST_DATA_ROW_INDEX;

            m_wshStartList.Cells[row, NUMBER_COLUMN_INDEX].Value            = index + 1;
            m_wshStartList.Cells[row, NAME_AND_LASTNAME_COLUMN_INDEX].Value = memberInfo.SurnameAndName;
            m_wshStartList.Cells[row, TEAM_COLUMN_INDEX].Value  = memberInfo.SecondCol;
            m_wshStartList.Cells[row, YoB_COLUMN_INDEX].Value   = memberInfo.YearOfBirthForShow;
            m_wshStartList.Cells[row, GRADE_COLUMN_INDEX].Value = memberInfo.InitGradeForShow;
        }
Exemplo n.º 3
0
        public EditMemberViewModel(CFullMemberInfo memberInfo, long groupId, CCompSettings compSettings)
        {
            MemberInDB = DBManagerApp.m_Entities.members.FirstOrDefault(arg => arg.id_member == memberInfo.IDMember);
            PartInDB   = MemberInDB.participations.FirstOrDefault(arg => arg.Group == groupId);

            Name              = memberInfo.Name;
            Surname           = memberInfo.Surname;
            SecondColumn      = memberInfo.SecondCol;
            SecondColNameType = compSettings.SecondColNameType;
            YearOfBirth       = memberInfo.YearOfBirth;
            Grade             = (enGrade?)memberInfo.InitGrade;
        }