private void ManageLink(string url, bool isEmail) { if (this.InvokeRequired) { DelegateManageLink inv = new DelegateManageLink(this.ManageLink); this.Invoke(inv, new object[] { url, isEmail }); } else { if (!string.IsNullOrEmpty(url)) { string tmp = (isEmail == true ? "mailto:" : "") + url; System.Diagnostics.Process.Start(tmp); } } }
/// <summary> /// Handling Links or EMail LinkLabel control on form /// </summary> /// <param name="url">A <see cref="string"/> object.</param> /// <param name="isEmail">A <see cref="bool"/> parameter.</param> private void ManageLink(string url, bool isEmail) { if (this.InvokeRequired) { DelegateManageLink inv = new DelegateManageLink(this.ManageLink); this.Invoke(inv, new object[] { url, isEmail }); } else { if (!string.IsNullOrEmpty(url)) { string tmp = (isEmail == true ? "mailto:" : "") + url; System.Diagnostics.Process.Start(tmp); } } }