Beispiel #1
0
 public Button addButton(Texture2D aTexture, string aControlName)
 {
     if (controlExist(aControlName) == true)
     {
         return null;
     }
     if (m_Controls != null && aTexture != null)
     {
         Button button = new Button(aTexture, valueChanged, aControlName, getNextControlID());
         m_Controls.Add(button);
         return button;
     }
     return null;
 }
Beispiel #2
0
 private void handleButton(Button aSender)
 {
     if (aSender == null)
     {
         return;
     }
     //Invoke Button Callback
     e_ButtonCallback.Invoke(aSender);
 }