示例#1
0
        private void demoWeiXinENTApi_Load(object sender, EventArgs e)
        {
            ListMenuViewGroup g1 = new ListMenuViewGroup();

            g1.AddItem("logon", "获取ENTTicket", "ENTTicket", "");
            g1.AddItem("logon", "获取AgentTicket", "AgentTicket", "");
            g1.AddItem("logon", "注入权限验证配置config", "config", "");
            g1.AddItem("logon", "注入应用的权限agentConfig", "agentConfig", "");
            g1.AddItem("logon", "是否支持指定JS接口checkJsApi", "checkJsApi", "");
            g1.AddItem("logon", "使用invoke:扫一扫scanQRCode", "scanQRCode", "");
            listMenuView1.Groups.Add(g1);
        }
示例#2
0
        private void demoWeiXin_Load(object sender, EventArgs e)
        {
            ListMenuViewGroup g1 = new ListMenuViewGroup();

            g1.AddItem("logon", "注册", "Reg", "");
            g1.AddItem("logon", "登录", "Login", "");
            g1.AddItem("logon", "支付", "Pay", "");
            g1.AddItem("logon", "ShareNews", "ShareNews", "");
            g1.AddItem("logon", "ShareText", "ShareText", "");
            g1.AddItem("logon", "ShareImage", "ShareImage", "");
            g1.AddItem("logon", "ShareVideo", "ShareVideo", "");
            g1.AddItem("logon", "ShareAudio", "ShareAudio", "");
            g1.AddItem("logon", "TimeLineNews", "TimeLineNews", "");
            g1.AddItem("logon", "TimeLineText", "TimeLineText", "");
            g1.AddItem("logon", "TimeLineImage", "TimeLineImage", "");
            g1.AddItem("logon", "TimeLineVideo", "TimeLineVideo", "");
            g1.AddItem("logon", "TimeLineAudio", "TimeLineAudio", "");

            g1.AddItem("logon", "isWXAppInstalled", "isWXAppInstalled", "");
            g1.AddItem("logon", "isWXAppSupportApi", "isWXAppSupportApi", "");
            g1.AddItem("logon", "getWXAppInstallUrl", "getWXAppInstallUrl", "");
            g1.AddItem("logon", "getApiVersion", "getApiVersion", "");
            g1.AddItem("logon", "openWXApp", "openWXApp", "");
            listMenuView1.Groups.Add(g1);
        }
示例#3
0
        private void demoWeiXin_Load(object sender, EventArgs e)
        {
            ListMenuViewGroup g1 = new ListMenuViewGroup();

            g1.AddItem("logon", "注册", "Reg", "");
            g1.AddItem("logon", "登录", "Login", "");
            g1.AddItem("logon", "支付", "Pay", "");
            g1.AddItem("logon", "ShareNews", "ShareNews", "");
            g1.AddItem("logon", "ShareText", "ShareText", "");
            g1.AddItem("logon", "ShareImage", "ShareImage", "");
            g1.AddItem("logon", "ShareVideo", "ShareVideo", "");
            g1.AddItem("logon", "ShareAudio", "ShareAudio", "");
            g1.AddItem("logon", "TimeLineNews", "TimeLineNews", "");
            g1.AddItem("logon", "TimeLineText", "TimeLineText", "");
            g1.AddItem("logon", "TimeLineImage", "TimeLineImage", "");
            g1.AddItem("logon", "TimeLineVideo", "TimeLineVideo", "");
            g1.AddItem("logon", "TimeLineAudio", "TimeLineAudio", "");
            listMenuView1.Groups.Add(g1);
        }
