• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.HtmlElementEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.HtmlElementEventArgs的典型用法代码示例。如果您正苦于以下问题:C# HtmlElementEventArgs类的具体用法?C# HtmlElementEventArgs怎么用?C# HtmlElementEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HtmlElementEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了HtmlElementEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Package_Click

 public void Package_Click(object sender, HtmlElementEventArgs e)
 {
     HtmlElement tag = (HtmlElement)(sender);
     PackageFormId = Convert.ToInt32(tag.Id);
     //_product = ServicesProvider.GetInstance().GetSavingProductServices().FindSavingBookProductById(PackageFormId);
     buttonDeleteProduct.Enabled = true;
     buttonEditProduct.Enabled = true;
 }
开发者ID:TalasZh,项目名称:opencbs,代码行数:8,代码来源:FrmAvailableSavingProducts.cs


示例2: Document_ContextMenuShowing

 void Document_ContextMenuShowing(object sender, HtmlElementEventArgs e)
 {
     #if NO_RBUTTON
     HtmlElement he = this.Document.GetElementFromPoint(e.MousePosition);
     if (he.TagName.ToLower() != "input")
         e.ReturnValue = false;
     #endif
 }
开发者ID:kener1985,项目名称:MyGitHubProj,代码行数:8,代码来源:FormBrowser.cs


示例3: OnBookmarkFileClick

 public void OnBookmarkFileClick(object sender, HtmlElementEventArgs e)
 {
     String fn = ToolsUtil.GetSelectedFile("Bookmark File(*.html)|*.html|All Files(*.*)|*.*");
     if(fn != null && edRuleFile != null)
     {
         edBookmarkFile.SetAttribute("value", fn);
     }
 }
开发者ID:soxfmr,项目名称:BookmarkerRe,代码行数:8,代码来源:MainForm.cs


示例4: Package_Click

 public void Package_Click(object sender, HtmlElementEventArgs e)
 {
     var tag = (HtmlElement)(sender);
     this.PackageFormId = Convert.ToInt32(tag.Id);
     _package = ServicesProvider.GetInstance().GetProductServices().FindPackage(PackageFormId);
     buttonDeletePackage.Enabled = true;
     buttonEditProduct.Enabled = true;
 }
开发者ID:TalasZh,项目名称:opencbs,代码行数:8,代码来源:FrmAvalaibleLoanProducts.cs


示例5: Package_Click

        public void Package_Click(object sender, HtmlElementEventArgs e)
        {
            var tag = (HtmlElement)(sender);
            PackageFormId = Convert.ToInt32(tag.Id);
            product = ServicesProvider.GetInstance().GetCollateralProductServices().SelectCollateralProduct(PackageFormId);

            buttonDeletePackage.Enabled = true;
            buttonEditProduct.Enabled = true;
        }
开发者ID:himmelreich-it,项目名称:opencbs,代码行数:9,代码来源:FrmAvalaibleCollateralProducts.cs


示例6: element_MouseEnter

 void element_MouseEnter(object sender, HtmlElementEventArgs e)
 {
     //HtmlElement elem = e.FromElement;
         //if (elem != null && _lastElement != elem)
         //{
         //    UpdateLastSelected(elem);
         //    UpdateFocusDraw();
         //}
 }
开发者ID:Alister742,项目名称:ParseKit,代码行数:9,代码来源:WebEventProvider.cs


示例7: Document_MouseUp

        private void Document_MouseUp(object sender, HtmlElementEventArgs e)
        {
            if (e.MouseButtonsPressed == MouseButtons.Right)
            {
                摄像头地理信息 a = new 摄像头地理信息();
                a.ShowDialog();
            }

        }
开发者ID:xlgwr,项目名称:SmartVision,代码行数:9,代码来源:地图控件.cs


示例8: Document_ContextMenuShowing

        public void Document_ContextMenuShowing(object sender, HtmlElementEventArgs e)
        {
            e.ReturnValue = false;

            copyitem.Enabled = doc.queryCommandEnabled("Copy");
            cutitem.Enabled = doc.queryCommandEnabled("Cut");
            deleteitem.Enabled = doc.queryCommandEnabled("Delete");
            pasteitem.Enabled = doc.queryCommandEnabled("Paste");
            cancelitem.Enabled = doc.queryCommandEnabled("Undo");

            contextMenuStrip1.Show(this, e.ClientMousePosition);
        }
开发者ID:AntBean,项目名称:FreeNetUI,代码行数:12,代码来源:FreeTextEditor.cs


