private void ToolStripMenuItem_Edit_DraftItem_Click(object sender, EventArgs e)
        {
            if (dataGridView_ItemList.SelectedRows.Count == 0)
            {
                return;
            }

            SendMailForm sendMailForm = new SendMailForm(dataGridView_ItemList.SelectedRows[0].Tag.ToString());

            sendMailForm.Show();
        }
 private void NewMessageToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (treeView_Mailbox.SelectedNode != null)
     {
         TreeNode     selectedNode = treeView_Mailbox.SelectedNode;
         SendMailForm sendMailForm = new SendMailForm((FolderInfo)selectedNode.Tag, selectedNode.Text);
         sendMailForm.Show(this);
     }
     else
     {
         SendMailForm sendMailForm = new SendMailForm();
         sendMailForm.Show(this);
     }
 }
Ejemplo n.º 3
0
        private void SendMailBtn_Click(object sender, EventArgs e)
        {
            SendMailForm sendMailForm = new SendMailForm(new Point(Location.X + Width, Location.Y));

            sendMailForm.ShowDialog();
        }