コード例 #1
0
ファイル: RowTextContent.cs プロジェクト: 15831944/backsight
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="editSerializer">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer editSerializer)
        {
            base.WriteData(editSerializer);

            editSerializer.WriteInt32(DataField.Table, m_TableId);
            editSerializer.WriteInt32(DataField.Template, m_TemplateId);
        }
コード例 #2
0
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="es">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer es)
        {
            base.WriteData(es);

            es.WriteInt32(DataField.GroupId, this.GroupId);
            es.WriteInt32(DataField.LowestId, this.LowestId);
            es.WriteInt32(DataField.HighestId, this.HighestId);
        }
コード例 #3
0
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="es">The mechanism for storing content.</param>
        public override void WriteData(EditSerializer es)
        {
            base.WriteData(es);

            es.WriteString(DataField.ProjectId, this.ProjectId.ToString().ToUpper());
            es.WriteString(DataField.ProjectName, this.ProjectName);
            es.WriteInt32(DataField.LayerId, this.LayerId);
            es.WriteString(DataField.CoordinateSystem, this.DefaultSystem);
            es.WriteString(DataField.UserName, this.UserName);
            es.WriteString(DataField.MachineName, this.MachineName);
        }
コード例 #4
0
        /// <summary>
        /// Writes the content of this instance to a persistent storage area.
        /// </summary>
        /// <param name="editSerializer">The mechanism for storing content.</param>
        public virtual void WriteData(EditSerializer editSerializer)
        {
            if (m_Font != null)
            {
                editSerializer.WriteInt32(DataField.Font, m_Font.Id);
            }

            editSerializer.WritePointGeometry(DataField.X, DataField.Y, m_Position);
            editSerializer.WriteDouble(DataField.Width, Math.Round((double)m_Width, 2));
            editSerializer.WriteDouble(DataField.Height, Math.Round((double)m_Height, 2));

            // TODO: May want to cover indirect rotations
            editSerializer.WriteRadians(DataField.Rotation, new RadianValue(m_Rotation.Radians));
        }