private void Translate() { labelAbout.Text = Mother.Get("About"); textAbout.Text = Mother.Get("TextAbout"); labelLanguage.Text = Mother.Get("Language"); buttonCancel.Text = Mother.Get("Cancel"); }
public FormPreferences(IParent mother) { InitializeComponent(); WindowState = FormWindowState.Maximized; Mother = mother; OriginalLanguage = Mother.Get("ID"); ManageLanguages(); Translate(); }
private void buttonContinue_Click(object sender, EventArgs e) { bool everythingAnswered = true; var answers = Answers.Select((it) => it.Text); answers.ToList().ForEach((answer) => everythingAnswered &= answer.Length > 0); if (everythingAnswered) { Ended = true; Completed = true; Survey = answers.ToArray <string>(); } else { MessageBox.Show(Mother.Get("All"), "!!!"); } }