private void pangramTestButton_Click(object sender, EventArgs e) { PangramTest pangramTest = new PangramTest(this); if (lstTestStrings.SelectedItem == null) { lstTestStrings.SelectedIndex = 0; } bool result = pangramTest.IsPangram(lstTestStrings.SelectedItem.ToString()); }
private void freeFormPangramButton_Click(object sender, EventArgs e) { PangramTest pangramTest = new PangramTest(this); bool result = pangramTest.IsPangram(this.freeFormInput.Text); }