Esempio n. 1
0
        void btnReply_Click(object sender, RoutedEventArgs e)
        {
            if ("INBOX" != mail.getString("folder"))
                return;
            MailSendWindow win = new MailSendWindow();
            win.Mail_Type = MailSendWindow.MailType.Reply;
            win.Mail = mail;
            win.Show();

            this.Dispatcher.BeginInvoke((System.Action)delegate
            {
                this.Close();
            }, System.Windows.Threading.DispatcherPriority.ApplicationIdle);
        }
Esempio n. 2
0
        void btnTransmit_Click(object sender, RoutedEventArgs e)
        {
            if (mail == null || mail is ASObjectGroup)
                return;

            MailSendWindow win = new MailSendWindow();
            win.Mail_Type = MailSendWindow.MailType.Transmit;
            win.Mail = mail;
            win.Show();

            this.Dispatcher.BeginInvoke((System.Action)delegate
            {
                this.Close();
            }, System.Windows.Threading.DispatcherPriority.ApplicationIdle);
        }
Esempio n. 3
0
 private void btnNewMail_Click(object sender, RoutedEventArgs e)
 {
     MailSendWindow win = new MailSendWindow();
     win.Owner = WPFUtil.FindAncestor<Window>(this);
     win.Show();
 }