Example #1
0
        private void lvwMails_ItemActivate(object sender, EventArgs e)
        {
            if (lvwMails.SelectedIndices.Count > 0)
            {
                ListViewItem lvitem = lvwMails.Items[lvwMails.SelectedIndices[0]];
                string MessageID = lvitem.Tag.ToString();
                frmPOP3.ToggleMyStatus(this);
                Message msg = Imap.ExamineMailbox("inbox").Fetch.MessageObject(int.Parse(MessageID));
                frmPOP3.ToggleMyStatus(this);
                frmPOP3.Sleep();

                Imap4ItemView item = new Imap4ItemView();
                item.MessageObject = msg;
                item.ShowDialog();
                frmPOP3.Sleep();
            }
        }
Example #2
0
        private void lvwMails_ItemActivate(object sender, EventArgs e)
        {
            if (lvwMails.SelectedIndices.Count > 0)
            {
                ListViewItem lvitem    = lvwMails.Items[lvwMails.SelectedIndices[0]];
                string       MessageID = lvitem.Tag.ToString();
                frmPOP3.ToggleMyStatus(this);
                Message msg = Imap.ExamineMailbox("inbox").Fetch.MessageObject(int.Parse(MessageID));
                frmPOP3.ToggleMyStatus(this);
                frmPOP3.Sleep();

                Imap4ItemView item = new Imap4ItemView();
                item.MessageObject = msg;
                item.ShowDialog();
                frmPOP3.Sleep();
            }
        }