private void buttonBack_Click(object sender, EventArgs e)
 {
     staticVar = this;
     this.Hide();
     FormInbox formInbox = new FormInbox();
     formInbox.Show();
 }
 private void buttonSend_Click(object sender, EventArgs e)
 {
     staticVar = this;
     this.Hide();
     Form1 form1 = new Form1();
     form1.Show();
 }
Exemplo n.º 3
0
 private void buttonForward_Click(object sender, EventArgs e)
 {
     // Mail - Forward
     staticVar = this;
     //this.Hide();
     Form1 form1 = new Form1(selectedMail, 2);
     form1.Show();
 }
        private void buttonsend_Click(object sender, EventArgs e)
        {
            SmtpClient client = new SmtpClient("smtp.gmail.com", 587);
            client.Credentials = new NetworkCredential("*****@*****.**", "N53SN53S");
            MailMessage msg = new MailMessage();
            msg.From = new MailAddress(textBoxFrom.Text);
            msg.To.Add(new MailAddress(textBoxTo.Text));
            msg.Subject = textBoxSub.Text;
            msg.Body = textBoxBody.Text;
            try
            {
                client.Send(msg);
            }
            catch(Exception ex)
            {
                MessageBox.Show("blabla: " + ex.Message);
            }

            staticVar = this;
            this.Hide();
            FormInbox formInbox = new FormInbox();
            formInbox.Show();
        }
Exemplo n.º 5
0
 private void settingsToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     // Menu - Settings
     staticVar = this;
     FormSettings formSettings = new FormSettings();
     formSettings.Show();
 }
Exemplo n.º 6
0
 private void sendPublicKeyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     staticVar = this;
     Form1 form1 = new Form1(0, 3);
     form1.Show();
 }
Exemplo n.º 7
0
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // Menu - New mail
     staticVar = this;
     //this.Hide();
     Form1 form1 = new Form1(selectedMail, 0);
     form1.Show();
 }
Exemplo n.º 8
0
 private void buttonReply_Click(object sender, EventArgs e)
 {
     // Mail - Reply
     staticVar = this;
     Form1 form1 = new Form1(selectedMail, 1);
     form1.Show();
 }
Exemplo n.º 9
0
 private void buttonReply_Click(object sender, EventArgs e)
 {
     if (selectedMail != 0000)
     {
         // Mail - Reply
         staticVar = this;
         //this.Hide();
         Form1 form1 = new Form1(selectedMail, 1);
         form1.Show();
     }
     else
     {
         MessageBox.Show("Choose a Message");
     }
 }