/// <summary> /// Creates instance of the GameActionIconBox and store reference on action. Also adds MouseClick action GameActionClicked. /// </summary> /// <param name="action"></param> public GameActionIconBox(IGameAction action) { this.action = action; Load(action.IconPath()); Size = new Miyagi.Common.Data.Size(25, 25); MouseClick += GameActionClicked; }