Пример #1
0
        public override void ShowPane()
        {
            panel2.Visible    = !IsStartupPane;
            _syncMode.Visible = !IsStartupPane;
            _syncMode.SetData(new string[] { MailSyncMode.All, MailSyncMode.Fresh, MailSyncMode.None },
                              new string[] { "All folders", "Only folders with new e-mail", "None" });
            _syncMode.SetSetting(Settings.SyncMode);
            _showEmbedPics.SetSetting(Settings.ShowEmbedPics);
            _deliverOnStartup.SetSetting(Settings.DeliverOnStartup);
            _markAsReadOnReply.SetSetting(Settings.MarkAsReadOnReply);
            _setCategoryFromContactWhenEmailArrived.SetSetting(Settings.SetCategoryFromContactWhenEmailArrived);
            _setCategoryFromContactWhenEmailSent.SetSetting(Settings.SetCategoryFromContactWhenEmailSent);
            _scheduleDeliver.SetSetting(Settings.ScheduleDeliver);
            _sendReceiveTimeout.SetSetting(Settings.SendReceiveTimeout);
            _sendReceiveTimeout.Enabled = _scheduleDeliver.Checked;

            ReadFontCharacteristics();

            _grpFontChars.Visible = !IsStartupPane;
            _grpExpRules.Visible  = !IsStartupPane;
            IResource resFolderType = Core.ResourceStore.FindUniqueResource("ResourceType", "Name", STR.MAPIFolder);

            buttonClearDefault.Enabled = resFolderType.HasProp("ExpirationRuleLink");
            IResource resItemType = Core.ResourceStore.FindUniqueResource("ResourceType", "Name", STR.Email);

            buttonClearDeleted.Enabled = resItemType.HasProp("ExpirationRuleOnDeletedLink");
        }
Пример #2
0
        private void RefreshSetting()
        {
            IResourceList options = Core.ResourceStore.GetAllResources(DebugOption);

            _boolSetting.SetSetting(SettingArray.FromResourceList(options, BoolDebugSetting, true));
            _intSetting.SetSetting(SettingArray.FromResourceList(options, IntDebugSetting, 100));
            _stringSetting.SetSetting(SettingArray.FromResourceList(options, StringDebugSetting, "qwerty", false));
            _stringSettingDef.SetSetting(SettingArray.FromResourceList(options, StringDebugSettingDef, "Default String", false));
            _cmbIntSetting.SetData(new object[] { 0, 1, 2 }, new object[] { "00", "11", "22" });
            _cmbIntSetting.SetSetting(SettingArray.FromResourceList(options, IntComboDebugSetting, 0));
            _radioSetting.Text = "Radio Button Setting";
            _radioSetting.SetData(new object[] { 7, 8, 9 }, new object[] { "this is 77", "this is 88", "very long description for radio button" });
            _radioSetting.SetSetting(SettingArray.FromResourceList(options, IntRadioDebugSetting, 99));
        }
Пример #3
0
        public override void ShowPane()
        {
            /**
             * setting "articles per group" value
             */
            _articlesNumber.SetSetting(Settings.ArticlesPerGroup);
            int articlesPerGroup = _articlesNumber.Value;

            if (articlesPerGroup <= 0)
            {
                articlesPerGroup = 300;
            }
            _articlesNumber.Value = articlesPerGroup;

            /**
             * setting Deliver News on startup
             */
            _deliverOnStartBox.SetSetting(Settings.DeliverOnStartup);

            /**
             * setting deliver news period
             */
            _deliverNewsPeriod.SetSetting(Settings.DeliverNewsPeriod);
            int deliverNewsPeriod = _deliverNewsPeriod.Value;

            if (deliverNewsPeriod < 0)
            {
                deliverNewsPeriod = 0;
            }
            _deliverNewsPeriod.Value   = deliverNewsPeriod;
            _deliverNewsPeriod.Enabled = _deliverNewsBox.Checked = (deliverNewsPeriod > 0);

            /**
             * setting mark "from me" option
             */
            _markFromMeAsRead.SetSetting(Settings.MarkFromMeAsRead);

            /**
             * setting download article headers only on Deliver News
             */
            _downloadHeadersOnlyCheckBox.InvertValue = true;
            _downloadHeadersOnlyCheckBox.SetSetting(Settings.DownloadBodiesOnDeliver);

            /**
             * preview and editing setting
             */
            _displayAttachmentsInline.SetSetting(Settings.DisplayAttachmentsInline);
            _closeOnReply.SetSetting(Settings.CloseOnReply);
            _markAsReadOnReplyAndFormard.SetSetting(Settings.MarkAsReadOnReplyAndFormard);
            _markAsReadOnThreadStop.SetSetting(Settings.MarkAsReadOnReplyThreadStop);

            ReadFontCharacteristics();

            _encodingsBox.Sorted = true;
            _encodingsBox.Init(Settings.Charset);

            _formatGroupBox.CheckedChanged += _groupBox_CheckedChanged;
            _formatGroupBox.SetData(new string[] { "UUEncode", "MIME" }, new string[] { "&UUEncode", "&MIME" });
            _formatGroupBox.SetSetting(Settings.Format);

            SetMimeEncodingBox();
        }