예제 #1
0
        public void AddHomeScreenButton()
        {
            _homeBtn.Visible = true;
            UI_General._labelWhite.Height = Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.64);
            int containerHeight = UI_General._labelWhite.Height;
            int containerWidth  = UI_General._labelWhite.Width;

            int home_x = Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.95);
            int home_y = Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.95 - _homeBtn.Height);

            _homeBtn.Location = new Point(home_x, home_y);
        }
예제 #2
0
 private void HideEvaluationElements()
 {
     UI_General.GetLabelGray().Visible = false;
     _labelForFeedbackPercentages.Visible = false;
     _pictureBoxFeedbackFavorites.Visible = false;
     _labelBarGraphOption1.Visible        = false;
     _labelBarGraphOption2.Visible        = false;
     _labelBarGraphOption3.Visible        = false;
     _labelBarGraphOption4.Visible        = false;
     _labelBarGraphOption5.Visible        = false;
     _labelFeedbackQuestion.BackColor     = Color.Transparent;
     _labelFeedbackQuestion.ForeColor     = _labelFeedbackQuestionForeColor;
 }
 private void HideEvaluationElements()
 {
     _labelFeedbackMoreInfo.Visible           = false;
     _textBoxFeedbackMoreInfo.Visible         = false;
     _labelFeedbackFavorites.Visible          = false;
     _pictureBoxFeedbackFavorites.Visible     = false;
     _labelFeedbackWhatOthersHadToSay.Visible = false;
     _labelBarGraphOption1.Visible            = false;
     _labelBarGraphOption2.Visible            = false;
     _labelBarGraphOption3.Visible            = false;
     _labelBarGraphOption4.Visible            = false;
     _labelBarGraphOption5.Visible            = false;
     UI_General.GetLabelGray().Visible = false;
     _labelFeedbackQuestion.BackColor = Color.Transparent;
     _labelFeedbackQuestion.ForeColor = _labelFeedbackQuestionForeColor;
     //_labelFeedbackQuestion.Visible = false;
 }
 private void ShowEvaluationElements()
 {
     _labelFeedbackMoreInfo.Visible           = true;
     _textBoxFeedbackMoreInfo.Visible         = true;
     _labelFeedbackFavorites.Visible          = true;
     _pictureBoxFeedbackFavorites.Visible     = true;
     _labelFeedbackWhatOthersHadToSay.Visible = true;
     _labelBarGraphOption1.Visible            = true;
     _labelBarGraphOption2.Visible            = true;
     _labelBarGraphOption3.Visible            = true;
     _labelBarGraphOption4.Visible            = true;
     _labelBarGraphOption5.Visible            = true;
     _labelFeedbackQuestion.Visible           = true;
     UI_General.GetLabelGray().Visible = true;
     _labelFeedbackQuestion.BackColor = UI_General.GetLabelGrayBackColor();
     _labelFeedbackQuestion.ForeColor = Color.FromArgb(45, 45, 45);
 }
예제 #5
0
        /// <summary>
        /// Constructor for the Feedback UI which takes in the list of questions as its only parameter
        /// </summary>
        /// <param name="questions"></param>

        public UI_Feedback()
        {
            this.DoubleBuffered = true;
            InitializeComponent();
            //Create a blank form to work with
            UI_General.SetGeneralElements(this);
            UpdateFeedbackID();
            _yOrNoIndexes = GetYorNoIndexes();
            // Set all the labels/elements needed
            SetElements();
            AddControls();
            BringControlsToFront();
            AddEventHandlers();
            //Begin the Feedback
            _numFeedbackQs = GetNumFeedbackQs();
            HideEvaluationElements();
            StartFeedback();
        }
예제 #6
0
        private void ClearScreenForFeedbackSummary()
        {
            _labelFeedbackQuestion.Visible = false;
            UI_General.GetLabelGray().Visible = true;
            _labelFeedbackQuestion.BackColor = UI_General.GetLabelGrayBackColor();
            //Change colour of feedback question so it is visible on the white screen
            _labelFeedbackQuestion.ForeColor = Color.FromArgb(45, 45, 45);
            HideQandAElements();
            _fwdBtnFeedback.Visible  = true;
            _backBtnFeedback.Visible = true;

            _pictureBoxFeedbackFavorites.Visible = false;
            _labelBarGraphOption1.Visible        = false;
            _labelBarGraphOption2.Visible        = false;
            _labelBarGraphOption3.Visible        = false;
            _labelBarGraphOption4.Visible        = false;
            _labelBarGraphOption5.Visible        = false;
            _labelForFeedbackPercentages.Visible = false;
        }
