예제 #1
0
        protected static bool PromoteClass(VItemBase vitem, CalendarPropertyBase property)
        {
            string text = (string)property.Value;
            string a;

            if ((a = text.ToUpper()) != null)
            {
                if (a == "CONFIDENTIAL")
                {
                    vitem.SetProperty(InternalSchema.Sensitivity, Sensitivity.CompanyConfidential);
                    return(true);
                }
                if (a == "PRIVATE")
                {
                    vitem.SetProperty(InternalSchema.Sensitivity, Sensitivity.Private);
                    return(true);
                }
                if (a == "PERSONAL")
                {
                    vitem.SetProperty(InternalSchema.Sensitivity, Sensitivity.Personal);
                    return(true);
                }
                if (!(a == "PUBLIC"))
                {
                }
            }
            vitem.SetProperty(InternalSchema.Sensitivity, Sensitivity.Normal);
            return(true);
        }
예제 #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);
 }