private void GetFolderList() { subscribeStatus.Clear(); tvFolders.Items.Clear(); lvMessages.Items.Clear(); edtSubscribed.Text = ""; edtAll.Text = ""; edtRecent.Text = ""; edtFirstUnseen.Text = ""; string[] mailboxes = imap41.GetMailBoxes(); string[] subscribed = imap41.GetSubscribedMailBoxes(); for (int i = 0; i < mailboxes.Length; i++) { string item = mailboxes[i].ToString(); tvFolders.Items.Add(item); subscribeStatus.Add(item, (Array.IndexOf(subscribed, item) > -1)); } }
private void FillFolderList() { tvFolders.Items.Clear(); lvMessages.Items.Clear(); edtFrom.Text = ""; edtSubject.Text = ""; memBody.Text = ""; string[] mailboxes = imap41.GetMailBoxes(); for (int i = 0; i < mailboxes.Length; i++) { string item = mailboxes[i].ToString(); tvFolders.Items.Add(item); } }
private void FillFolderList() { tvFolders.Items.Clear(); lvMessages.Items.Clear(); ClearMessage(); string[] mailboxes = imap.GetMailBoxes(); for (int i = 0; i < mailboxes.Length; i++) { string item = mailboxes[i].ToString(); if (string.Compare("[Gmail]", item) != 0) { tvFolders.Items.Add(item); } } }