예제 #7
0
        public void SetQandAElements()
        {
            // QUESTION & ANSWER - ELEMENTS

            int    screenWidth  = Convert.ToInt32(UI_General.GetSizeScreen().Width);
            int    screenHeight = Convert.ToInt32(UI_General.GetSizeScreen().Height);
            int    buttonSize   = 200;
            double spacing      = (screenWidth - 5 * buttonSize) / 6;

            _buttonOption0 = new Button();
            _buttonOption1 = new Button();
            _buttonOption2 = new Button();
            _buttonOption3 = new Button();
            _buttonOption4 = new Button();

            _buttonOption0.Size      = _buttonOption1.Size = _buttonOption2.Size = _buttonOption3.Size = _buttonOption4.Size = new Size(buttonSize, buttonSize);
            _buttonOption0.BackColor = _buttonOption1.BackColor = _buttonOption2.BackColor = _buttonOption3.BackColor = _buttonOption4.BackColor = _buttonOptionBackColor;
            _buttonOption0.ForeColor = _buttonOption1.ForeColor = _buttonOption2.ForeColor = _buttonOption3.ForeColor = _buttonOption4.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption0.Font      = _buttonOption1.Font = _buttonOption2.Font = _buttonOption3.Font = _buttonOption4.Font = UI_General.GetLabelGrayFont();
            _buttonOption0.Top      += 25 + Convert.ToInt16((screenHeight - _buttonOption0.Height) / 2);
            _buttonOption0.Left     += Convert.ToInt16(spacing);
            _buttonOption0.TextAlign = _buttonOption1.TextAlign = _buttonOption2.TextAlign = _buttonOption3.TextAlign = _buttonOption4.TextAlign = ContentAlignment.TopCenter;


            _buttonOption1.Top  += 25 + Convert.ToInt16((screenHeight - _buttonOption0.Height) / 2);
            _buttonOption1.Left += Convert.ToInt16(2 * spacing + buttonSize);


            _buttonOption2.Top  += 25 + Convert.ToInt16((screenHeight - _buttonOption0.Height) / 2);
            _buttonOption2.Left += Convert.ToInt16(3 * spacing + 2 * buttonSize);


            _buttonOption3.Top  += 25 + Convert.ToInt16((screenHeight - _buttonOption0.Height) / 2);
            _buttonOption3.Left += Convert.ToInt16(4 * spacing + 3 * buttonSize);


            _buttonOption4.Top  += 25 + Convert.ToInt16((screenHeight - _buttonOption0.Height) / 2);
            _buttonOption4.Left += Convert.ToInt16(5 * spacing + 4 * buttonSize);
        }
예제 #8
0
        public void ShowEvaluationForQWithTwoAnswers(int currentSummaryQuestion)
        {
            Debug.Print("Now here");

            ClearScreenForFeedbackSummary();
            DatabaseConnection db = new DatabaseConnection();

            List <string>[] questions = db.SelectFromFeedbackQs("SELECT * FROM feedbackqs");

            // Array to store percentages
            Dictionary <string, float> data = new Dictionary <string, float>();

            data = GetTwoOptionQData(currentSummaryQuestion);

            PieChart A = new PieChart();
            List <Tuple <string, float> > B = new List <Tuple <string, float> >();

            B.Add(new Tuple <string, float>("Ja", data["Ja"]));
            B.Add(new Tuple <string, float>("Nein", data["Nein"]));

            Bitmap pieChart = A.DrawPieChart(B);

            _pictureBoxFeedbackFavorites.BackgroundImage = pieChart;
            _pictureBoxFeedbackFavorites.Visible         = true;

            _labelBarGraphOption1.Visible = true;
            _labelBarGraphOption2.Visible = true;

            _labelFeedbackQuestion.Text    = questions[2][_currentSummaryQ].ToString();
            _labelFeedbackQuestion.Visible = true;

            _labelBarGraphOption1.Size      = _labelBarGraphOption2.Size = _labelBarGraphOption3.Size = _labelBarGraphOption4.Size = _labelBarGraphOption5.Size = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.122), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption1.TextAlign = _labelBarGraphOption2.TextAlign = _labelBarGraphOption3.TextAlign = _labelBarGraphOption4.TextAlign = _labelBarGraphOption5.TextAlign = ContentAlignment.MiddleRight;
            _labelBarGraphOption1.Text      = "Ja";
            _labelBarGraphOption2.Text      = "Nein";

            _labelForFeedbackPercentages.Visible = true;


            string[] answersQuestion = { "Ja", "Nein" };
            string[] votes           = { Convert.ToInt16(data["Ja"] * 100) + "%", Convert.ToInt16(data["Nein"] * 100) + "%" };
            String   s = ""; //String.Format("{1,-10} {0,-18}\n\n", "Optionen", "Stimmen in %");

            for (int index = 0; index < answersQuestion.Length; index++)
            {
                s += String.Format("{1,-10} {0,-18:N0}\n\n", answersQuestion[index], votes[index]);
            }

            _labelForFeedbackPercentages.Text = s;
        }
