protected override void RestoreLayoutCore(XtraSerializer serializer, object path, OptionsLayoutBase options) { if (serializer is XmlXtraSerializer) { serializer = new MyXmlXtraSerializer(); } base.RestoreLayoutCore(serializer, path, options); }
protected virtual void RestoreLayoutCore(XtraSerializer serializer, object path) { System.IO.Stream stream = path as System.IO.Stream; if (stream != null) { serializer.DeserializeObjects(GetXtraObjectInfo(), stream, this.GetType().Name); } else { serializer.DeserializeObjects(GetXtraObjectInfo(), path.ToString(), this.GetType().Name); } }
protected virtual bool SaveLayoutCore(XtraSerializer serializer, object path) { System.IO.Stream stream = path as System.IO.Stream; if (stream != null) { return(serializer.SerializeObjects(GetXtraObjectInfo(), stream, this.GetType().Name)); } else { return(serializer.SerializeObjects(GetXtraObjectInfo(), path.ToString(), this.GetType().Name)); } }
protected virtual void SerializeCore(XtraSerializer serializer, object path) { FilterSerializationHelper filterSerializationHelper = new FilterSerializationHelper(this); Stream stream = path as Stream; if (stream != null) { serializer.SerializeObject(filterSerializationHelper, stream, this.GetType().Name); } else { serializer.SerializeObject(filterSerializationHelper, path.ToString(), this.GetType().Name); } }
/// <summary> /// Nach dem internen Wiederherstellen des Layouts die benutzerdefinierte Layoutanpassung nochmal drüberlaufen lassen /// </summary> protected override void RestoreLayoutCore(XtraSerializer serializer, object path, OptionsLayoutBase options) { base.RestoreLayoutCore(serializer, path, options); this.InitializeLayout(); }