Beispiel #1
0
        /// <summary>连线个数少于4个时,通知代理
        /// </summary>
        /// <param name="view"></param>
        /// <param name="type"></param>
        /// <param name="gesture">手势结果</param>
        public override void CircleViewConnectCirclesLessThanNeedWithGesture(PCCircleView view, CircleViewType type, string gesture)
        {
            //获取手势保存的第一个密码
            string gestureOne = PCCircleViewConst.GetGesturePassWord();

            // 看是否存在第一个密码
            if (gestureOne.Length > 0)
            {
                resetBtn.Hidden = false;
                msgLabel.ShowWarnMsgAndShake(PCCircleViewConst.gestureTextDrawAgainError);
            }
            else
            {
                msgLabel.ShowWarnMsgAndShake(PCCircleViewConst.gestureTextConnectLess);
            }
        }
        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;
            }
        }