Example #1
0
        /// <summary>
        /// Выводит окно с запросом на добавление темы в очередь загрузки.
        /// </summary>
        /// <param name="mid">ID сообщения</param>
        public void AddTopicForDownloadWithConfirm(int mid)
        {
            var result = MessageBox.Show(
                SR.MessageAbsentMsgBoxMessage,
                SR.MessageAbsentMsgBoxTitle,
                MessageBoxButtons.YesNo, MessageBoxIcon.Question,
                MessageBoxDefaultButton.Button1);

            if (result != DialogResult.Yes)
            {
                return;
            }
            var hint = string.Format(SR.Forum.DownloadTopicHint, mid);

            DownloadTopics.Add(SR.Forum.DownloadTopicClickSource, mid, hint);
        }
Example #2
0
        /// <summary>
        /// Поместить сообщение в очередь загрузки.
        /// </summary>
        /// <param name="mid"></param>
        public void AddTopicForDownload(int mid)
        {
            var hint = string.Format(SR.Forum.DownloadTopicHint, mid);

            DownloadTopics.Add(SR.Forum.DownloadTopicManualSource, mid, hint);
        }