Ejemplo n.º 1
0
 public void Remove(PhotoSession session)
 {
     PhotoSession existingSession = GetSession(session.Id);
     if (existingSession != null)
     {
         ImageStorage.RemovePhoto(existingSession.PhotoFileName);
         PhotoSessionCollection.Remove(existingSession);
     }
 }
Ejemplo n.º 2
0
 public void CopyId(PhotoSession other)
 {
     if (other != null)
     {
         Id = other.Id;
         Copy(other);
     }
 }
Ejemplo n.º 3
0
 public void Add(PhotoSession session)
 {
     PhotoSession existingSession = GetSession(session.Id);
     if (existingSession == null)
     {
         PhotoSessionCollection.Insert(0, session);
     }
 }
Ejemplo n.º 4
0
 public void Copy(PhotoSession other)
 {
     if (other != null)
     {
         Date = other.Date;
         Weight = other.Weight;
         Fat = other.Fat;
         Photo = other.Photo;
         PhotoFileName = other.PhotoFileName;
     }
 }