예제 #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);
            }
        }