private void MakeSelection(Bubble b) { if (b.Status != BubbleStatus.Normal) { return; } var column = b.Column; var row = b.Row; var color = b.Color; if (!_bubbles.CanSelect(row, column)) { return; } _bubbles.SelectBubble(row, column, color); SetSelectedScore(_bubbles.SelectedScore); }
private void RemoveBuble(Bubble bubble) { Children.Remove(bubble); bubble.Clicked -= bubble_Clicked; _bubbles[bubble.Row, bubble.Column] = null; }
/// <summary> /// Adds the bubble. /// </summary> /// <param name="bubble">The bubble.</param> public void AddBubble(Bubble bubble) { Children.Add(bubble); bubble.Clicked += new EventHandler(bubble_Clicked); }