コード例 #1
0
ファイル: ActionAbout.cs プロジェクト: 00mjk/LanExchange
 public void Execute()
 {
     if (m_Instance == null)
     {
         m_Instance             = App.Resolve <IAboutView>();
         m_Instance.ViewClosed += OnViewClosed;
         m_Instance.Show();
     }
     else
     {
         m_Instance.Activate();
     }
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 private void Execute(IAboutView helpView)
 {
     helpView?.Show();
 }