예제 #1
0
 private void valueChanged(Control aSender, ControlArgs aArgs)
 {
     switch (aSender.type)
     {
         //Click
         case EControl.BUTTON:
             handleButton((Button)aSender);
             break;
         case EControl.TEXT_FIELD:
             string text = aArgs.value.asString();
             handleTextField((TextField)aSender, text);
             if (aArgs.value.getError() != ParseError.NO_ERROR)
             {
                 Debug.Log("Error in Parsing");
             }
             break;
     }
 }
예제 #2
0
 public Control removeControl(Control aControl)
 {
     if (aControl != null && m_Controls != null)
     {
         if (m_Controls.Contains(aControl))
         {
             m_Controls.Remove(aControl);
             return null;
         }
     }
     return aControl;
 }