Ejemplo n.º 1
0
 public void RemoveSkaterFromNsos(NSOMember skater)
 {
     try
     {
         var member = this.Nsos.Where(x => x.SkaterId == skater.SkaterId).FirstOrDefault();
         this.Nsos.Remove(member);
     }
     catch (Exception e)
     {
         ErrorViewModel.Save(e, this.GetType(), ErrorGroupEnum.UI);
     }
 }
Ejemplo n.º 2
0
 private static void LoadPictureOfMemberFromSavedGame(NSOMember member)
 {
     member.SkaterPictureLocation = LoadPictureOfMemberFromSavedGame(member.SkaterPictureLocation, member.SkaterId, member.SkaterPictureCompressed);
     member.SkaterPictureCompressed = null;
 }
Ejemplo n.º 3
0
 public void AddOfficial(string skaterName, NSOTypeEnum position, string league, CertificationLevelEnum cert)
 {
     try
     {
         NSOMember teamMember = new NSOMember();
         teamMember.SkaterId = Guid.NewGuid();
         teamMember.SkaterName = skaterName;
         teamMember.League = league;
         teamMember.Cert = cert;
         teamMember.RefereeType = position;
         this.Nsos.Add(teamMember);
     }
     catch (Exception e)
     {
         ErrorViewModel.Save(e, this.GetType(), ErrorGroupEnum.UI);
     }
 }