示例9: Document_MouseMove

 void Document_MouseMove(object sender, HtmlElementEventArgs e)
 {
     if (sx == -1)
     {
         sx = e.MousePosition.X;
         sy = e.MousePosition.Y;
     }
     else if (Math.Abs(e.MousePosition.X - sx) > MOVE_THREASHOLD || Math.Abs(e.MousePosition.Y - sy) > MOVE_THREASHOLD)
     {
         System.Environment.Exit(0);
     }
 }
开发者ID:nus,项目名称:DotNetWebBrowserScreenSaver,代码行数:12,代码来源:Form1.Designer.cs


示例10: Content_Click

 private void Content_Click(object sender, HtmlElementEventArgs e)
 {
     this.ttId.Hide(this);
     if (this.ignoreMenuFlag) {
         return;
     }
     if (Keys.None == (Keys.Alt & Control.ModifierKeys)) {
         this.clickedContent = sender as HtmlElement;
         this.cmsContent.Show(Control.MousePosition);
         e.BubbleEvent = false;
         e.ReturnValue = false;
     }
 }
开发者ID:ohtake,项目名称:gyao-gexplorer,代码行数:13,代码来源:GWebBrowser.cs


示例11: Body_MouseDown

        private void Body_MouseDown(object sender, HtmlElementEventArgs e)
        {
            var element = _document.ActiveElement;

            if (element == null)
                return;

            string clickEvent = element.GetAttribute("onClickEvent");

            if (clickEvent != "")
            {
                session.Execute(clickEvent);
            }
        }
开发者ID:ZanderAdam,项目名称:Roslyn-Web-Scripting,代码行数:14,代码来源:WebEngine.cs


示例12: doc_MouseMove

 void doc_MouseMove(object sender, HtmlElementEventArgs e)
 {
     // If mouseCoords is empty don't close the screen saver
     if (!mouseCoords.IsEmpty)
     {
         // If the mouse actually moved more than 10 pixes in any direction
         if (Math.Abs(mouseCoords.X - e.MousePosition.X) > 10
             ||  Math.Abs(mouseCoords.Y - e.MousePosition.Y) > 10)
         {
             // Close
             this.Close();
         }
     }
     // Set the new point where the mouse is
     mouseCoords = new Point(e.MousePosition.X, e.MousePosition.Y);
 }
开发者ID:Whitey04,项目名称:windows_web_screensaver,代码行数:16,代码来源:ScreensaverForm.cs


示例13: OnClassfiyClick

        public void OnClassfiyClick(object sender, HtmlElementEventArgs e)
        {
            if (edRuleFile == null || edBookmarkFile == null)
            {
                webUI.Reload();
                return;
            }

            String ruleFilePath     = edRuleFile.GetAttribute("value");
            String bookmarkFilePath = edBookmarkFile.GetAttribute("value");

            if(ruleFilePath == "" || bookmarkFilePath == "")
            {
                return;
            }

            bookmarkExecuter.Execute(bookmarkFilePath, ruleFilePath, true);
        }
开发者ID:soxfmr,项目名称:BookmarkerRe,代码行数:18,代码来源:MainForm.cs


示例14: element_Click

 private void element_Click(object sender, HtmlElementEventArgs e)
 {
     string url = ((HtmlElement)sender).GetElementsByTagName("img")[0].GetAttribute("src");
     if (!Directory.Exists("tmp"))
         Directory.CreateDirectory("tmp");
     var fileName = "tmp\\icon.png";
     // Redownload...
     // It was hard to save the image from cache so I do it this way
     // If the images were downloaded  directly from JakuRepo's server, I would try the hard and
     // more efficent way, but we are downloading from imgur, imageshack etc. So I don't care.
     //
     // If you just want to save some bandwith or improve my version, check this out:
     // http://stackoverflow.com/questions/2566898/save-images-in-webbrowser-control-without-redownloading-them-from-the-internet
     using (WebClient wClient = new WebClient()) {
         wClient.DownloadFileAsync(new Uri(url), fileName);
         wClient.DownloadFileCompleted += new AsyncCompletedEventHandler(installIcon);
     }
 }
开发者ID:PythEch,项目名称:JakuCustomIconInstaller,代码行数:18,代码来源:frmMain.cs


示例15: webBrowser1_ClickHandler

 public void webBrowser1_ClickHandler(object sender, HtmlElementEventArgs ev)
 {
     string sValues = (string)doc.InvokeScript("getValues");
     if (sValues != null && !listBox1.Items.Contains(sValues))
     {
         bool objectIdentified = languageIsVB ? !sValues.Contains(" As New type(") : !sValues.StartsWith("public type ");
         if (objectIdentified)
         {
             listBox1.Items.Add(sValues);
             toolStripStatusLabel1.Text = "Object added!";
         }
         else
         {
             toolStripStatusLabel1.Text = "Warning: Object not identified!";
         }
     }
     else
     {
         toolStripStatusLabel1.Text = "Warning: This object was recorded already!!!";
     }
 }
