public InstructionsForm(NewExam E) { InitializeComponent(); UserExam = E; Labels = UserExam.LabelsTexts; SetLabels(); }
private void SetLabels() { LabelTexts Labels = UserExam.LabelsTexts; UserData User = UserExam.UserData; IDLabel.Text = "ID: " + User.ID; InstructorLabel.Text = Labels.instructor + ": " + User.Instructor; PercentLabel.Text = Labels.Points + ": " + User.PointsPercentage + "%"; EndButton.Text = Labels.ExamEnderButtonText; }
public ExamForm(NewExam Ex) { InitializeComponent(); UserExam = Ex; Labels = Ex.LabelsTexts; Control.SetUser(UserExam); SetOtherLabels(); SetQuestionLabels(); SetProgressBarColor(); InitiateTimer(); CheckRadioButton(); Alt1.Checked = false; }
private static LabelTexts PortugueseLabels() { LabelTexts PL = new LabelTexts(); PL.Instructions = PortugueseInstructions(); PL.name = "Nome"; PL.instructor = "Instrutor"; PL.Button = "Começar Exame"; PL.ExamHeader = "Exame de teoria Vex"; PL.NextButton = "Próxima"; PL.ExamEnderButtonText = "Finalizar Exame"; PL.Points = "Pontuação"; PL.FinalQuestionButton = "Finalizar"; PL.BackButton = "Voltar"; PL.Gender = "Gênero"; PL.MaleGender = "Masculino"; PL.FemaleGender = "Feminino"; PL.NonSpecGender = "Não especificado"; PL.InstructionsMessage = "Por favor, preencha todos os campos."; PL.Age = "Idade"; return(PL); }
private static LabelTexts EnglishLabels() { LabelTexts Ex = new LabelTexts(); Ex.Instructions = EnglishInstructions(); Ex.name = "Name"; Ex.instructor = "Instructor"; Ex.Button = "Start Vex Exam"; Ex.ExamHeader = "Vex Theory Exam"; Ex.NextButton = "Next"; Ex.Points = "Score"; Ex.FinalQuestionButton = "End Exam"; Ex.ExamEnderButtonText = "End Exam"; Ex.BackButton = "Back"; Ex.Gender = "Gender"; Ex.MaleGender = "Male"; Ex.FemaleGender = "Female"; Ex.NonSpecGender = "Unspecified"; Ex.InstructionsMessage = "Please, fill all the fields."; Ex.Age = "Age"; return(Ex); }