Exemple #1
0
        private void btnGetSynonymsAndAntonyms_Click(object sender, EventArgs e)
        {
            var sa     = SynonymsAntonymsUtil.GetAsync(tbReviewWord.Text).GetAwaiter().GetResult();
            var saForm = new FormSynonymsAntonyms(sa);

            saForm.ShowDialog();
        }
        private void btnHelp_Click(object sender, EventArgs e)
        {
            if (_synonymsAntonyms == null)
            {
                _synonymsAntonyms = SynonymsAntonymsUtil.GetAsync(_word).GetAwaiter().GetResult();
            }
            var saForm = new FormSynonymsAntonyms(_synonymsAntonyms);

            saForm.ShowDialog();
        }