public override IEnumerable<IPersistenceObject> FromStream(Zetbox.API.ZetboxStreamReader binStream) { var baseResult = base.FromStream(binStream); var result = new List<IPersistenceObject>(); // it may be only an empty shell to stand-in for unreadable data if (CurrentAccessRights != Zetbox.API.AccessRights.None) { this._fk_ControlKind = binStream.ReadNullableInt32(); this._ControlTypeRef = binStream.ReadString(); this._isDeletedSet = binStream.ReadBoolean(); if (this._isDeletedSet) { this._Deleted = binStream.ReadBoolean(); } this._isExportGuidSet = binStream.ReadBoolean(); if (this._isExportGuidSet) { this._ExportGuid = binStream.ReadGuid(); } this._fk_Module = binStream.ReadNullableInt32(); this._Toolkit = (Zetbox.App.GUI.Toolkit)binStream.ReadNullableInt32(); } // if (CurrentAccessRights != Zetbox.API.AccessRights.None) return baseResult == null ? result.Count == 0 ? null : result : baseResult.Concat(result); }
public virtual void MergeImport(System.Xml.XmlReader xml) { // it may be only an empty shell to stand-in for unreadable data if (!CurrentAccessRights.HasReadRights()) return; switch (xml.NamespaceURI + "|" + xml.LocalName) { case "Zetbox.App.GUI|ControlKind": this._fk_guid_ControlKind = XmlStreamer.ReadNullableGuid(xml); break; case "Zetbox.App.GUI|ControlTypeRef": this._ControlTypeRef = XmlStreamer.ReadString(xml); break; case "Zetbox.App.GUI|Deleted": // Import must have default value set this._Deleted = XmlStreamer.ReadBoolean(xml); this._isDeletedSet = true; break; case "Zetbox.App.GUI|ExportGuid": // Import must have default value set this._ExportGuid = XmlStreamer.ReadGuid(xml); this._isExportGuidSet = true; break; case "Zetbox.App.GUI|Module": this._fk_guid_Module = XmlStreamer.ReadNullableGuid(xml); break; case "Zetbox.App.GUI|Toolkit": this._Toolkit = (Zetbox.App.GUI.Toolkit)XmlStreamer.ReadNullableInt32(xml); break; } }
public ViewDescriptorAttribute(Zetbox.App.GUI.Toolkit toolkit) { this.Toolkit = toolkit; }