/// <summary> /// Determines whether the specified <see cref="SharpDxf.Tables.ApplicationRegistry" /> is equal to the current <see cref="SharpDxf.Tables.ApplicationRegistry" />. /// </summary> /// <returns> /// True if the specified <see cref="SharpDxf.Tables.ApplicationRegistry" /> is equal to the current <see cref="SharpDxf.Tables.ApplicationRegistry" />; otherwise, false. /// </returns> /// <remarks>Two <see cref="SharpDxf.Tables.ApplicationRegistry" /> instances are equal if their names are equal.</remarks> /// <exception cref="T:System.NullReferenceException"> /// The <paramref name="obj" /> parameter is null. /// </exception> public bool Equals(ApplicationRegistry obj) { return(obj.name == this.name); }
/// <summary> /// Initialize a new instance of the <c>XData</c> class . /// </summary> /// <param name="appReg">Name of the application associated with the list of extended data records.</param> public XData(ApplicationRegistry appReg) { this.appReg = appReg; this.xData = new List<XDataRecord>(); }
/// <summary> /// Determines whether the specified <see cref="SharpDxf.Tables.ApplicationRegistry" /> is equal to the current <see cref="SharpDxf.Tables.ApplicationRegistry" />. /// </summary> /// <returns> /// True if the specified <see cref="SharpDxf.Tables.ApplicationRegistry" /> is equal to the current <see cref="SharpDxf.Tables.ApplicationRegistry" />; otherwise, false. /// </returns> /// <remarks>Two <see cref="SharpDxf.Tables.ApplicationRegistry" /> instances are equal if their names are equal.</remarks> /// <exception cref="T:System.NullReferenceException"> /// The <paramref name="obj" /> parameter is null. /// </exception> public bool Equals(ApplicationRegistry obj) { return obj.name == this.name; }
/// <summary> /// Writes a new extended data application registry to the table section. /// </summary> /// <param name="appReg">Nombre del registro de aplicación.</param> public void RegisterApplication(ApplicationRegistry appReg) { if (this.activeTable != StringCode.ApplicationIDTable) { throw new InvalidDxfTableException(StringCode.ApplicationIDTable, this.file); } this.WriteCodePair(0, StringCode.ApplicationIDTable); this.WriteCodePair(5, appReg.Handle); this.WriteCodePair(100, SubclassMarker.TableRecord); this.WriteCodePair(100, SubclassMarker.ApplicationId); this.WriteCodePair(2, appReg); this.WriteCodePair(70, 0); }