当前位置: 首页>>代码示例>>C#>>正文


C# Forms.HtmlElementEventArgs类代码示例

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


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


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