Ejemplo n.º 1
0
        internal int TotalSize()
        {
            int Result = 0;

            if (WindowProtect != null)
            {
                Result += WindowProtect.TotalSize();
            }
            if (Protect != null)
            {
                Result += Protect.TotalSize();
            }
            if (Password != null)
            {
                Result += Password.TotalSize();
            }
            if (Prot4Rev != null)
            {
                Result += Prot4Rev.TotalSize();
            }
            if (Prot4RevPass != null)
            {
                Result += Prot4RevPass.TotalSize();
            }

            return(Result);
        }
Ejemplo n.º 2
0
        internal int TotalSizeFirst()
        {
            int Result = 0;

            if (Protect != null)
            {
                Result += Protect.TotalSize();
            }
            if (ScenProtect != null)
            {
                Result += ScenProtect.TotalSize();
            }
            if (ObjProtect != null)
            {
                Result += ObjProtect.TotalSize();
            }
            if (Password != null)
            {
                Result += Password.TotalSize();
            }

            return(Result);
        }