private void AddTagPageControl(string resourceid, int datalength, bool clientpath) { Panel pal = new Panel(); pal.Flex = 1; pal.Width = 0; pal.Height = 0; pal.Layout = LayoutPosition.Relative; pal.Controls.Add(new Label() { Height = 30, Width = 0, Text = string.Format("资源名:{0}/大小:{1}kb", resourceid, (datalength / 1024).ToString()) }); if (this.camera1.Mode == CameraMode.AlbumVideo || this.camera1.Mode == CameraMode.CameraVideo) { pal.Controls.Add(new Smobiler.Plugins.MediaView() { Flex = 1, Width = 0, Height = 0, Url = MobileResourceManager.GetResourceURL(this.Client.SessionID, resourceid, MobileResourceManager.DefaultUploadResourceName) }); } else { if (clientpath == false) { pal.Controls.Add(new Image() { Flex = 1, Width = 0, Height = 0, ResourceID = resourceid, ResourcePath = MobileResourceManager.DefaultUploadResourceName }); } else { pal.Controls.Add(new Image() { Flex = 1, Width = 0, Height = 0, ResourceID = resourceid, ResourceMode = ResourceMode.Client }); } } this.tabPageView1.Controls.Add(pal); this.tabPageView1.PageIndex = this.tabPageView1.Controls.Count - 1; }
private void btnDymaticHtml_Press(object sender, EventArgs e) { this.webView1.Url = MobileResourceManager.GetResourceURL(this.Client.SessionID, "dynamic?path=demo.html"); }
private void demoHtmlInteraction_Load(object sender, EventArgs e) { //在项目中的Resources/Web文件夹下,有jsCookie.html,里面有对JS的说明。 this.webView1.Url = MobileResourceManager.GetResourceURL(this.Client.SessionID, "jsCookie.html", MobileResourceManager.DefaultWebResourceName); }
private void btnLocalHtml_Press(object sender, EventArgs e) { this.webView1.Url = MobileResourceManager.GetResourceURL(this.Client.SessionID, "web/demo.html"); }
private void btnUpdateImage_Press(object sender, EventArgs e) { //刷新图像 this.image1.ResourceID = MobileResourceManager.GetResourceURL(this.Client.SessionID, resourceUrl + "?id=test"); this.image1.Refresh(); }