/// <summary> /// 新建消息彈出窗口 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnNewMessage_Click(object sender, EventArgs e) { NewMessageForm newMessageForm = new NewMessageForm(); //newMessageForm.MdiParent = this; //newMessageForm.Location = new System.Drawing.Point(0, 102); newMessageForm.Show(); }
private void tvSendMail_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { try { TreeNode tn = tvSendMail.SelectedNode; if (tn == null) { return; } EmailInfo entity = tn.Tag as EmailInfo; if (entity != null) { NewMessageForm message = new NewMessageForm(entity); message.Text = entity.EmailTitle; message.Show(); } } catch (Exception ex) { LogHelper.Error("郵件管理", "雙擊打開郵件時出錯", ex.Message, ex); } }
private void btnNewMail_Click(object sender, EventArgs e) { NewMessageForm newMail = new NewMessageForm(); newMail.Show(); }
private void NewToolStripMenuItem_Click(object sender, EventArgs e) { NewMessageForm newMail = new NewMessageForm(); newMail.Show(); }