Beispiel #1
0
        ///////////////////////////////////////////////////////////////////////

        protected virtual bool ShowHostForm()
        {
            bool     result = false;
            HostForm hostForm;

            lock (syncRoot)
            {
                hostForm = this.hostForm;
            }

            if (hostForm != null)
            {
                hostForm.Show();
                result = true;
            }

            return(result);
        }
 public void                             ShowHostForm(System.Windows.Forms.IWin32Window owner = null)
 {
     if (HostForm == null || HostForm.IsDisposed)
     {
         HostForm = new HostForm(this);
         SetHostFormCaption();
     }
     if (HostForm.Visible)
     {
         if (HostForm.WindowState == System.Windows.Forms.FormWindowState.Minimized)
         {
             HostForm.WindowState = System.Windows.Forms.FormWindowState.Normal;
         }
         HostForm.Focus();
     }
     else
     {
         HostForm.Show(owner);
     }
 }