Exemple #1
0
        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);
        }
Exemple #2
0
 private void RemoveBuble(Bubble bubble)
 {
     Children.Remove(bubble);
     bubble.Clicked -= bubble_Clicked;
     _bubbles[bubble.Row, bubble.Column] = null;
 }
Exemple #3
0
 /// <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);
 }