Пример #1
0
        private void tvFolders_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if (tvFolders.SelectedIndex > -1 && imap41.Active)
            {
                imap41.SelectMailBox(tvFolders.Items[tvFolders.SelectedIndex].ToString());
            }

            FillMessages();
        }
Пример #2
0
        private void tvFolders_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if (tvFolders.SelectedIndex < 0)
            {
                return;
            }

            imap41.SelectMailBox(tvFolders.Items[tvFolders.SelectedIndex].ToString());

            edtSubscribed.Text  = subscribeStatus[tvFolders.Items[tvFolders.SelectedIndex]].ToString();
            edtAll.Text         = imap41.CurrentMailBox.ExistsMessages.ToString();
            edtRecent.Text      = imap41.CurrentMailBox.RecentMessages.ToString();
            edtFirstUnseen.Text = imap41.CurrentMailBox.FirstUnseen.ToString();

            GetMessageList();
        }
Пример #3
0
        private void tvFolders_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if (changing)
            {
                return;
            }

            changing = true;
            try {
                EnableControls(false);

                if (tvFolders.SelectedIndex > -1 && imap.Active)
                {
                    imap.SelectMailBox(tvFolders.Items[tvFolders.SelectedIndex].ToString());
                }

                FillMessages();
            }
            finally {
                changing = false;
                EnableControls(true);
            }
        }