/// <summary>
        /// Fires an event, when the live <see cref="Cell"/> objects count is changed.
        /// </summary>
        /// <param name="e">The <see cref="EventArgs"/> of the event.</param>
        protected virtual void OnRaiseCellsCountUpdatedEvent(CellsCountUpdatedEventArgs e)
        {
            EventHandler<CellsCountUpdatedEventArgs> handler = RaiseCellsCountUpdatedEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 private void HandleCellsCountUpdatedEvent(object sender, CellsCountUpdatedEventArgs e)
 {
     numberOfLiveCells.Text = e.Count.ToString();
     if (e.Count == 0)
     {
         Clear();
     }
 }