public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (MailItem.MailState == MailState.Unread)
            {
                if (IconMailUnread != null)
                {
                    IconMailUnread.Update(gameTime);
                }
                else if (MailItem.MailState == MailState.Read)
                {
                    if (IconMailRead != null)
                    {
                        IconMailRead.Update(gameTime);
                    }
                }
            }

            if (LabelFrom != null)
            {
                LabelFrom.Update(gameTime);
            }

            if (LabelSubject != null)
            {
                LabelSubject.Update(gameTime);
            }
        }
        public override void Draw(GameTime gameTime, Renderer renderer)
        {
            base.Draw(gameTime, renderer);

            if (MailItem.MailState == MailState.Unread)
            {
                if (IconMailUnread != null)
                {
                    IconMailUnread.Draw(gameTime, renderer);
                }
                else if (MailItem.MailState == MailState.Read)
                {
                    if (IconMailRead != null)
                    {
                        IconMailRead.Draw(gameTime, renderer);
                    }
                }
            }

            if (LabelFrom != null)
            {
                LabelFrom.Draw(gameTime, renderer);
            }

            if (LabelSubject != null)
            {
                LabelSubject.Draw(gameTime, renderer);
            }
        }
 private void Dispose(bool disposing)
 {
     if (IconMailUnread != null)
     {
         IconMailUnread.Dispose();
     }
     if (IconMailRead != null)
     {
         IconMailRead.Dispose();
     }
     if (LabelFrom != null)
     {
         LabelFrom.Dispose();
     }
     if (LabelSubject != null)
     {
         LabelSubject.Dispose();
     }
 }