Пример #1
0
 /// <summary>
 /// Set or Unset Stress's Icon function
 /// Call by an Event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="f"></param>
 private void iconBadReflex(object sender, LongFeedback f)
 {
     if (f.display)
     {
         StressOpacity = maxOpacity;
     }
     else
     {
         StressOpacity = minOpacity;
     }
 }
Пример #2
0
 /// <summary>
 /// Set or Unset Boring's Icon function
 /// Call by an Event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="f"></param>
 private void iconBoringVoice(object sender, LongFeedback f)
 {
     if (f.display)
     {
         BoringOpacity = maxOpacity;
     }
     else
     {
         BoringOpacity = minOpacity;
     }
 }
        public void feedbackEventDisplay_Emotion(LongFeedback emotionFb)
        {
            switch (emotionFb.feedback)
            {
            case "Happy":
                feedbackDisplay_Happy();
                break;

            case "Surprised":
                feedbackDisplay_Surprised();
                break;

            default:
                break;
            }
        }
Пример #4
0
        /// <summary>
        /// Set Emotion's Icon function
        /// Call by an Event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="f"></param>
        private void iconEmotion(object sender, LongFeedback f)
        {
            EmotionText = f.feedback;
            if (EmotionText == "Happy")
            {
                EmotionSource = "Icons/happy.png";
            }

            else if (EmotionText == "Sad")
            {
                EmotionSource = "Icons/sad.png";
            }

            else if (EmotionText == "Surprised")
            {
                EmotionSource = "Icons/surprised.png";
            }

            else if (EmotionText == "Frightened")
            {
                EmotionSource = "Icons/frightened.png";
            }

            else if (EmotionText == "Angry")
            {
                EmotionSource = "Icons/angry.png";
            }

            else if (EmotionText == "Disgusted")
            {
                EmotionSource = "Icons/disgusted.png";
            }
            else
            {
                EmotionSource = "Icons/neutral.png";
            }

            if (f.display)
            {
                EmotionOpacity = maxOpacity;
            }
            else
            {
                EmotionOpacity = minOpacity;
            }
        }