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); } }
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); } }
private static void LoadPictureOfMemberFromSavedGame(RefereeMember member) { member.SkaterPictureLocation = LoadPictureOfMemberFromSavedGame(member.SkaterPictureLocation, member.SkaterId, member.SkaterPictureCompressed); member.SkaterPictureCompressed = null; }