本文整理汇总了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;
}
示例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
}
示例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);
}
}
示例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;
}
示例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;
}
示例6: element_MouseEnter
void element_MouseEnter(object sender, HtmlElementEventArgs e)
{
//HtmlElement elem = e.FromElement;
//if (elem != null && _lastElement != elem)
//{
// UpdateLastSelected(elem);
// UpdateFocusDraw();
//}
}
示例7: Document_MouseUp
private void Document_MouseUp(object sender, HtmlElementEventArgs e)
{
if (e.MouseButtonsPressed == MouseButtons.Right)
{
摄像头地理信息 a = new 摄像头地理信息();
a.ShowDialog();
}
}
示例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);
}
示例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);
}
}
示例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;
}
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
}
示例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!!!";
}
}