예제 #9
0
        public void ShowEvaluationForFavourites()
        {
            ClearScreenForFeedbackSummary();
            DatabaseConnection db = new DatabaseConnection();

            List <string>[] questions = db.SelectFromFeedbackQs("SELECT * FROM feedbackqs");

            // Array to store percentages
            Dictionary <string, float> data = new Dictionary <string, float>();

            data = GetFavoritesData();

            PieChart A = new PieChart();
            List <Tuple <string, float> > B = new List <Tuple <string, float> >();

            B.Add(new Tuple <string, float>("Alexa", data["Alexa"]));
            B.Add(new Tuple <string, float>("NetAtmo", data["NetAtmo"]));
            B.Add(new Tuple <string, float>("Digital Boardroom", data["Digital Boardroom"]));
            B.Add(new Tuple <string, float>("55 Zoll-Tisch", data["55 Zoll-Tisch"]));
            B.Add(new Tuple <string, float>("Welcome-Screen", data["Welcome-Screen"]));
            Bitmap pieChart = A.DrawPieChart(B);

            _pictureBoxFeedbackFavorites.BackgroundImage = pieChart;
            _pictureBoxFeedbackFavorites.Visible         = true;

            _labelBarGraphOption1.Visible  = true;
            _labelBarGraphOption2.Visible  = true;
            _labelBarGraphOption3.Visible  = true;
            _labelBarGraphOption4.Visible  = true;
            _labelBarGraphOption5.Visible  = true;
            _labelFeedbackQuestion.Text    = questions[2][_currentSummaryQ].ToString();
            _labelFeedbackQuestion.Visible = true;

            _labelBarGraphOption1.Size      = _labelBarGraphOption2.Size = _labelBarGraphOption3.Size = _labelBarGraphOption4.Size = _labelBarGraphOption5.Size = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.122), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption1.TextAlign = _labelBarGraphOption2.TextAlign = _labelBarGraphOption3.TextAlign = _labelBarGraphOption4.TextAlign = _labelBarGraphOption5.TextAlign = ContentAlignment.MiddleRight;
            _labelBarGraphOption1.Text      = "Alexa";
            _labelBarGraphOption2.Text      = "NetAtmo";
            _labelBarGraphOption3.Text      = "Digital Boardroom";
            _labelBarGraphOption4.Text      = "55 Zoll-Tisch";
            _labelBarGraphOption5.Text      = "Welcome-Screen";

            _labelForFeedbackPercentages.Visible = true;


            string[] answersQuestion1 = { "Alexa", "NetAtmo", "Digital Boardroom", "55 Zoll-Tisch", "Welcome-Screen" };
            string[] votes            = { Convert.ToInt16(data["Alexa"] * 100) + "%",  Convert.ToInt16(data["NetAtmo"] * 100) + "%",
                                          Convert.ToInt16(data["Digital Boardroom"] * 100) + "%", Convert.ToInt16(data["55 Zoll-Tisch"] * 100) + "%",
                                          Convert.ToInt16(data["Welcome-Screen"] * 100) + "%" };
            String   s = ""; //String.Format("{1,-10} {0,-18}\n\n", "Optionen", "Stimmen in %");

            for (int index = 0; index < answersQuestion1.Length; index++)
            {
                if (index < answersQuestion1.Length - 1)
                {
                    s += String.Format("{1,-10} {0,-18:N0}\n\n", answersQuestion1[index], votes[index]);
                }
                else
                {
                    s += String.Format("{1,-10} {0,-18:N0}", answersQuestion1[index], votes[index]);
                }
            }

            _labelForFeedbackPercentages.Text = s;
        }
예제 #10
0
        public void SetElements()
        {
            _labelForFeedbackPercentages           = new Label();
            _labelForFeedbackPercentages.BackColor = UI_General.GetLabelGrayBackColor();
            _labelForFeedbackPercentages.Cursor    = Cursors.No;
            _labelForFeedbackPercentages.ForeColor = UI_General.GetLabelGrayForeColor();
            _labelForFeedbackPercentages.Font      = _labelForFeedbackPercentagesFont;
            _labelForFeedbackPercentages.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.63), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.50));
            _labelForFeedbackPercentages.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.2), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.278));
            _labelForFeedbackPercentages.Text      = "";
            _labelForFeedbackPercentages.Visible   = false;



            _pictureBoxFeedbackFavorites           = new PictureBox();
            _pictureBoxFeedbackFavorites.BackColor = UI_General.GetLabelGrayBackColor();
            _pictureBoxFeedbackFavorites.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.4), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.50));
            _pictureBoxFeedbackFavorites.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.156), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.279));
            _pictureBoxFeedbackFavorites.Visible   = false;



            B.Add(new Tuple <string, float>("A", 12));
            B.Add(new Tuple <string, float>("A", 2));
            B.Add(new Tuple <string, float>("A", 6));
            B.Add(new Tuple <string, float>("A", 9));
            B.Add(new Tuple <string, float>("A", 7));

            _pictureBoxFeedbackFavorites.BackgroundImage = A.DrawPieChart(B);


            _labelBarGraphOption1           = new Label();
            _labelBarGraphOption1.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption1.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.21), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.51));
            _labelBarGraphOption1.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.16), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption1.Visible   = false;

            _labelBarGraphOption2           = new Label();
            _labelBarGraphOption2.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption2.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.21), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.56));
            _labelBarGraphOption2.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.016), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption2.Visible   = false;



            _labelBarGraphOption3           = new Label();
            _labelBarGraphOption3.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption3.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.21), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.61));
            _labelBarGraphOption3.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.076), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption3.Visible   = false;

            _labelBarGraphOption4           = new Label();
            _labelBarGraphOption4.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption4.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.21), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.66));
            _labelBarGraphOption4.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.122), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption4.Visible   = false;


            _labelBarGraphOption5           = new Label();
            _labelBarGraphOption5.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption5.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.21), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.71));
            _labelBarGraphOption5.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.092), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption5.Visible   = false;



            _labelFeedbackMoreInfo = new Label();

            // Feedback Question element
            _labelFeedbackQuestion           = new Label();
            _labelFeedbackQuestion.Font      = _labelFeedbackQuestionFont;
            _labelFeedbackQuestion.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.75), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.14));
            _labelFeedbackQuestion.Text      = "";
            _labelFeedbackQuestion.TextAlign = ContentAlignment.MiddleCenter;
            _labelFeedbackQuestion.Top      += Convert.ToInt32(_screenHeight * 0.25);
            _labelFeedbackQuestion.Left     += 150;

            _backBtnFeedback                       = new PictureBox();
            _backBtnFeedback.BackColor             = Color.White;
            _backBtnFeedback.BackgroundImage       = new Bitmap(projectFolder + @"Pictures\general\back.png");
            _backBtnFeedback.BackgroundImageLayout = ImageLayout.Stretch;
            _backBtnFeedback.Size                  = new Size(100, 100);
            _backBtnFeedback.Top                  += Convert.ToInt16(UI_General.GetSizeScreen().Height * 0.5);
            _backBtnFeedback.Left                 += Convert.ToInt16(UI_General.GetSizeScreen().Width * 0.07);

            _fwdBtnFeedback                       = new PictureBox();
            _fwdBtnFeedback.BackColor             = Color.White;
            _fwdBtnFeedback.BackgroundImage       = new Bitmap(projectFolder + @"Pictures\general\forward.png");
            _fwdBtnFeedback.BackgroundImageLayout = ImageLayout.Stretch;
            _fwdBtnFeedback.Size                  = new Size(100, 100);
            _fwdBtnFeedback.Top                  += Convert.ToInt16(UI_General.GetSizeScreen().Height * 0.5);
            _fwdBtnFeedback.Left                 += Convert.ToInt16(UI_General.GetSizeScreen().Width * 0.83);

            _fwdBtnFeedback.Visible  = false;
            _backBtnFeedback.Visible = false;



            _homeBtn                       = new PictureBox();
            _homeBtn.BackColor             = Color.Transparent;
            _homeBtn.BackgroundImage       = new Bitmap(projectFolder + @"Pictures\general\home_icon.png");
            _homeBtn.Size                  = new Size(50, 50);
            _homeBtn.BackgroundImageLayout = ImageLayout.Stretch;

            _homeBtn.Visible = false;

            ShowStatistics.getUsedColors().Clear();
            SetQandAElements();
        }
