Example #1
0
        public override void ReadData(BinaryReaderExtension objBinaryReader)
        {
            base.ReadData(objBinaryReader);

            From       = objBinaryReader.ReadString();
            Subject    = objBinaryReader.ReadString();
            IsBodyHtml = objBinaryReader.ReadBoolean();
            Body       = objBinaryReader.ReadString();
            DeliveryNotificationOptions = (NetMail.DeliveryNotificationOptions)objBinaryReader.ReadByte();
            To = objBinaryReader.ReadTransportableObject <ListBase <string> >();
        }
Example #2
0
        public override void ReadData(SerializedObject objSerializedObject)
        {
            base.ReadData(objSerializedObject);

            From       = objSerializedObject.Values.GetValue <string>("From", string.Empty);
            Subject    = objSerializedObject.Values.GetValue <string>("Subject", string.Empty);
            IsBodyHtml = objSerializedObject.Values.GetValue <bool>("IsBodyHtml", DefaultIsBodyHtml);
            Body       = objSerializedObject.Values.GetValue <string>("Body", string.Empty);
            DeliveryNotificationOptions = objSerializedObject.Values.GetValue <NetMail.DeliveryNotificationOptions>("DeliveryNotificationOptions", DefaultDeliveryNotificationOptions);
            To = objSerializedObject.Objects.GetObject <ListBase <string> >("To", new ListBase <string>());
        }