Exemple #1
0
        private void Reply_Click(object sender, RoutedEventArgs e)
        {
            NewEmailWindow newEmailWindow = new NewEmailWindow(emailModel);

            newEmailWindow.Show();
            this.Close();
        }
        private void NewEmailBtn_Click(object sender, RoutedEventArgs e)
        {
            this.Hide();
            var    senderString    = ExtractEmail.ExtractEmails(Sender.Text);
            var    subject         = String.Format("re: {0}", Subject.Text);
            var    split           = "Sender: ";
            string senderSubString = Sender.Text.Substring(Sender.Text.IndexOf(split) + split.Length);
            var    emptyLines      = new String('\n', 5);
            var    body            = String.Format("{0}{1} sent this (date: {2}):\n" +
                                                   "{3}", emptyLines, senderSubString, Date.Text, Body.Text);
            NewEmailWindow newEmailWindow = new NewEmailWindow(senderString, subject, body);

            newEmailWindow.ShowDialog();
            this.Show();
        }
        private void NewEmail_Button(object sender, RoutedEventArgs e)
        {
            NewEmailWindow newEmailWindow = new NewEmailWindow();

            newEmailWindow.Show();
        }