public virtual void OnDeserialize(SerializationInfo info) { this.Directory = info.Get("Directory"); this.UpdateFrequency = uint.Parse(info.Get("FramesPerSecond")); this.DeleteImages = bool.Parse(info.Get("DeleteImages")); this.Cleanup = bool.Parse(info.Get("Cleanup")); this.Render = bool.Parse(info.Get("Render")); this.Compress = bool.Parse(info.Get("Compress")); this.CompressQuality = long.Parse(info.Get("CompressQuality")); this.CompressDirectory = info.Get("CompressDirectory"); this.Timed = bool.Parse(info.Get("Timed")); this.ShowFPS = bool.Parse(info.Get("ShowFPS")); }
public override void OnDeserialize(SerializationInfo info) { base.OnDeserialize(info); try { this.Title = info.Get("title"); } catch { this.Title = "Renderer"; } }