Ejemplo n.º 1
0
        private void OnClickButton_Checkbox()
        {
            if (!AddLock())
            {
                return;
            }

            //保存协议是否勾选 再次点击反转
            Login_Protocol.SetProtocol();

            DelLock();
        }
Ejemplo n.º 2
0
        private void OnClickButton_ProConfirm()
        {
            if (!AddLock())
            {
                return;
            }

            //确认用户协议
            Login_Protocol.SetProtocol();

            //返回默认界面 关闭提示消息窗口
            Block_Pup.This.m_Ctrl_Pup.selectedIndex = 0;

            DelLock();
        }
Ejemplo n.º 3
0
        private void OnClickButton_Choose()
        {
            if (!AddLock())
            {
                return;
            }

            //当前状态是遵守协议
            if (PlayerComponent.This.GetProtocolStats())
            {
                //反转 同时跳出提示框
                Login_Protocol.SetProtocol();

                TimeActionComponent.This.GetTimeAction().SetMinRuntime(1f).StartRun(
                    (TimeAction timeAction) =>
                {
                    //提示勾选用户协议
                    Block_Pup.This.m_Ctrl_Pup.selectedIndex = 4;
                },
                    null,
                    (TimeAction timeAction) =>
                {
                    //返回之前页面
                    Block_Pup.This.m_Ctrl_Pup.selectedIndex = Block_Pup.This.m_Ctrl_Pup.previsousIndex;

                    DelLock();
                }
                    );
            }
            else
            {
                //反转 同时跳出提示框
                Login_Protocol.SetProtocol();

                DelLock();
            }
        }