Пример #1
0
        /// <summary>
        /// 设置高度
        /// </summary>
        /// <param name="message"></param>
        public void SetHeight(WinjsLib.Message message)
        {
            if (!this.CheckAccess())
            {
                this.Dispatcher.Invoke(DispatcherPriority.Send, new WinjsLib.EventControl.WinjsEvent(SetHeight), message);
                return;
            }
            WPFMs ms = JsonConvert.DeserializeObject <WPFMs>(message.Json);

            this.Height = ms.Height;
            Send(message.Response, null);
        }
Пример #2
0
        /// <summary>
        /// 跳转
        /// </summary>
        /// <param name="message"></param>
        public void Url(WinjsLib.Message message)
        {
            if (!this.CheckAccess())
            {
                this.Dispatcher.Invoke(DispatcherPriority.Send, new WinjsLib.EventControl.WinjsEvent(Url), message);
                return;
            }
            WPFMs ms = JsonConvert.DeserializeObject <WPFMs>(message.Json);

            this.webBrowser.Load(ms.Url);
            Send(message.Response, null);
        }