示例#1
0
        private void switchUser()
        {
            m_LoggedInUser = AppManager.GetInstance.LoggedInUser;
            m_ZodiacMatch  = new ZodiacSignAdapter(m_LoggedInUser.Birthday);
            try
            {
                pictureBox1.LoadAsync(m_ZodiacMatch.PictureUrl);
            }
            catch (Exception ex)
            {
                MessageBox.Show("Could not load picture of zodiac sign.");
                throw ex;
            }

            userSignNameLabel.Text = m_ZodiacMatch.Name;
        }
示例#2
0
 public void UpdateBestMatchedSign()
 {
     BestMatchedSign = new ZodiacSignAdapter(ZodiacSign.GetRandomSign());
 }