예제 #11
0
        public UI_Feedback(List <Question> questions)
        {
            InitializeComponent();

            Click += NextFeedback_Click;

            UI_General.SetGeneralElements(this);
            UI_General.GetLabelGray().Click += NextFeedback_Click;
            _questions = questions;
            UpdateFeedbackID();
            // START---FEEDBACK

            #region
            // AUSWERTUNGS-ELEMENTE
            _labelFeedbackMoreInfo           = new Label();
            _labelFeedbackMoreInfo.BackColor = UI_General.GetLabelGrayBackColor();
            _labelFeedbackMoreInfo.Click    += NextFeedback_Click;
            _labelFeedbackMoreInfo.ForeColor = UI_General.GetLabelGrayForeColor();
            _labelFeedbackMoreInfo.Font      = UI_General.GetLabelGrayFont();
            _labelFeedbackMoreInfo.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.698), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.40));
            _labelFeedbackMoreInfo.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.16), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.04));
            _labelFeedbackMoreInfo.Text      = _labelFeedbackMoreInfoText;
            _labelFeedbackMoreInfo.Visible   = false;
            Controls.Add(_labelFeedbackMoreInfo);

            _textBoxFeedbackMoreInfo           = new RichTextBox();
            _textBoxFeedbackMoreInfo.BackColor = UI_General.GetLabelGrayBackColor();
            _textBoxFeedbackMoreInfo.Click    += NextFeedback_Click;
            _textBoxFeedbackMoreInfo.Cursor    = Cursors.No;
            _textBoxFeedbackMoreInfo.ForeColor = UI_General.GetLabelGrayForeColor();
            _textBoxFeedbackMoreInfo.Font      = _textBoxFeedbackMoreInfoFont;
            _textBoxFeedbackMoreInfo.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.7), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.50));
            _textBoxFeedbackMoreInfo.ReadOnly  = true;
            _textBoxFeedbackMoreInfo.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.2), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.278));
            _textBoxFeedbackMoreInfo.Text      = SetTextBoxFeedbackMoreInfoText();
            _textBoxFeedbackMoreInfo.Visible   = false;

            Controls.Add(_textBoxFeedbackMoreInfo);

            _labelFeedbackFavorites           = new Label();
            _labelFeedbackFavorites.BackColor = UI_General.GetLabelGrayBackColor();
            _labelFeedbackFavorites.Click    += NextFeedback_Click;
            _labelFeedbackFavorites.ForeColor = UI_General.GetLabelGrayForeColor();
            _labelFeedbackFavorites.Font      = UI_General.GetLabelGrayFont();
            _labelFeedbackFavorites.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.45), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.40));
            _labelFeedbackFavorites.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.2), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.04));
            _labelFeedbackFavorites.Text      = _labelFeedbackFavoritesText;
            _labelFeedbackFavorites.Visible   = false;

            Controls.Add(_labelFeedbackFavorites);

            _pictureBoxFeedbackFavorites           = new PictureBox();
            _pictureBoxFeedbackFavorites.BackColor = UI_General.GetLabelGrayBackColor();
            _pictureBoxFeedbackFavorites.Click    += Favourites_Click;
            _pictureBoxFeedbackFavorites.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.4), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.50));
            _pictureBoxFeedbackFavorites.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.156), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.278));
            _pictureBoxFeedbackFavorites.Visible   = false;

            PieChart A = new PieChart();
            List <Tuple <string, float> > B = new List <Tuple <string, float> >();

            B.Add(new Tuple <string, float>("A", 12));
            B.Add(new Tuple <string, float>("A", 2));
            B.Add(new Tuple <string, float>("A", 6));
            B.Add(new Tuple <string, float>("A", 9));
            B.Add(new Tuple <string, float>("A", 7));

            _pictureBoxFeedbackFavorites.BackgroundImage = A.DrawPieChart(B);

            Controls.Add(_pictureBoxFeedbackFavorites);

            _labelFeedbackWhatOthersHadToSay           = new Label();
            _labelFeedbackWhatOthersHadToSay.BackColor = UI_General.GetLabelGrayBackColor();
            _labelFeedbackWhatOthersHadToSay.Click    += NextFeedback_Click;
            _labelFeedbackWhatOthersHadToSay.ForeColor = UI_General.GetLabelGrayForeColor();
            _labelFeedbackWhatOthersHadToSay.Font      = UI_General.GetLabelGrayFont();
            _labelFeedbackWhatOthersHadToSay.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.40));
            _labelFeedbackWhatOthersHadToSay.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.8), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.04));
            _labelFeedbackWhatOthersHadToSay.Text      = _labelFeedbackWhatOthersHadToSayText;
            _labelFeedbackWhatOthersHadToSay.Visible   = false;

            Controls.Add(_labelFeedbackWhatOthersHadToSay);

            _labelBarGraphOption1           = new Label();
            _labelBarGraphOption1.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption1.Click    += NextFeedback_Click;
            _labelBarGraphOption1.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.51));
            _labelBarGraphOption1.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.16), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption1.Visible   = false;

            Controls.Add(_labelBarGraphOption1);

            _labelBarGraphOption2           = new Label();
            _labelBarGraphOption2.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption2.Click    += NextFeedback_Click;
            _labelBarGraphOption2.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.56));
            _labelBarGraphOption2.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.016), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption2.Visible   = false;

            Controls.Add(_labelBarGraphOption2);

            _labelBarGraphOption3           = new Label();
            _labelBarGraphOption3.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption3.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.61));
            _labelBarGraphOption3.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.076), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption3.Visible   = false;

            Controls.Add(_labelBarGraphOption3);

            _labelBarGraphOption4           = new Label();
            _labelBarGraphOption4.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption4.Click    += NextFeedback_Click;
            _labelBarGraphOption4.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.66));
            _labelBarGraphOption4.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.122), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption4.Visible   = false;

            Controls.Add(_labelBarGraphOption4);

            _labelBarGraphOption5           = new Label();
            _labelBarGraphOption5.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption5.Click    += NextFeedback_Click;
            _labelBarGraphOption5.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.71));
            _labelBarGraphOption5.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.092), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption5.Visible   = false;

            Controls.Add(_labelBarGraphOption5);

            _backBtnFeedback                       = new PictureBox();
            _backBtnFeedback.BackColor             = Color.Transparent;
            _backBtnFeedback.BackgroundImage       = new Bitmap(projectFolder + @"Pictures\back.png");
            _backBtnFeedback.BackgroundImageLayout = ImageLayout.Stretch;
            _backBtnFeedback.Size                  = new Size(100, 100);
            _backBtnFeedback.Top                  += 115;
            _backBtnFeedback.Click                += backBtn_Click;
            _fwdBtnFeedback                       = new PictureBox();
            _fwdBtnFeedback.BackColor             = Color.Transparent;
            _fwdBtnFeedback.BackgroundImage       = new Bitmap(projectFolder + @"Pictures\forward.png");
            _fwdBtnFeedback.BackgroundImageLayout = ImageLayout.Stretch;
            _fwdBtnFeedback.Size                  = new Size(100, 100);
            _fwdBtnFeedback.Top                  += 115;
            _fwdBtnFeedback.Left                 += 1150;
            _fwdBtnFeedback.Click                += fwdBtn_Click;
            _fwdBtnFeedback.Visible               = true;
            _backBtnFeedback.Visible              = true;

            Controls.Add(_backBtnFeedback);
            Controls.Add(_fwdBtnFeedback);

            // Feedback Question element
            _labelFeedbackQuestion           = new Label();
            _labelFeedbackQuestion.Click    += NextFeedback_Click;
            _labelFeedbackQuestion.Font      = _labelFeedbackQuestionFont;
            _labelFeedbackQuestion.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.75), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.14));
            _labelFeedbackQuestion.Text      = _labelFeedbackQuestionText;
            _labelFeedbackQuestion.TextAlign = ContentAlignment.MiddleCenter;
            _labelFeedbackQuestion.Top      += Convert.ToInt32(UI_General.GetSizeScreen().Height / 2) - 150;
            _labelFeedbackQuestion.Left     += 150;

            Controls.Add(_labelFeedbackQuestion);


            _labelBarGraphOption1.BringToFront();
            _labelBarGraphOption2.BringToFront();
            _labelBarGraphOption3.BringToFront();
            _labelBarGraphOption4.BringToFront();
            _labelBarGraphOption5.BringToFront();
            _labelFeedbackQuestion.BringToFront();
            _labelFeedbackWhatOthersHadToSay.BringToFront();
            _pictureBoxFeedbackFavorites.BringToFront();
            _labelFeedbackFavorites.BringToFront();
            _textBoxFeedbackMoreInfo.BringToFront();
            _labelFeedbackMoreInfo.BringToFront();


            ShowStatistics.getUsedColors().Clear();

            // AUSWERTUNGS-ELEMENTE --- ENDE

            // QUESTION & ANSWER - ELEMENTS
            HideEvaluationElements();

            _buttonOption0           = new Button();
            _buttonOption0.BackColor = _buttonOptionBackColor;
            _buttonOption0.Click    += Option_Click;
            _buttonOption0.ForeColor = UI_General.GetLabelGrayForeColor();

            _buttonOption0.Font      = UI_General.GetLabelGrayFont();
            _buttonOption0.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.06), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption0.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption0.Text      = "Option 1";
            _buttonOption0.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption0);

            _buttonOption1           = new Button();
            _buttonOption1.BackColor = _buttonOptionBackColor;
            _buttonOption1.Click    += Option_Click;
            _buttonOption1.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption1.Font      = UI_General.GetLabelGrayFont();
            _buttonOption1.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.244), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption1.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption1.Text      = "Option 2";
            _buttonOption1.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption1);

            _buttonOption2           = new Button();
            _buttonOption2.BackColor = _buttonOptionBackColor;
            _buttonOption2.Click    += Option_Click;
            _buttonOption2.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption2.Font      = UI_General.GetLabelGrayFont();
            _buttonOption2.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.428), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption2.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption2.Text      = "Option 3";
            _buttonOption2.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption2);

            _buttonOption3           = new Button();
            _buttonOption3.BackColor = _buttonOptionBackColor;
            _buttonOption3.Click    += Option_Click;
            _buttonOption3.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption3.Font      = UI_General.GetLabelGrayFont();
            _buttonOption3.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.612), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption3.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption3.Text      = "Option 4";
            _buttonOption3.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption3);

            _buttonOption4           = new Button();
            _buttonOption4.BackColor = _buttonOptionBackColor;
            _buttonOption4.Click    += Option_Click;
            _buttonOption4.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption4.Font      = UI_General.GetLabelGrayFont();
            _buttonOption4.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.796), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption4.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption4.Text      = "Option 5";
            _buttonOption4.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption4);

            _buttonOption0.BringToFront();
            _buttonOption1.BringToFront();
            _buttonOption2.BringToFront();
            _buttonOption3.BringToFront();
            _buttonOption4.BringToFront();
            #endregion
            StartFeedback();
        }
