Exemple #1
0
 public static bool SetBtnState(this PlatContent plat, int id, BtnStateEnum state)
 {
     if (HasBtn(plat, id))
     {
         plat.GetButton(id).SetState(state);
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #2
0
 public static bool HasBtn(this PlatContent plat, int id)
 {
     return(plat.GetButton(id) != null);
 }