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(); }
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); }
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(); }