开发者ID:Rimpy369,项目名称:cuite,代码行数:21,代码来源:Form1.cs


示例16: Document_MouseDown

 void Document_MouseDown(object sender, HtmlElementEventArgs e)
 {
     using (new SoftTech.Gui.WaitCursorShower(this))
       {
     e.BubbleEvent = false;
     if (e.MouseButtonsPressed == MouseButtons.Left || e.MouseButtonsPressed == MouseButtons.None)
     {
       dragHasDone = false;
       HtmlElement element = null;
       if (e.MouseButtonsPressed == MouseButtons.Left)
     element = webBrowser1.Document.GetElementFromPoint(e.ClientMousePosition);
       else
       {
     element = webBrowser1.Document.GetElementFromPoint(e.ClientMousePosition);
     //element = (HtmlElement)sender;
       }
       dragNode = map.GetXmlNode(GetModel().ActivePosition.XmlDocument, new HtmlElementWrapper(element));
       GetModel().SelectedNodes[GetModel().ActivePosition.Persist] = dragNode;
     }
       }
 }
开发者ID:rushit-dawda,项目名称:content-extractor,代码行数:21,代码来源:WebBrowserWrapper.cs


示例17: el_MouseDown

        void el_MouseDown(object sender, HtmlElementEventArgs e)
        {
            //HtmlElement elFrom = e.FromElement;
                //if (elFrom != null && _lastElement != elFrom)
                //{
                //    //string fromMsg = e.FromElement.TagName + " " + e.FromElement.Name;
                //    //if (fromMsg != string.Empty)
                //    //    _area.textBox2.Text += string.Format("el_MouseOver From={0}, To=\r\n", fromMsg);

                //    //string elFrom = e.FromElement == null ? string.Empty : e.FromElement.TagName + " " + e.FromElement.Name;
                //    //string elTo = e.ToElement == null ? string.Empty : e.ToElement.TagName + " " + e.ToElement.Name;

                //    //HtmlElement parent = elFrom.Parent;
                //    //if (parent != null)
                //    //    _area.Drawing.DrawRectangle(parent.ClientRectangle, FrameStyle.Dashed);

                //    //_area.Drawing.DrawFocusedArea(elFrom.ClientRectangle);

                //    _area.propertyGrid1.SelectedObject = elFrom;
                //    _lastElement = elFrom;
                //}
        }
开发者ID:Alister742,项目名称:ParseKit,代码行数:22,代码来源:WebEventProvider.cs


示例18: Content_MouseEnter

 private void Content_MouseEnter(object sender, HtmlElementEventArgs e)
 {
     if (Keys.None == (Keys.Alt & Control.ModifierKeys)) {
         HtmlElement elem = sender as HtmlElement;
         int key = this.dicContent[elem];
         string id = GConvert.ToContentId(key);
         string tipText;
         GContentClass cont;
         if (Program.CacheController.TryFindContent(key, out cont)) {
             this.ttId.ToolTipTitle = id + " のキャッシュ";
             tipText =
                 cont.Title + Environment.NewLine
                 + cont.SeriesNumber + Environment.NewLine
                 + cont.Subtitle + Environment.NewLine
                 + cont.DurationValue.ToString() + Environment.NewLine
                 + cont.DeadlineValue.ToString();
         } else {
             this.ttId.ToolTipTitle = id;
             tipText = " ";
         }
         //場所がうまく取れないので MousePosition で
         this.ttId.Show(tipText, this, this.PointToClient(Control.MousePosition));
     }
 }
开发者ID:ohtake,项目名称:gyao-gexplorer,代码行数:24,代码来源:GWebBrowser.cs


示例19: HtmlDocument1_MouseOver

 private void HtmlDocument1_MouseOver(Object sender, HtmlElementEventArgs e)
 {
     //System.Diagnostics.Trace.WriteLine(e.ToElement.InnerHtml);
 }
开发者ID:songques,项目名称:DataSolution,代码行数:4,代码来源:MainForm.cs


示例20: Window_Scroll

 void Window_Scroll(object sender, HtmlElementEventArgs e)
 {
     // If there is a selected tab, take it's screenshot
     // invalidate the tab's thumbnail
     // update the "preview" object with the new thumbnail
     if (tabControl1.TabPages.Count > 0 && tabControl1.SelectedTab != null)
         UpdatePreviewBitmap(tabControl1.SelectedTab);
 }
开发者ID:QuocHuy7a10,项目名称:Arianrhod,代码行数:8,代码来源:Form1.cs



注:本文中的System.Windows.Forms.HtmlElementEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.Hwnd类代码示例发布时间:2022-05-26
下一篇:
C# Forms.HtmlElement类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap