Exemple #1
0
 // GetObjectData Method for the Serialization process
 void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
 {
     info.AddValue("BackColor", BackgroundColor.ToUpper());
     info.AddValue("ForColor", ForgroundColor.ToUpper());
     info.AddValue("Win_Width", Width);
     info.AddValue("Win_Height", Height);
 }
Exemple #2
0
 private void OnDeserialized(StreamingContext context)
 {
     // Called when the deserialization process is complete.
     BackgroundColor = BackgroundColor.ToLower();
     ForgroundColor  = ForgroundColor.ToLower();
 }
Exemple #3
0
 private void OnSerializing(StreamingContext context)
 {
     // Called during the serialization process.
     BackgroundColor = BackgroundColor.ToUpper();
     ForgroundColor  = ForgroundColor.ToUpper();
 }