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); }
private void initDisplay(int currentDisplayCount) { selectedText = Hook.getSelection(); Console.WriteLine("SEARCH : " + selectedText); addMeanings(DictParser.getInfoFromNaverAPI(selectedText, currentDisplayCount)); }