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

C# Forms.LinkLabelLinkClickedEventArgs类代码示例

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

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



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


示例16: linkLabelTestConnection_LinkClicked

 private void linkLabelTestConnection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     var result = _settings.TestConnection();
     if (result.Result == ConnectionResult.Succeeded)
     {
         MessageBox.Show(this, "Connection Successful");
     }
     else if (result.Result == ConnectionResult.DatabaseNeedsConversion)
     {
         var choice = MessageBox.Show(this, "The database is using an outdated database format." + Environment.NewLine +
             "Would you like to convert to the new format?", "Upgrade Database", MessageBoxButtons.YesNo);
         if (choice == DialogResult.Yes)
         {
             UpgradeDatabase();
         }
     }
     else
     {
         string message = "Connection failed!";
         if (!string.IsNullOrEmpty(result.AdditionalInformation))
         {
             message += Environment.NewLine + result.AdditionalInformation;
         }
         MessageBox.Show(this, message);
     }
 }
开发者ID:sansong,项目名称:RightEdgePlugins,代码行数:26,代码来源:LinqToSQLSettingsEditor.cs


示例17: linkLabel1_LinkClicked

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Clipboard.SetText(textBox1.Text);
            MessageBox.Show("The error report has been copied to your clipboard. Please log into JIRA and click 'Create Issue'. Paste the report into the Discription box.");

            Process.Start("https://jira.imahi.net");
        }
开发者ID:gregjurman,项目名称:conduit,代码行数:7,代码来源:ExceptionForm.cs


示例18: lblLogin_LinkClicked

 private void lblLogin_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (ShowLoginForm() == DialogResult.OK)
     {
         ShowAccountControl();
     }
 }
开发者ID:ahtisam,项目名称:HomeAccounting,代码行数:7,代码来源:frmMain.cs


示例19: fieldMappingsLink_LinkClicked

 private void fieldMappingsLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (OnShowCustomFieldMappings != null)
     {
         OnShowCustomFieldMappings();
     }
 }
开发者ID:KilskyreMan,项目名称:JiraToTfs,代码行数:7,代码来源:TicektsNotImportedView.cs


示例20: lnkSheetPath_LinkClicked

 private void lnkSheetPath_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (DialogResult.OK == dlgSheetPath.ShowDialog())
     {
         txtSheetPath.Text = dlgSheetPath.SelectedPath;
     }
 }
开发者ID:CodeCamps,项目名称:Class2013,代码行数:7,代码来源:Form1.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Forms.ListBox类代码示例发布时间:2022-05-26
下一篇:
C# Forms.LinkLabel类代码示例发布时间: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