示例#4
0
        private void demoClient_Load(object sender, EventArgs e)
        {
            ListMenuViewGroup g1 = new ListMenuViewGroup();

            g1.Title     = "手势";
            g1.ShowTitle = true;
            g1.AddItem("logon", "创建手势", "PatternCreate", "");
            g1.AddItem("logon", "本地验证手势", "PatternVerifyLocal", "");
            g1.AddItem("logon", "服务端验证手势", "PatternVerifyServer", "");
            ListMenuViewGroup g2 = new ListMenuViewGroup();

            g2.Title     = "分享";
            g2.ShowTitle = true;
            g2.AddItem("logon", "分享文本", "ShareText", "");
            g2.AddItem("logon", "分享地址", "ShareURL", "");
            ListMenuViewGroup g3 = new ListMenuViewGroup();

            g3.Title     = "通讯录";
            g3.ShowTitle = true;
            g3.AddItem("logon", "显示通讯录", "ContactsShow", "");
            g3.AddItem("logon", "添加通讯录", "ContactsAdd", "");
            g3.AddItem("logon", "获取通讯录", "ContactsGet", "");
            ListMenuViewGroup g4 = new ListMenuViewGroup();

            g4.Title     = "资源";
            g4.ShowTitle = true;
            g4.AddItem("logon", "资源加载", "ResourceLoad", "");
            g4.AddItem("logon", "资源获取(所有包含c的资源)", "ResourceGet", "");
            g4.AddItem("logon", "资源删除(1.png,2.png,3.png)", "ResourceRemoveIDS", "");
            g4.AddItem("logon", "资源删除(所有包含c的资源)", "ResourceRemove", "");
            ListMenuViewGroup g5 = new ListMenuViewGroup();

            g5.Title     = "文件";
            g5.ShowTitle = true;
            g5.AddItem("logon", "文件下载", "FileDownload", "");
            g5.AddItem("logon", "文件删除", "FileDelete", "");
            g5.AddItem("logon", "文件打开", "FileOpen", "");
            g5.AddItem("logon", "文件列表", "FileList", "");
            g5.AddItem("logon", "文件是否存在", "FileExists", "");
            g5.AddItem("logon", "文件上传", "FileUpload", "");
            ListMenuViewGroup g6 = new ListMenuViewGroup();

            g6.Title     = "数据库";
            g6.ShowTitle = true;
            g6.AddItem("logon", "打开数据库", "OpenDataBase", "");
            g6.AddItem("logon", "设置数据库", "SetDataBase", "");
            g6.AddItem("logon", "获取数据库", "GetDataBase", "");
            g6.AddItem("logon", "关闭数据库", "CloseDataBase", "");
            g6.AddItem("logon", "删除数据库", "DeleteDataBase", "");
            ListMenuViewGroup g7 = new ListMenuViewGroup();

            g7.Title     = "关于页";
            g7.ShowTitle = true;
            g7.AddItem("logon", "显示权限页", "ShowPermission", "");
            g7.AddItem("logon", "显示离线资源页", "ShowOfflineResources", "");
            g7.AddItem("logon", "显示网络诊断页", "ShowNetworkDiagnosis", "");
            g7.AddItem("logon", "显示关于页", "ShowAbout", "");
            ListMenuViewGroup g8 = new ListMenuViewGroup();

            g8.Title     = "其他";
            g8.ShowTitle = true;
            g8.AddItem("logon", "获取当前网络类型", "GetNetWorkType", "");
            g8.AddItem("logon", "获取状态栏高度", "GetStatusbarHeight", "");
            g8.AddItem("logon", "播放音频", "PlayAudio", "");
            g8.AddItem("logon", "停止播放音频", "StopAudio", "");
            g8.AddItem("logon", "发送邮件", "SendEmail", "");
            g8.AddItem("logon", "发送短信", "SendSMS", "");
            g8.AddItem("logon", "打电话", "TelCall", "");
            g8.AddItem("logon", "判断蓝牙", "IsOpenBlue", "");
            g8.AddItem("logon", "打开蓝牙", "OpenBlue", "");
            g8.AddItem("logon", "获取粘贴板内容", "GetClipboard", "");
            g8.AddItem("logon", "设置粘贴板内容", "SetClipBoard", "");
            g8.AddItem("logon", "清除缓存", "ClearCache", "");
            ListMenuViewGroup g9 = new ListMenuViewGroup();

            g9.Title     = "客户端信息";
            g9.ShowTitle = true;
            g9.AddItem("logon", "获取客户端内核版本号", "CoreVersion", "");
            g9.AddItem("logon", "获取客户端设备名称", "Device", "");
            g9.AddItem("logon", "获取设备编号", "DeviceID", "");
            g9.AddItem("logon", "获取客户端操作系统类型", "DeviceOS", "");
            g9.AddItem("logon", "获取客户端操作系统版本号", "DeviceOSVersion", "");
            g9.AddItem("logon", "获取和设置一个值,该值表示是否启用客户端界面栈", "EnableStackView", "");
            g9.AddItem("logon", "获取客户端网络端点", "IPEndPoint", "");
            g9.AddItem("logon", "获取客户端最后一次操作时间", "LastDate", "");
            g9.AddItem("logon", "获取设备屏幕密度", "ScreenDensity", "");
            g9.AddItem("logon", "获取设备屏幕分辨率", "ScreenSize", "");
            g9.AddItem("logon", "获取客户端会话编号", "SessionID", "");
            g9.AddItem("logon", "获取客户端第一次连接时间", "StartDate", "");
            g9.AddItem("logon", "获取和设置用户会话编号", "UserSessionID", "");
            g9.AddItem("logon", "获取客户端版本号", "Version", "");
            g9.AddItem("logon", "关闭客户端", "Exit", "");
            g9.AddItem("logon", "关闭客户端并终止服务端会话", "ExitAndQuit", "");

            listMenuView1.Groups.AddRange((new ListMenuViewGroup[] { g1, g2, g3, g4, g5, g6, g7, g8, g9 }));
        }
示例#5
0
        private void demoWeiXinApi_Load(object sender, EventArgs e)
        {
            ListMenuViewGroup g1 = new ListMenuViewGroup();

            g1.AddItem("logon", "获取Token", "Token", "");
            g1.AddItem("logon", "获取Ticket", "Ticket", "");
            g1.AddItem("logon", "注入权限验证配置config", "config", "");
            g1.AddItem("logon", "是否支持指定JS接口checkJsApi", "checkJsApi", "");
            g1.AddItem("logon", "分享给好友shareToSession", "shareToSession", "");
            g1.AddItem("logon", "分享给朋友圈shareToTimeline", "shareToTimeline", "");
            g1.AddItem("logon", "获取地理位置getLocation", "getLocation", "");
            g1.AddItem("logon", "扫一扫scanQRCode", "scanQRCode1", "");
            g1.AddItem("logon", "扫一扫scanQRCode", "scanQRCode2", "");
            g1.AddItem("logon", "扫一扫scanQRCode", "scanQRCode3", "");
            g1.AddItem("logon", "网页授权login", "login", "");
            g1.AddItem("logon", "支付pay", "pay", "");
            listMenuView1.Groups.Add(g1);
        }