當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。