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


C# Forms.LinkLabelLinkClickedEventArgs类代码示例

本文整理汇总了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, "无法打开网页,请检查您的浏览器配置", "错误消息"); };
 }
开发者ID:jingjiajie,项目名称:SmartEditor,代码行数:7,代码来源:Form_About.cs

示例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();
        }
开发者ID:huipengly,项目名称:WGestures,代码行数:7,代码来源:UpdateInfoForm.cs

示例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");
 }
开发者ID:andyvand,项目名称:ProcessHacker,代码行数:7,代码来源:ErrorDialog.cs

示例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();
            }
        }
开发者ID:codedecay,项目名称:FileMig,代码行数:33,代码来源:Setup.cs

示例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);
        }
开发者ID:tomasdeml,项目名称:hyphen,代码行数:7,代码来源:AboutContent.cs

示例6: lnkAppFile_LinkClicked

 private void lnkAppFile_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (System.IO.File.Exists(_file))
     {
         System.Diagnostics.Process.Start("notepad.exe", _file);
     }
 }
开发者ID:xescrp,项目名称:breinstormin,代码行数:7,代码来源:appSettings_Visual_Editor.cs

示例7: btnFilterAll_LinkClicked

 private void btnFilterAll_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     for (int i = 0; i < checkStatus.Items.Count; i++)
     {
         checkStatus.SetItemChecked(i, true);
     }
 }
开发者ID:slagovskiy,项目名称:psa,代码行数:7,代码来源:frmMain.cs

示例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();
		}
开发者ID:bbriggs,项目名称:FieldWorks,代码行数:27,代码来源:MasterPhonologicalFeatureListDlg.cs

示例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;
            }
        }
开发者ID:haltt051093,项目名称:IMS-datacenter,代码行数:32,代码来源:ReportForm.cs

示例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);
            }
        }
开发者ID:zhiyix,项目名称:stockmarket,代码行数:28,代码来源:NewsPanel.cs

示例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;

                }

            }
        }
开发者ID:enzoburga,项目名称:pimesoft,代码行数:35,代码来源:TabGaleriaFotos.cs

示例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);
     }
 }
开发者ID:RiskyKen,项目名称:tray-usage,代码行数:7,代码来源:frmAbout.cs

示例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();
 }
开发者ID:AndySchaaf,项目名称:CEN3031-RedBlocks,代码行数:8,代码来源:LogInScreen.cs

示例14: linkLabel1_LinkClicked

 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (!URLNavigator.ffOpenURL(Constants.registerurl))//首先尝试firefox
     {
         URLNavigator.defaultOpenURL(Constants.registerurl);
     }
 }
开发者ID:ndong211,项目名称:bo,代码行数:7,代码来源:FirstNotifyWindow.cs

示例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();
 }
开发者ID:ErikHage,项目名称:HabitatTracker,代码行数:7,代码来源:LoadingScreen.cs


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