Ejemplo n.º 1
0
        public static void CopyStringProperty(NamedPropertyContext pc, TableContext tc, int rowIndex, PropertyName propertyName)
        {
            Nullable <PropertyID> propertyID = pc.Map.GetIDFromName(propertyName);

            if (propertyID.HasValue)
            {
                CopyStringProperty(pc, tc, rowIndex, propertyID.Value);
            }
        }
Ejemplo n.º 2
0
        public static Note GetNote(PSTFile file, NodeID nodeID)
        {
            PSTNode node            = file.GetNode(nodeID);
            NamedPropertyContext pc = node.PC;

            if (pc != null)
            {
                return(new Note(node));
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 3
0
        public static Appointment GetAppointment(PSTFile file, NodeID nodeID)
        {
            PSTNode node            = file.GetNode(nodeID);
            NamedPropertyContext pc = node.PC;

            if (pc != null)
            {
                bool recurring = pc.GetBooleanProperty(PropertyNames.PidLidRecurring, false);
                if (recurring)
                {
                    return(new RecurringAppointment(node));
                }
                else
                {
                    return(new SingleAppointment(node));
                }
            }
            else
            {
                return(null);
            }
        }