コード例 #1
0
        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());
        }
コード例 #2
0
 private void freeFormPangramButton_Click(object sender, EventArgs e)
 {
     PangramTest pangramTest = new PangramTest(this);
     bool        result      = pangramTest.IsPangram(this.freeFormInput.Text);
 }