// Процесс выделения закончен private static void GameWin_PointerReleased(object?sender, Avalonia.Input.PointerReleasedEventArgs e) { MouseInfo.IsPressed = false; if (Player.WordNow != string.Empty) { Cell cell = FindCellByCoords(e.GetPosition(currentWindow)); CheckWordNow((cell != null) ? cell.X : 0); SetCellsColorFromField(); UpdateScore(); UpdateGuessedWordsList(); Player.WordNow = string.Empty; ((TextBlock)((StackPanel)((Grid)currentWindow.Content).Children[1]).Children[1]).Text = " "; CheckWin(); } }