コード例 #1
0
 public override void TouchesEnded(NSSet touches, UIEvent evt)
 {
     try {
         if (_touchDown)
         {
             _touchDown = false;
             if (_selState == LcarsComp.SelectionState.Selected)
             {
                 _selState = LcarsComp.SelectionState.NotSelected;
                 if (Def.Command != null)
                 {
                     Def.Command();
                 }
             }
             SetNeedsDisplay();
         }
     } catch (Exception error) {
         Log.Error(error);
     }
 }