Beispiel #1
0
        public override void Assign(HCCustomItem source)
        {
            base.Assign(source);
            string vS = DeProp.GetPropertyString((source as DeEdit).Propertys);

            DeProp.SetPropertyString(vS, FPropertys);
        }
        public override void ToXml(XmlElement aNode)
        {
            base.ToXml(aNode);
            if (FEditProtect)
            {
                aNode.SetAttribute("editprotect", "1");
            }

            if (FOutOfRang)
            {
                aNode.SetAttribute("outofrang", "1");
            }

            if (FCopyProtect)
            {
                aNode.SetAttribute("copyprotect", "1");
            }

            if (FAllocValue)
            {
                aNode.SetAttribute("allocvalue", "1");
            }

            if (FDeleteAllow)
            {
                aNode.SetAttribute("deleteallow", "1");
            }

            aNode.SetAttribute("styleex", ((byte)FStyleEx).ToString());
            aNode.SetAttribute("property", DeProp.GetPropertyString(FPropertys));
        }
Beispiel #3
0
        public override void Assign(HCCustomItem source)
        {
            base.Assign(source);
            string vS = DeProp.GetPropertyString((source as DeGroup).Propertys);

            DeProp.SetPropertyString(vS, FPropertys);
            FReadOnly = (source as DeGroup).ReadOnly;
        }
        public override void Assign(HCCustomItem source)
        {
            base.Assign(source);
            FEditProtect = (source as DeEdit).EditProtect;
            FDeleteAllow = (source as DeEdit).DeleteAllow;
            string vS = DeProp.GetPropertyString((source as DeEdit).Propertys);

            DeProp.SetPropertyString(vS, FPropertys);
        }
        public override void Assign(HCCustomItem source)
        {
            base.Assign(source);
            FStyleEx     = (source as DeItem).StyleEx;
            FEditProtect = (source as DeItem).EditProtect;
            FDeleteAllow = (source as DeItem).DeleteAllow;
            FCopyProtect = (source as DeItem).CopyProtect;
            FAllocValue  = (source as DeItem).AllocValue;
            FOutOfRang   = (source as DeItem).OutOfRang;
            string vS = DeProp.GetPropertyString((source as DeItem).Propertys);

            DeProp.SetPropertyString(vS, FPropertys);
        }
Beispiel #6
0
        public override void SaveToStream(Stream aStream, int aStart, int aEnd)
        {
            base.SaveToStream(aStream, aStart, aEnd);

            byte vByte = 0;

            if (FEditProtect)
            {
                vByte = (byte)(vByte | (1 << 7));
            }
            aStream.WriteByte(vByte);

            HC.View.HC.HCSaveTextToStream(aStream, DeProp.GetPropertyString(FPropertys));
        }
        public override void ToXml(XmlElement aNode)
        {
            base.ToXml(aNode);
            if (FEditProtect)
            {
                aNode.SetAttribute("editprotect", "1");
            }

            if (FDeleteAllow)
            {
                aNode.SetAttribute("deleteallow", "1");
            }

            aNode.SetAttribute("property", DeProp.GetPropertyString(FPropertys));
        }
        public override void SaveToStream(Stream aStream, int aStart, int aEnd)
        {
            base.SaveToStream(aStream, aStart, aEnd);

            byte vByte = 0;

            if (FEditProtect)
            {
                vByte = (byte)(vByte | (1 << 7));
            }

            if (FOutOfRang)
            {
                vByte = (byte)(vByte | (1 << 6));
            }

            if (FCopyProtect)
            {
                vByte = (byte)(vByte | (1 << 5));
            }

            if (FAllocValue)
            {
                vByte = (byte)(vByte | (1 << 4));
            }

            if (FDeleteAllow)
            {
                vByte = (byte)(vByte | (1 << 3));
            }

            aStream.WriteByte(vByte);

            vByte = (byte)FStyleEx;
            aStream.WriteByte(vByte);

            HC.View.HC.HCSaveTextToStream(aStream, DeProp.GetPropertyString(FPropertys));
        }
Beispiel #9
0
 public override void ToXml(XmlElement aNode)
 {
     base.ToXml(aNode);
     aNode.SetAttribute("property", DeProp.GetPropertyString(FPropertys));
 }
Beispiel #10
0
 public override void SaveToStream(Stream aStream, int aStart, int aEnd)
 {
     base.SaveToStream(aStream, aStart, aEnd);
     HC.View.HC.HCSaveTextToStream(aStream, DeProp.GetPropertyString(FPropertys));
 }