예제 #12
0
        private void Favourites_Click(object sender, EventArgs e)
        {
            ClearForFavourites();
            // Array to store percentages
            Dictionary <string, float> data = new Dictionary <string, float>();

            data = GetFavoritesData();

            PieChart A = new PieChart();
            List <Tuple <string, float> > B = new List <Tuple <string, float> >();

            B.Add(new Tuple <string, float>("Alexa", data["Alexa"]));
            B.Add(new Tuple <string, float>("NetAtmo", data["NetAtmo"]));
            B.Add(new Tuple <string, float>("Digital Boardroom", data["Digital Boardroom"]));
            B.Add(new Tuple <string, float>("55 Zoll-Tisch", data["55 Zoll-Tisch"]));
            B.Add(new Tuple <string, float>("Welcome-Screen", data["Welcome-Screen"]));
            Bitmap pieChart = A.DrawPieChart(B);

            _pictureBoxFeedbackFavorites.BackgroundImage = pieChart;
            _pictureBoxFeedbackFavorites.Visible         = true;

            _labelBarGraphOption1.Visible = true;
            _labelBarGraphOption2.Visible = true;
            _labelBarGraphOption3.Visible = true;
            _labelBarGraphOption4.Visible = true;
            _labelBarGraphOption5.Visible = true;

            _labelBarGraphOption1.Size      = _labelBarGraphOption2.Size = _labelBarGraphOption3.Size = _labelBarGraphOption4.Size = _labelBarGraphOption5.Size = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.122), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));
            _labelBarGraphOption1.TextAlign = _labelBarGraphOption2.TextAlign = _labelBarGraphOption3.TextAlign = _labelBarGraphOption4.TextAlign = _labelBarGraphOption5.TextAlign = ContentAlignment.MiddleRight;
            _labelBarGraphOption1.Text      = "Alexa";
            _labelBarGraphOption2.Text      = "NetAtmo";
            _labelBarGraphOption3.Text      = "Digital Boardroom";
            _labelBarGraphOption4.Text      = "55 Zoll-Tisch";
            _labelBarGraphOption5.Text      = "Welcome-Screen";

            _textBoxFeedbackMoreInfo.Visible = true;

            string[] answersQuestion1 = { "Alexa", "NetAtmo", "Digital Boardroom", "55 Zoll-Tisch", "Welcome-Screen" };
            string[] votes            = { data["Alexa"] * 100 + "%", data["NetAtmo"] * 100 + "%", data["Digital Boardroom"] * 100 + "%", data["55 Zoll-Tisch"] * 100 + "%", data["Welcome-Screen"] * 100 + "%" };
            String   s = ""; //String.Format("{1,-10} {0,-18}\n\n", "Optionen", "Stimmen in %");

            for (int index = 0; index < answersQuestion1.Length; index++)
            {
                if (index < answersQuestion1.Length - 1)
                {
                    s += String.Format("{1,-10} {0,-18:N0}\n\n", answersQuestion1[index], votes[index]);
                }
                else
                {
                    s += String.Format("{1,-10} {0,-18:N0}", answersQuestion1[index], votes[index]);
                }
            }

            _textBoxFeedbackMoreInfo.Text = s;
        }
