Ejemplo n.º 1
0
 private void menuItemWebBrowser_Click(object sender, EventArgs e)
 {
     try
     {
         FrmWebBrowser frmBrowser = new FrmWebBrowser();
         frmBrowser.Text = "浏览器";
         if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
         {
             frmBrowser.MdiParent = this;
             frmBrowser.Show();
         }
         else
             frmBrowser.Show(dockPanel);
     }
     catch (Exception ex)
     {
         Program.ShowMessageBox("MainForm", ex);
     }
 }
Ejemplo n.º 2
0
 public void ShowWebBrowser(AccountInfo account)
 {            
     FrmWebBrowser frmbrowser = new FrmWebBrowser();
     frmbrowser.Account = account;
     frmbrowser.NeedsPost = true;
     frmbrowser.Text = account.UserName;
     if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
     {
         frmbrowser.MdiParent = this;
         frmbrowser.Show();
     }
     else
         frmbrowser.Show(dockPanel);
 }
Ejemplo n.º 3
0
 private void menuItemHomePage_Click(object sender, EventArgs e)
 {
     try
     {
         FrmWebBrowser frmBrowser = new FrmWebBrowser();
         frmBrowser.StartUrl = MainConstants.SUPPORT_HOMEPAGE;
         frmBrowser.Text = "开始页";
         if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
         {
             frmBrowser.MdiParent = this;
             frmBrowser.Show();
         }
         else
             frmBrowser.Show(dockPanel);
     }
     catch (Exception ex)
     {
         Program.ShowMessageBox("MainForm", ex);
     }
 }