本文整理汇总了C#中System.Windows.Forms.LinkLabelLinkClickedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# LinkLabelLinkClickedEventArgs类的具体用法?C# LinkLabelLinkClickedEventArgs怎么用?C# LinkLabelLinkClickedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LinkLabelLinkClickedEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了LinkLabelLinkClickedEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: linkLabel1_LinkClicked
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
try
{
System.Diagnostics.Process.Start("https://github.com/jingjiajie/SmartEditor");
}catch(Exception ex) { MessageBox.Show(this, "无法打开网页,请检查您的浏览器配置", "错误消息"); };
}
示例2: lnk_gotoUrl_LinkClicked
private void lnk_gotoUrl_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var startInfo = new ProcessStartInfo("explorer.exe", _gotoUrl);
using (Process.Start(startInfo)) { } ;
Close();
}
示例3: statusLinkLabel_LinkClicked
private void statusLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (!string.IsNullOrEmpty(_trackerItem))
Program.TryStart(_trackerItem);
else
Program.TryStart("http://sourceforge.net/tracker/?atid=1119665&group_id=242527&func=browse");
}
示例4: lnkBrowseTo_LinkClicked
private void lnkBrowseTo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
SaveFileDialog diag = new SaveFileDialog();
if (!String.IsNullOrEmpty(txtFromDir.Text) || !String.IsNullOrWhiteSpace(txtFromDir.Text))
{
if (!String.IsNullOrEmpty(fname) || !String.IsNullOrWhiteSpace(fname))
{
diag.FileName = fname;
}
else
{
h.alert("The source file name is empty.\nYou must first select a source file above and then select the destination.", "File Location Error");
txtFromDir.Focus();
fname = null;
return;
}
}
else
{
h.alert("The source file name is empty.\nYou must first select a source file above and then select the destination.", "File Location Error");
txtFromDir.Focus();
fname = null;
return;
}
if (diag.ShowDialog() == DialogResult.OK)
{
txtToDir.Text = diag.FileName.ToString();
}
}
示例5: HomepageLINK_LinkClicked
private void HomepageLINK_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
ProcessStartInfo info = new ProcessStartInfo(Loader.GetInstance().PluginInfo.HomePage);
info.UseShellExecute = true;
Process.Start(info);
}
示例6: lnkAppFile_LinkClicked
private void lnkAppFile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (System.IO.File.Exists(_file))
{
System.Diagnostics.Process.Start("notepad.exe", _file);
}
}
示例7: btnFilterAll_LinkClicked
private void btnFilterAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
for (int i = 0; i < checkStatus.Items.Count; i++)
{
checkStatus.SetItemChecked(i, true);
}
}
示例8: linkLabel1_LinkClicked
protected override void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
UndoableUnitOfWorkHelper.Do(LexTextControls.ksUndoInsertPhonologicalFeature, LexTextControls.ksRedoInsertPhonologicalFeature,
m_cache.ActionHandlerAccessor, () =>
{
m_selFeatDefn = m_cache.ServiceLocator.GetInstance<IFsClosedFeatureFactory>().Create();
m_cache.LangProject.PhFeatureSystemOA.FeaturesOC.Add(m_selFeatDefn);
// create the two default feature values
IFsSymFeatVal symFV;
var closed = m_selFeatDefn as IFsClosedFeature;
if (closed != null)
{
var symFeatFactory = m_cache.ServiceLocator.GetInstance<IFsSymFeatValFactory>();
symFV = symFeatFactory.Create();
closed.ValuesOC.Add(symFV);
symFV.SimpleInit("+", "positive");
symFV = symFeatFactory.Create();
closed.ValuesOC.Add(symFV);
symFV.SimpleInit("-", "negative");
}
// end create
});
DialogResult = DialogResult.Yes;
Close();
}
示例9: llblViewDetails_LinkClicked
private void llblViewDetails_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if(orderId == -1)
{
MessageBox.Show("Please select customer to view details!");
return;
}
try
{
FormCollection forms = Application.OpenForms;
bool check = false;
foreach (Form item in forms)
{
if (item.Name.Equals("ReportDetailsForm"))
{
check = true;
item.Activate();
break;
}
}
if (!check)
{
ReportDetailsForm reportDetailsForm = new ReportDetailsForm(this.orderId);
reportDetailsForm.ShowDialog();
}
}
catch
{
return;
}
}
示例10: HyperlinkLabel_LinkClicked
private void HyperlinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
// Determine which link was clicked within the LinkLabel.
//this.linkLabel1.Links[linkLabel1.Links.IndexOf(e.Link)].Visited = true;
// Display the appropriate link based on the value of the
// LinkData property of the Link object.
Uri target = e.Link.LinkData as Uri;
// If the value looks like a URL, navigate to it.
// Otherwise, display it in a message box.
try
{
Console.WriteLine(target.IsAbsoluteUri);
if (target.AbsoluteUri.StartsWith("file"))
{
System.Diagnostics.Process.Start(target.AbsolutePath);
}
else
{
System.Diagnostics.Process.Start(target.AbsoluteUri);
}
}
catch
{
//MessageBox.Show("Item clicked: " + target);
}
}
示例11: linkLabelAgregarFoto_LinkClicked
private void linkLabelAgregarFoto_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (Propiedad.IdPropiedad == 0)
{
if (onSolicitarGuardarFicha != null)
{
this.onSolicitarGuardarFicha(null, null);
System.Threading.Thread.Sleep(new TimeSpan(0, 0, 1));
if (Propiedad.IdPropiedad == 0)
{
Framework.General.GIMsgBox.Show("La propiedad no puede ser guardada. Verifique los datos de la ficha", GI.Framework.General.enumTipoMensaje.Advertencia);
return;
}
}
}
Formularios.FrmFoto frm = new GI.UI.Propiedades.Formularios.FrmFoto(Propiedad);
if (frm.ShowDialog() == DialogResult.OK)
{
cbFotos.Items.Clear();
pictureBox1.Image = null;
Propiedad.GaleriaFotos.RecuperarPorPropiedad(Propiedad);
foreach (GI.BR.Propiedades.Galeria.Foto f in Propiedad.GaleriaFotos)
{
cbFotos.Items.Add(f);
if (f.IdFoto == frm.GetFoto.IdFoto)
cbFotos.SelectedItem = f;
}
}
}
示例12: linkEmail_LinkClicked
private void linkEmail_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (!OpenEmailLink(linkEmail.Text))
{
MessageBox.Show("No default email client found.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
示例13: linkLabel1_LinkClicked
//"Register" label
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
//If clicked create new register screen
RegisterScreen registerScreen = new RegisterScreen();
registerScreen.Show();
this.Hide();
}
示例14: linkLabel1_LinkClicked
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
if (!URLNavigator.ffOpenURL(Constants.registerurl))//首先尝试firefox
{
URLNavigator.defaultOpenURL(Constants.registerurl);
}
}
示例15: linkLabel_continue_LinkClicked
private void linkLabel_continue_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
isGoingToMain = true;
log.Debug("Going to Main Screen");
main.Show();
this.Close();
}