예제 #13
0
        public UI_Feedback()
        {
            InitializeComponent();

            Click += NextQuestion_Click;

            UI_General.SetGeneralElements(this);
            UI_General.GetLabelGray().Click += NextQuestion_Click;


            // START---FEEDBACK

            // AUSWERTUNGS-ELEMENTE
            _labelFeedbackMoreInfo           = new Label();
            _labelFeedbackMoreInfo.BackColor = UI_General.GetLabelGrayBackColor();
            _labelFeedbackMoreInfo.Click    += NextQuestion_Click;
            _labelFeedbackMoreInfo.ForeColor = UI_General.GetLabelGrayForeColor();
            _labelFeedbackMoreInfo.Font      = UI_General.GetLabelGrayFont();
            _labelFeedbackMoreInfo.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.698), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.40));
            _labelFeedbackMoreInfo.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.16), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.04));
            _labelFeedbackMoreInfo.Text      = _labelFeedbackMoreInfoText;

            Controls.Add(_labelFeedbackMoreInfo);

            _textBoxFeedbackMoreInfo           = new RichTextBox();
            _textBoxFeedbackMoreInfo.BackColor = UI_General.GetLabelGrayBackColor();
            _textBoxFeedbackMoreInfo.Click    += NextQuestion_Click;
            _textBoxFeedbackMoreInfo.Cursor    = Cursors.No;
            _textBoxFeedbackMoreInfo.ForeColor = UI_General.GetLabelGrayForeColor();
            _textBoxFeedbackMoreInfo.Font      = _textBoxFeedbackMoreInfoFont;
            _textBoxFeedbackMoreInfo.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.7), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.50));
            _textBoxFeedbackMoreInfo.ReadOnly  = true;
            _textBoxFeedbackMoreInfo.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.2), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.278));
            _textBoxFeedbackMoreInfo.Text      = SetTextBoxFeedbackMoreInfoText();

            Controls.Add(_textBoxFeedbackMoreInfo);

            _labelFeedbackFavorites           = new Label();
            _labelFeedbackFavorites.BackColor = UI_General.GetLabelGrayBackColor();
            _labelFeedbackFavorites.Click    += NextQuestion_Click;
            _labelFeedbackFavorites.ForeColor = UI_General.GetLabelGrayForeColor();
            _labelFeedbackFavorites.Font      = UI_General.GetLabelGrayFont();
            _labelFeedbackFavorites.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.45), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.40));
            _labelFeedbackFavorites.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.2), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.04));
            _labelFeedbackFavorites.Text      = _labelFeedbackFavoritesText;

            Controls.Add(_labelFeedbackFavorites);

            _pictureBoxFeedbackFavorites           = new PictureBox();
            _pictureBoxFeedbackFavorites.BackColor = UI_General.GetLabelGrayBackColor();
            _pictureBoxFeedbackFavorites.Click    += NextQuestion_Click;
            _pictureBoxFeedbackFavorites.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.4), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.50));
            _pictureBoxFeedbackFavorites.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.156), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.278));

            PieChart A = new PieChart();
            List <Tuple <string, float> > B = new List <Tuple <string, float> >();

            B.Add(new Tuple <string, float>("A", 12));
            B.Add(new Tuple <string, float>("A", 2));
            B.Add(new Tuple <string, float>("A", 6));
            B.Add(new Tuple <string, float>("A", 9));
            B.Add(new Tuple <string, float>("A", 7));

            _pictureBoxFeedbackFavorites.BackgroundImage = A.DrawPieChart(B);

            Controls.Add(_pictureBoxFeedbackFavorites);

            _labelFeedbackWhatOthersHadToSay           = new Label();
            _labelFeedbackWhatOthersHadToSay.BackColor = UI_General.GetLabelGrayBackColor();
            _labelFeedbackWhatOthersHadToSay.Click    += NextQuestion_Click;
            _labelFeedbackWhatOthersHadToSay.ForeColor = UI_General.GetLabelGrayForeColor();
            _labelFeedbackWhatOthersHadToSay.Font      = UI_General.GetLabelGrayFont();
            _labelFeedbackWhatOthersHadToSay.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.40));
            _labelFeedbackWhatOthersHadToSay.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.8), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.04));
            _labelFeedbackWhatOthersHadToSay.Text      = _labelFeedbackWhatOthersHadToSayText;

            Controls.Add(_labelFeedbackWhatOthersHadToSay);

            _labelBarGraphOption1           = new Label();
            _labelBarGraphOption1.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption1.Click    += NextQuestion_Click;
            _labelBarGraphOption1.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.51));
            _labelBarGraphOption1.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.16), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));

            Controls.Add(_labelBarGraphOption1);

            _labelBarGraphOption2           = new Label();
            _labelBarGraphOption2.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption2.Click    += NextQuestion_Click;
            _labelBarGraphOption2.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.56));
            _labelBarGraphOption2.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.016), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));

            Controls.Add(_labelBarGraphOption2);

            _labelBarGraphOption3           = new Label();
            _labelBarGraphOption3.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption3.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.61));
            _labelBarGraphOption3.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.076), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));

            Controls.Add(_labelBarGraphOption3);

            _labelBarGraphOption4           = new Label();
            _labelBarGraphOption4.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption4.Click    += NextQuestion_Click;
            _labelBarGraphOption4.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.66));
            _labelBarGraphOption4.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.122), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));

            Controls.Add(_labelBarGraphOption4);

            _labelBarGraphOption5           = new Label();
            _labelBarGraphOption5.BackColor = ShowStatistics.DetermineColor();
            _labelBarGraphOption5.Click    += NextQuestion_Click;
            _labelBarGraphOption5.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.093), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.71));
            _labelBarGraphOption5.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.092), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.032));

            Controls.Add(_labelBarGraphOption5);

            _labelFeedbackQuestion           = new Label();
            _labelFeedbackQuestion.BackColor = UI_General.GetLabelGrayBackColor();
            _labelFeedbackQuestion.Click    += NextQuestion_Click;
            _labelFeedbackQuestion.ForeColor = _labelFeedbackQuestionForeColor;
            _labelFeedbackQuestion.Font      = _labelFeedbackQuestionFont;
            _labelFeedbackQuestion.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.143), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.28));
            _labelFeedbackQuestion.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.76), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.14));
            _labelFeedbackQuestion.Text      = _labelFeedbackQuestionText;

            Controls.Add(_labelFeedbackQuestion);


            _labelBarGraphOption1.BringToFront();
            _labelBarGraphOption2.BringToFront();
            _labelBarGraphOption3.BringToFront();
            _labelBarGraphOption4.BringToFront();
            _labelBarGraphOption5.BringToFront();
            _labelFeedbackQuestion.BringToFront();
            _labelFeedbackWhatOthersHadToSay.BringToFront();
            _pictureBoxFeedbackFavorites.BringToFront();
            _labelFeedbackFavorites.BringToFront();
            _textBoxFeedbackMoreInfo.BringToFront();
            _labelFeedbackMoreInfo.BringToFront();

            ShowStatistics.getUsedColors().Clear();

            // AUSWERTUNGS-ELEMENTE --- ENDE

            // QUESTION & ANSWER - ELEMENTS
            HideEvaluationElements();

            _buttonOption0           = new Button();
            _buttonOption0.BackColor = _buttonOptionBackColor;
            _buttonOption0.Click    += Option_Click;
            _buttonOption0.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption0.Font      = UI_General.GetLabelGrayFont();
            _buttonOption0.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.06), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption0.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption0.Text      = "Option 1";
            _buttonOption0.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption0);

            _buttonOption1           = new Button();
            _buttonOption1.BackColor = _buttonOptionBackColor;
            _buttonOption1.Click    += Option_Click;
            _buttonOption1.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption1.Font      = UI_General.GetLabelGrayFont();
            _buttonOption1.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.244), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption1.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption1.Text      = "Option 2";
            _buttonOption1.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption1);

            _buttonOption2           = new Button();
            _buttonOption2.BackColor = _buttonOptionBackColor;
            _buttonOption2.Click    += Option_Click;
            _buttonOption2.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption2.Font      = UI_General.GetLabelGrayFont();
            _buttonOption2.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.428), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption2.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption2.Text      = "Option 3";
            _buttonOption2.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption2);

            _buttonOption3           = new Button();
            _buttonOption3.BackColor = _buttonOptionBackColor;
            _buttonOption3.Click    += Option_Click;
            _buttonOption3.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption3.Font      = UI_General.GetLabelGrayFont();
            _buttonOption3.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.612), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption3.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption3.Text      = "Option 4";
            _buttonOption3.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption3);

            _buttonOption4           = new Button();
            _buttonOption4.BackColor = _buttonOptionBackColor;
            _buttonOption4.Click    += Option_Click;
            _buttonOption4.ForeColor = UI_General.GetLabelGrayForeColor();
            _buttonOption4.Font      = UI_General.GetLabelGrayFont();
            _buttonOption4.Location  = new Point(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.796), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.44));
            _buttonOption4.Size      = new Size(Convert.ToInt32(UI_General.GetSizeScreen().Width * 0.135), Convert.ToInt32(UI_General.GetSizeScreen().Height * 0.24));
            _buttonOption4.Text      = "Option 5";
            _buttonOption4.TextAlign = ContentAlignment.TopCenter;

            Controls.Add(_buttonOption4);

            _buttonOption0.BringToFront();
            _buttonOption1.BringToFront();
            _buttonOption2.BringToFront();
            _buttonOption3.BringToFront();
            _buttonOption4.BringToFront();

            StartFeedback();
        }