Exemplo n.º 1
0
        // Token: 0x06001A73 RID: 6771 RVA: 0x0006215C File Offset: 0x0006035C
        protected override OptionSummary InternalExecute()
        {
            OptionSummary optionSummary   = new OptionSummary();
            string        currentTimeZone = GetTimeZone.GetSetting(base.CallContext, false).CurrentTimeZone;
            ExTimeZone    exTimeZone;

            if (ExTimeZoneEnumerator.Instance.TryGetTimeZoneByName(currentTimeZone, out exTimeZone))
            {
                optionSummary.TimeZone = exTimeZone.LocalizableDisplayName.ToString(CultureInfo.CurrentUICulture);
            }
            else
            {
                optionSummary.TimeZone = currentTimeZone;
            }
            UserOofSettingsType setting = GetUserOofSettings.GetSetting(base.MailboxIdentityMailboxSession, exTimeZone);

            optionSummary.Oof = setting.IsOofOn;
            EmailSignatureConfiguration setting2 = GetEmailSignature.GetSetting(base.CallContext);

            optionSummary.Signature = new EmailSignatureConfiguration();
            optionSummary.Signature.AutoAddSignature     = setting2.AutoAddSignature;
            optionSummary.Signature.UseDesktopSignature  = setting2.UseDesktopSignature;
            optionSummary.Signature.SignatureText        = setting2.SignatureText;
            optionSummary.Signature.DesktopSignatureText = setting2.DesktopSignatureText;
            UserConfigurationPropertyDefinition propertyDefinition  = UserOptionPropertySchema.Instance.GetPropertyDefinition(UserConfigurationPropertyId.AlwaysShowBcc);
            UserConfigurationPropertyDefinition propertyDefinition2 = UserOptionPropertySchema.Instance.GetPropertyDefinition(UserConfigurationPropertyId.AlwaysShowFrom);
            UserConfigurationPropertyDefinition propertyDefinition3 = UserOptionPropertySchema.Instance.GetPropertyDefinition(UserConfigurationPropertyId.ShowSenderOnTopInListView);
            UserConfigurationPropertyDefinition propertyDefinition4 = UserOptionPropertySchema.Instance.GetPropertyDefinition(UserConfigurationPropertyId.ShowPreviewTextInListView);
            UserOptionsType userOptionsType = new UserOptionsType();

            userOptionsType.Load(base.CallContext, new UserConfigurationPropertyDefinition[]
            {
                propertyDefinition,
                propertyDefinition2,
                propertyDefinition3,
                propertyDefinition4
            });
            optionSummary.AlwaysShowBcc             = userOptionsType.AlwaysShowBcc;
            optionSummary.AlwaysShowFrom            = userOptionsType.AlwaysShowFrom;
            optionSummary.ShowSenderOnTopInListView = userOptionsType.ShowSenderOnTopInListView;
            optionSummary.ShowPreviewTextInListView = userOptionsType.ShowPreviewTextInListView;
            return(optionSummary);
        }
Exemplo n.º 2
0
 // Token: 0x06001BC2 RID: 7106 RVA: 0x0006AE00 File Offset: 0x00069000
 public SetEmailSignature(CallContext callContext, EmailSignatureConfiguration userEmailSignature) : base(callContext)
 {
     this.newAutoAddSignature = userEmailSignature.AutoAddSignature;
     this.newSignatureText    = userEmailSignature.SignatureText;
     this.useDesktopSignature = userEmailSignature.UseDesktopSignature;
 }