Beispiel #1
0
 public iCalObject(iCalObject parent)
 {
     Parent = parent;
     if (parent != null)
     {
         if (!(this is Property) &&
             !(this is Parameter))
         {
             parent.AddChild(this);
         }
     }
 }
Beispiel #2
0
        static public ComponentBase LoadFromStream(iCalObject parent, Stream s, Encoding encoding, ISerializable serializer)
        {
            Type iCalendarType = typeof(iCalendar);

            if (parent != null)
            {
                iCalendarType = parent.iCalendar.GetType();
            }

            ComponentBase component = (ComponentBase)
                                      serializer.Deserialize(s, encoding, iCalendarType);

            if (parent != null)
            {
                parent.AddChild(component);
            }

            return(component);
        }
Beispiel #3
0
 public iCalObject(iCalObject parent)
 {
     Parent = parent;
     if (parent != null)
     {
         if (!(this is Property) &&
             !(this is Parameter))
             parent.AddChild(this);
     }
 }