Beyond_Beyaan.BBSingleLineTextBox.MouseUp C# (CSharp) Метод

MouseUp() публичный Метод

public MouseUp ( int x, int y ) : bool
x int
y int
Результат bool
        public bool MouseUp(int x, int y)
        {
            if (isReadOnly)
            {
                return false;
            }
            if (pressed)
            {
                pressed = false;
                if (x >= xPos && x < xPos + width && y >= yPos && y < yPos + height)
                {
                    blink = true;
                    isSelected = true;
                }
                else
                {
                    isSelected = false;
                }
            }
            else
            {
                isSelected = false;
            }
            if (!isSelected)
            {
                blink = false;
                text.SetText(Text);
            }
            return isSelected;
        }