Пример #1
0
 /// <summary>
 /// ��־
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void inbox_ButtonClick(object sender, EventArgs e)
 {
     frmMessage inbox = new frmMessage(this.webBrowser1);
     inbox.FormClosing += new FormClosingEventHandler(delegate
     {
         UpdateInboxState();
     });
     inbox.ShowDialog();
 }
Пример #2
0
 /// <summary>
 /// �շ�����
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void inbox_ButtonClick(object sender, EventArgs e)
 {
     WebBrowser browser = null;
     Control CurrentControl = tabControl1.SelectedTab.Controls[0];
     if (CurrentControl is IUserControl)
         browser = (CurrentControl as IUserControl).GetBody();
     frmMessage inbox = new frmMessage(browser);
     inbox.FormClosing += new FormClosingEventHandler(delegate
     {
         UpdateInboxState();
     });
     inbox.ShowDialog();
 }