/// <summary> /// Initializes a new instance of the <see cref="PrototypeBackend.Sequence"/> class. /// </summary> /// <param name="info">Info.</param> /// <param name="context">Context.</param> public Sequence(SerializationInfo info, StreamingContext context) { Pin = new DPin(); Pin = (DPin)info.GetValue("Pin", Pin.GetType()); Name = info.GetString("Name"); GroupName = info.GetString("GroupName"); Chain = new List <SequenceOperation> (); Chain = (List <SequenceOperation>)info.GetValue("Chain", Chain.GetType()); Repetitions = info.GetInt32("Repetitions"); Color = new Gdk.Color(info.GetByte("RED"), info.GetByte("GREEN"), info.GetByte("BLUE")); }
/// <summary> /// Initializes a new instance of the <see cref="PrototypeBackend.Sequence"/> class. /// </summary> /// <param name="info">Info.</param> /// <param name="context">Context.</param> public Sequence(SerializationInfo info, StreamingContext context) { Pin = new DPin (); Pin = (DPin)info.GetValue ("Pin", Pin.GetType ()); Name = info.GetString ("Name"); GroupName = info.GetString ("GroupName"); Chain = new List<SequenceOperation> (); Chain = (List<SequenceOperation>)info.GetValue ("Chain", Chain.GetType ()); Repetitions = info.GetInt32 ("Repetitions"); Color = new Gdk.Color (info.GetByte ("RED"), info.GetByte ("GREEN"), info.GetByte ("BLUE")); }