Beispiel #1
0
 /// <summary>
 /// Removes an event listener from this TopMenu's TopMenuEvent.
 /// </summary>
 /// <param name="topMenuEventListener">The method to remove from this TopMenu's TopMenuEvent.</param>
 public void RemoveTopMenuEventListener(TopMenuEvent topMenuEventListener)
 {
     if (topMenuEventListener != null)
     {
         _topMenuEvent -= topMenuEventListener;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Registers another event listener to this TopMenu's TopMenuEvent.
 /// </summary>
 /// <param name="topMenuEventListener">The method listening to this TopMenu's TopMenuEvent.</param>
 public void AddTopMenuEventListener(TopMenuEvent topMenuEventListener)
 {
     if (topMenuEventListener != null)
     {
         _topMenuEvent += topMenuEventListener;
     }
 }
Beispiel #3
0
 /// <summary>
 /// Creates a new TopMenu.
 /// </summary>
 /// <param name="menuId">Unique ID representing this TopMenu.</param>
 /// <param name="menuLabel">The label to be shown on this TopMenu's corresponding button.</param>
 /// <param name="topMenuEventListener">A TopMenuEvent delegate to handle the Click action of this TopMenu's corresponding button.</param>
 public TopMenu(string menuId, string menuLabel, TopMenuEvent topMenuEventListener) : this(menuId, menuLabel)
 {
     if (topMenuEventListener != null)
     {
         _topMenuEvent += topMenuEventListener;
     }
 }
Beispiel #4
0
 /// <summary>
 /// Removes an event listener from this TopMenu's TopMenuEvent.
 /// </summary>
 /// <param name="topMenuEventListener">The method to remove from this TopMenu's TopMenuEvent.</param>
 public void RemoveTopMenuEventListener(TopMenuEvent topMenuEventListener)
 {
     if (topMenuEventListener != null)
     {
         this._topMenuEvent -= topMenuEventListener;
     }
 }
Beispiel #5
0
 /// <summary>
 /// Registers another event listener to this TopMenu's TopMenuEvent.
 /// </summary>
 /// <param name="topMenuEventListener">The method listening to this TopMenu's TopMenuEvent.</param>
 public void AddTopMenuEventListener(TopMenuEvent topMenuEventListener)
 {
     if (topMenuEventListener != null)
     {
         this._topMenuEvent += topMenuEventListener;
     }
 }
Beispiel #6
0
 /// <summary>
 /// Creates a new TopMenu.
 /// </summary>
 /// <param name="menuId">Unique ID representing this TopMenu.</param>
 /// <param name="menuLabel">The label to be shown on this TopMenu's corresponding button.</param>
 /// <param name="topMenuEventListener">A TopMenuEvent delegate to handle the Click action of this TopMenu's corresponding button.</param>
 public TopMenu(string menuId, string menuLabel, TopMenuEvent topMenuEventListener) : this(menuId, menuLabel)
 {
     if(topMenuEventListener != null)
     {
         this._topMenuEvent += topMenuEventListener;
     }
 }