コード例 #1
0
ファイル: TextForm.cs プロジェクト: Kelvin312/Kyrsach
        private void fillReplaceMenu(string word)
        {
            if (word.Length < 2)
            {
                return;
            }
            Groot.searchWord(word, word.Length);

            List <string> wordList = Groot.getFoundWord(8 + word.Length);

            if (!wordList.Any())
            {
                return;
            }

            lstReplaceMenu.Items.Clear();
            foreach (string item in wordList)
            {
                lstReplaceMenu.Items.Add(item);
            }

            if (timer100ms.Enabled)
            {
                return;
            }

            lstReplaceMenu.SelectedIndex = 0;
            lstReplaceMenu.Location      = currentMenuPos();
            lstReplaceMenu.Visible       = true;
        }