예제 #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);
            }
        }
예제 #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);
            }
        }
예제 #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);
            }
        }