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); }
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); }
private void btnNewMail_Click(object sender, RoutedEventArgs e) { MailSendWindow win = new MailSendWindow(); win.Owner = WPFUtil.FindAncestor<Window>(this); win.Show(); }