public void Save() { _magicDatabase.InsertNewOption(TypeOfOption.Display, ShowPictureKey, ShowPicture.ToString()); _magicDatabase.InsertNewOption(TypeOfOption.Display, ShowVariationPictureKey, ShowVariationPicture.ToString()); _magicDatabase.InsertNewOption(TypeOfOption.Display, ShowStatisticsKey, ShowStatistics.ToString()); _magicDatabase.InsertNewOption(TypeOfOption.Display, ShowOnlyCurrentStatisticsKey, ShowOnlyCurrentStatistics.ToString()); _magicDatabase.InsertNewOption(TypeOfOption.Display, ShowOtherLanguagesKey, ShowOtherLanguages.ToString()); _magicDatabase.InsertNewOption(TypeOfOption.Display, ShowRulesKey, ShowRules.ToString()); _magicDatabase.InsertNewOption(TypeOfOption.Display, ShowPricesKey, ShowPrices.ToString()); _magicDatabase.InsertNewOption(TypeOfOption.Upgrade, AutoCheckUpgradeKey, AutoCheckUpgrade.ToString()); }
public ShowStatistics CalculateShowStatistics(List <string> libraryIds) { var shows = _showRepository.GetAllShows(libraryIds, true, true); var statistics = new ShowStatistics { Cards = CalculateCards(libraryIds), TopCards = CalculateTopCards(libraryIds), People = CalculatePeopleStatistics(libraryIds), BarCharts = CalculateBarCharts(shows), PieCharts = CalculatePieChars(shows) }; var json = JsonConvert.SerializeObject(statistics); _statisticsRepository.AddStatistic(json, DateTime.UtcNow, StatisticType.Show, libraryIds); return(statistics); }
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(); }
public UI_Feedback() { InitializeComponent(); InitializeTimer(); _time.Start(); TopMost = true; FormBorderStyle = FormBorderStyle.None; BackColor = _screenBackColor; Size = MaximumSize = MinimumSize = _sizeScreen = new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); Text = _screenText; // BEGINN ELEMENTE _labelHeader = new Label(); _labelHeader.BackColor = _labelHeaderBackColor; _labelHeader.Font = _screenDefaultFont; _labelHeader.ForeColor = _screenForeColor; _labelHeader.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.377), Convert.ToInt32(_sizeScreen.Height * 0.05)); _labelHeader.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.3), Convert.ToInt32(_sizeScreen.Height * 0.2)); _labelHeader.Text = _labelHeaderText; Controls.Add(_labelHeader); _sapLogo = new PictureBox(); _sapLogo.BackgroundImage = new Bitmap(@"Pictures\SAP-Logo.jpg"); _sapLogo.BackgroundImageLayout = ImageLayout.Stretch; _sapLogo.Click += new EventHandler(Exit_Click); _sapLogo.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.815), Convert.ToInt32(_sizeScreen.Height * 0.05)); _sapLogo.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.11), Convert.ToInt32(_sizeScreen.Height * 0.1)); Controls.Add(_sapLogo); // START---FEEDBACK // AUSWERTUNGS-ELEMENTE _labelFeedbackMoreInfo = new Label(); _labelFeedbackMoreInfo.BackColor = _labelGrayBackColor; _labelFeedbackMoreInfo.ForeColor = _labelGrayForeColor; _labelFeedbackMoreInfo.Font = _labelGrayFont; _labelFeedbackMoreInfo.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.698), Convert.ToInt32(_sizeScreen.Height * 0.40)); _labelFeedbackMoreInfo.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.16), Convert.ToInt32(_sizeScreen.Height * 0.04)); _labelFeedbackMoreInfo.Text = _labelFeedbackMoreInfoText; Controls.Add(_labelFeedbackMoreInfo); _textBoxFeedbackMoreInfo = new RichTextBox(); _textBoxFeedbackMoreInfo.BackColor = _labelGrayBackColor; _textBoxFeedbackMoreInfo.Cursor = Cursors.No; _textBoxFeedbackMoreInfo.ForeColor = _labelGrayForeColor; _textBoxFeedbackMoreInfo.Font = _textBoxFeedbackMoreInfoFont; _textBoxFeedbackMoreInfo.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.7), Convert.ToInt32(_sizeScreen.Height * 0.50)); _textBoxFeedbackMoreInfo.ReadOnly = true; _textBoxFeedbackMoreInfo.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.2), Convert.ToInt32(_sizeScreen.Height * 0.278)); _textBoxFeedbackMoreInfo.Text = "Here is some more intersting stuff:\n\n35% of the voters think that X is the best thing here in the Airstream.\n\n25% think Y is the most interesting thing and\n\n21% prefer Z as there favorite gadget.\n\nThank you for giving us a feedback. This will help us to improve ourselves and our work here in the Airstream."; Controls.Add(_textBoxFeedbackMoreInfo); _labelFeedbackFavorites = new Label(); _labelFeedbackFavorites.BackColor = _labelGrayBackColor; _labelFeedbackFavorites.ForeColor = _labelGrayForeColor; _labelFeedbackFavorites.Font = _labelGrayFont; _labelFeedbackFavorites.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.45), Convert.ToInt32(_sizeScreen.Height * 0.40)); _labelFeedbackFavorites.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.2), Convert.ToInt32(_sizeScreen.Height * 0.04)); _labelFeedbackFavorites.Text = _labelFeedbackFavoritesText; Controls.Add(_labelFeedbackFavorites); _pictureBoxFeedbackFavorites = new PictureBox(); _pictureBoxFeedbackFavorites.BackColor = _labelGrayBackColor; _pictureBoxFeedbackFavorites.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.4), Convert.ToInt32(_sizeScreen.Height * 0.50)); _pictureBoxFeedbackFavorites.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.156), Convert.ToInt32(_sizeScreen.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 = _labelGrayBackColor; _labelFeedbackWhatOthersHadToSay.ForeColor = _labelGrayForeColor; _labelFeedbackWhatOthersHadToSay.Font = _labelGrayFont; _labelFeedbackWhatOthersHadToSay.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.093), Convert.ToInt32(_sizeScreen.Height * 0.40)); _labelFeedbackWhatOthersHadToSay.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.8), Convert.ToInt32(_sizeScreen.Height * 0.04)); _labelFeedbackWhatOthersHadToSay.Text = _labelFeedbackWhatOthersHadToSayText; Controls.Add(_labelFeedbackWhatOthersHadToSay); _labelBarGraphOption1 = new Label(); _labelBarGraphOption1.BackColor = ShowStatistics.DetermineColor(0); _labelBarGraphOption1.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.093), Convert.ToInt32(_sizeScreen.Height * 0.51)); _labelBarGraphOption1.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.16), Convert.ToInt32(_sizeScreen.Height * 0.032)); Controls.Add(_labelBarGraphOption1); _labelBarGraphOption2 = new Label(); _labelBarGraphOption2.BackColor = ShowStatistics.DetermineColor(0); _labelBarGraphOption2.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.093), Convert.ToInt32(_sizeScreen.Height * 0.56)); _labelBarGraphOption2.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.016), Convert.ToInt32(_sizeScreen.Height * 0.032)); Controls.Add(_labelBarGraphOption2); _labelBarGraphOption3 = new Label(); _labelBarGraphOption3.BackColor = ShowStatistics.DetermineColor(0); _labelBarGraphOption3.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.093), Convert.ToInt32(_sizeScreen.Height * 0.61)); _labelBarGraphOption3.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.076), Convert.ToInt32(_sizeScreen.Height * 0.032)); Controls.Add(_labelBarGraphOption3); _labelBarGraphOption4 = new Label(); _labelBarGraphOption4.BackColor = ShowStatistics.DetermineColor(0); _labelBarGraphOption4.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.093), Convert.ToInt32(_sizeScreen.Height * 0.66)); _labelBarGraphOption4.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.122), Convert.ToInt32(_sizeScreen.Height * 0.032)); Controls.Add(_labelBarGraphOption4); _labelBarGraphOption5 = new Label(); _labelBarGraphOption5.BackColor = ShowStatistics.DetermineColor(0); _labelBarGraphOption5.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.093), Convert.ToInt32(_sizeScreen.Height * 0.71)); _labelBarGraphOption5.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.092), Convert.ToInt32(_sizeScreen.Height * 0.032)); Controls.Add(_labelBarGraphOption5); _labelFeedbackQuestion = new Label(); _labelFeedbackQuestion.BackColor = _labelGrayBackColor; _labelFeedbackQuestion.ForeColor = _labelGrayForeColor; _labelFeedbackQuestion.Font = _screenDefaultFont; _labelFeedbackQuestion.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.09), Convert.ToInt32(_sizeScreen.Height * 0.28)); _labelFeedbackQuestion.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.8), Convert.ToInt32(_sizeScreen.Height * 0.14)); _labelFeedbackQuestion.Text = _labelFeedbackQuestionText; Controls.Add(_labelFeedbackQuestion); _labelGray = new Label(); _labelGray.BackColor = _labelGrayBackColor; _labelGray.BorderStyle = BorderStyle.Fixed3D; _labelGray.Location = new Point(Convert.ToInt32(_sizeScreen.Width * 0.06), Convert.ToInt32(_sizeScreen.Height * 0.25)); _labelGray.Size = new Size(Convert.ToInt32(_sizeScreen.Width * 0.867), Convert.ToInt32(_sizeScreen.Height * 0.64)); Controls.Add(_labelGray); ShowStatistics.getUsedColors().Clear(); // END---FEEDBACK }
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 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(); }