Exemplo n.º 1
0
 public void CircleViewDidCompleteLoginGesture(CircleViewType type, NSString gesture, bool equal)
 {
     if (type == CircleViewType.CircleViewTypeVerify)
     {
         //验证成功
         if (equal)
         {
             if (isToSetNewGesture)
             {
                 GestureViewController gestureVc = new GestureViewController();
                 gestureVc.type = GestureViewControllerType.GestureViewControllerTypeSetting;
                 NavigationController.PushViewController(gestureVc, true);
             }
             else
             {
                 NavigationController.PopToRootViewController(true);
             }
         }
         else
         {
             //密码错误!
             msgLabel.ShowWarnMsgAndShake(PCCircleViewConst.gestureTextGestureVerifyError);
         }
     }
 }
 public override void Clicked(UIAlertView alertview, nint buttonIndex)
 {
     if (buttonIndex == 1)
     {
         GestureViewController gestureVc = new GestureViewController();
         gestureVc.type = GestureViewControllerType.GestureViewControllerTypeSetting;
         navigationController.PushViewController(gestureVc, true);
     }
 }
        void BtnClick(UIButton sender)
        {
            switch (sender.Tag)
            {
            case 1:
                GestureViewController gestureVc1 = new GestureViewController();
                gestureVc1.type = GestureViewControllerType.GestureViewControllerTypeSetting;
                NavigationController.PushViewController(gestureVc1, true);
                break;

            case 2:
                if (PCCircleViewConst.GetGesturePassWord().Length > 0)
                {
                    GestureViewController gestureVc2 = new GestureViewController();
                    gestureVc2.type = GestureViewControllerType.GestureViewControllerTypeLogin;
                    NavigationController.PushViewController(gestureVc2, true);
                }
                else
                {
                    UIAlertView alerView = new UIAlertView("提示", "暂未设置手势密码,是否前往设置", new MyUIAlertViewDelegate(NavigationController), "取消", "设置");
                    alerView.Show();
                }
                break;

            case 3:
                GestureVerifyViewController gestureVerifyVc1 = new GestureVerifyViewController();
                NavigationController.PushViewController(gestureVerifyVc1, true);
                break;

            case 4:
                GestureVerifyViewController gestureVerifyVc2 = new GestureVerifyViewController();
                gestureVerifyVc2.isToSetNewGesture = true;
                NavigationController.PushViewController(gestureVerifyVc2, true);
                break;

            default:
                break;
            }
        }