Ejemplo n.º 1
0
        /// ///////////////////////////////////////
        protected override CResultAErreur MySerialize(C2iSerializer serializer)
        {
            int            nVersion = GetNumVersion();
            CResultAErreur result   = serializer.TraiteVersion(ref nVersion);

            if (!result)
            {
                return(result);
            }

            result = serializer.TraiteObject <CDefinitionProprieteDynamique>(ref m_property);
            if (!result)
            {
                return(result);
            }

            int nAlignement = (int)m_alignement;

            serializer.TraiteInt(ref nAlignement);
            m_alignement = (TypeAlignement)nAlignement;

            if (nVersion >= 1)
            {
                serializer.TraiteBool(ref m_bAutoSetValue);
            }

            if (nVersion >= 2)
            {
                serializer.TraiteString(ref m_strSeparateurMilliers);
            }

            return(result);
        }
Ejemplo n.º 2
0
        /// //////////////////////////////////////////////////
        protected override CResultAErreur MySerialize(C2iSerializer serializer)
        {
            int            nVersion = GetNumVersion();
            CResultAErreur result   = serializer.TraiteVersion(ref nVersion);

            if (!result)
            {
                return(result);
            }

            /*int nIdVariable = -1;
             * if ( m_variable != null && serializer.Mode == ModeSerialisation.Ecriture )
             *      nIdVariable = m_variable.Id;
             *
             * serializer.TraiteInt ( ref nIdVariable );
             * if ( serializer.Mode == ModeSerialisation.Lecture )
             * {
             *      if ( nIdVariable == -1 )
             *              m_variable = null;
             *      else
             *              m_variable = ((CFiltreDynamique)serializer.GetObjetAttache(typeof(CFiltreDynamique))).GetVariable ( nIdVariable );
             * }*/

            serializer.TraiteString(ref m_strMasqueEdition);

            int nAlignement = (int)m_alignement;

            serializer.TraiteInt(ref nAlignement);
            m_alignement = (TypeAlignement)nAlignement;

            if (nVersion >= 1)
            {
                serializer.TraiteBool(ref m_bMultiLine);
            }
            else
            {
                m_bMultiLine = Size.Height > 22;
            }

            if (nVersion >= 2)
            {
                serializer.TraiteString(ref m_strSeparateurMilliers);
            }
            if (nVersion >= 3)
            {
                result = serializer.TraiteObject <CListeParametresInspiration>(ref m_parametresInspiration);
            }
            if (nVersion >= 4)
            {
                serializer.TraiteString(ref m_strLibelleWeb);
                serializer.TraiteInt(ref m_nNumWeb);
            }

            return(result);
        }
Ejemplo n.º 3
0
        /// ///////////////////////////////////////
        protected override CResultAErreur MySerialize(C2iSerializer serializer)
        {
            int            nVersion = GetNumVersion();
            CResultAErreur result   = serializer.TraiteVersion(ref nVersion);

            if (!result)
            {
                return(result);
            }



            result = serializer.TraiteObject <CDefinitionProprieteDynamique>(ref m_property);
            if (!result)
            {
                return(result);
            }

            serializer.TraiteBool(ref m_bMultiline);

            int nAlignement = (int)m_alignement;

            serializer.TraiteInt(ref nAlignement);
            m_alignement = (TypeAlignement)nAlignement;

            if (nVersion >= 1)
            {
                serializer.TraiteBool(ref m_bAutoSetValue);
            }

            if (nVersion >= 2)
            {
                result = serializer.TraiteListe <IParametreInspiration>(m_parametresInspiration);
            }
            if (!result)
            {
                return(result);
            }

            return(result);
        }