void taskbarNotifier_ContentClick(object sender, EventArgs e) { if (!string.IsNullOrEmpty(m_actionAddress)) { ApplicationExtention.NavigateTo(ServiceProvider.GetService <IApplication>(), m_actionAddress); } }
private void linkLabelAddress_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (!string.IsNullOrEmpty(linkLabelAddress.Text)) { ApplicationExtention.NavigateTo(ServiceProvider.GetService <IApplication>(), linkLabelAddress.Text); } }
private static void Block() { if (Application.Current == null) return; while (true) { ApplicationExtention.DoEvents(Application.Current); System.Threading.Thread.Sleep(5); break; } }