/// <summary>
        /// Fire CategorySelected event
        /// </summary>
        /// <param name="b">CategoryButton selected</param>
        private void SelectCategory(CategoryButton b)
        {
            EventHandler <CategoryEventArgs> handler = CategorySelected;

            if (handler != null)
            {
                handler(null, new CategoryEventArgs(b));
            }
        }
Example #2
0
 public CategoryEventArgs(CategoryButton button)
 {
     cb = button;
 }