// 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); }
private void OnSerializing(StreamingContext context) { // Called during the serialization process. BackgroundColor = BackgroundColor.ToUpper(); ForgroundColor = ForgroundColor.ToUpper(); }