/// <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(); }
/// <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(); }