ShowHiddenCursor() 개인적인 메소드

Shows the mouse cursor if it has been hidden.
private ShowHiddenCursor ( bool forceShow ) : void
forceShow bool true to always show the cursor or false to show it only if it has been moved since it was hidden.
리턴 void
        private void ShowHiddenCursorIfMovedOrLeft()
        {
            bool     flag;
            TextArea textArea = this.textArea;

            if (!this.textArea.Focused)
            {
                flag = true;
            }
            else
            {
                Rectangle clientRectangle = this.textArea.ClientRectangle;
                flag = !clientRectangle.Contains(this.textArea.PointToClient(Cursor.Position));
            }
            textArea.ShowHiddenCursor(flag);
        }
예제 #2
0
 void ShowHiddenCursorIfMovedOrLeft()
 {
     textArea.ShowHiddenCursor(!textArea.Focused ||
                               !textArea.ClientRectangle.Contains(textArea.PointToClient(Cursor.Position)));
 }