private void OpenEmailAttachment(Attachment a) { Message m = xstFile.OpenAttachedMessage(a); ShowMessage(m); view.PushMessage(m); }
private void btnOpenEmail_Click(object sender, RoutedEventArgs e) { Message m = xstFile.OpenAttachedMessage(listAttachments.Items.Cast <Attachment>().First(a => a.IsEmail)); ShowMessage(m); view.PushMessage(m); }