Exemple #1
0
        private void MouseWheelEvent(object sender, MouseEventArgs e)
        {
            var currentScroll = this.simpleMeaningsPanel.AutoScrollPosition;

            if (e.Delta < 0 && prevScroll == currentScroll.Y && currentDisplayCount < 100)
            {
                currentDisplayCount += 5;
                addMeanings(DictParser.getInfoFromNaverAPI(selectedText, currentDisplayCount));
            }
            prevScroll = currentScroll.Y;
            Console.WriteLine(currentScroll.Y);
        }
Exemple #2
0
 private void initDisplay(int currentDisplayCount)
 {
     selectedText = Hook.getSelection();
     Console.WriteLine("SEARCH : " + selectedText);
     addMeanings(DictParser.getInfoFromNaverAPI(selectedText, currentDisplayCount));
 }