public void Execute() { if (m_Instance == null) { m_Instance = App.Resolve <IAboutView>(); m_Instance.ViewClosed += OnViewClosed; m_Instance.Show(); } else { m_Instance.Activate(); } }
public void ShowAboutForm() { if (singeltonAboutForm != null && singeltonAboutForm.IsDisposed) { singeltonAboutForm.BringToFront(); } else { singeltonAboutForm = new AboutView(); singeltonAboutForm.FormClosed += delegate { singeltonAboutForm = null; }; singeltonAboutForm.visitAboutUrl += delegate { System.Diagnostics.Process.Start(AboutInformation.websiteUrl); }; singeltonAboutForm.Show(); } }
private void Execute(IAboutView helpView) { helpView?.Show(); }