コード例 #1
0
 public void RemoveSkaterFromRefs(RefereeMember skater)
 {
     try
     {
         var member = this.Referees.Where(x => x.SkaterId == skater.SkaterId).FirstOrDefault();
         this.Referees.Remove(member);
     }
     catch (Exception e)
     {
         ErrorViewModel.Save(e, this.GetType(), ErrorGroupEnum.UI);
     }
 }
コード例 #2
0
 public void AddOfficial(string skaterName, RefereeTypeEnum position, string league, CertificationLevelEnum Cert)
 {
     try
     {
         RefereeMember teamMember = new RefereeMember();
         teamMember.SkaterId = Guid.NewGuid();
         teamMember.SkaterName = skaterName;
         teamMember.Cert = Cert;
         teamMember.League = league;
         teamMember.RefereeType = position;
         this.Referees.Add(teamMember);
     }
     catch (Exception e)
     {
         ErrorViewModel.Save(e, this.GetType(), ErrorGroupEnum.UI);
     }
 }
コード例 #3
0
 private static void LoadPictureOfMemberFromSavedGame(RefereeMember member)
 {
     member.SkaterPictureLocation = LoadPictureOfMemberFromSavedGame(member.SkaterPictureLocation, member.SkaterId, member.SkaterPictureCompressed);
     member.SkaterPictureCompressed = null;
 }