/// <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); }
/// <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); }