예제 #1
0
        protected static void DemoteXImportance(VItemBase vitem)
        {
            int valueOrDefault = vitem.GetValueOrDefault <int>(InternalSchema.Importance, 1);

            vitem.calendarWriter.StartProperty("X-MICROSOFT-CDO-IMPORTANCE");
            vitem.calendarWriter.WritePropertyValue(valueOrDefault);
        }
예제 #2
0
 protected static bool PromoteSubject(VItemBase vitem, CalendarPropertyBase property)
 {
     if (vitem.Context.Method == CalendarMethod.Publish || vitem.GetValueOrDefault <string>(InternalSchema.Subject) == null)
     {
         vitem.SetProperty(InternalSchema.Subject, property.Value);
     }
     return(true);
 }
예제 #3
0
        protected static void DemoteClass(VItemBase vitem)
        {
            string value;

            switch (vitem.GetValueOrDefault <Sensitivity>(InternalSchema.Sensitivity))
            {
            case Sensitivity.Normal:
                value = "PUBLIC";
                goto IL_44;

            case Sensitivity.Personal:
                value = "PERSONAL";
                goto IL_44;

            case Sensitivity.CompanyConfidential:
                value = "CONFIDENTIAL";
                goto IL_44;
            }
            value = "PRIVATE";
IL_44:
            vitem.calendarWriter.StartProperty(PropertyId.Class);
            vitem.calendarWriter.WritePropertyValue(value);
        }