public override void Assign(HCCustomItem source) { base.Assign(source); string vS = DeProp.GetPropertyString((source as DeEdit).Propertys); DeProp.SetPropertyString(vS, FPropertys); }
public override void LoadFromStream(Stream aStream, HCStyle aStyle, ushort aFileVersion) { base.LoadFromStream(aStream, aStyle, aFileVersion); byte vByte = (byte)aStream.ReadByte(); FEditProtect = HC.View.HC.IsOdd(vByte >> 7); FOutOfRang = HC.View.HC.IsOdd(vByte >> 6); FCopyProtect = HC.View.HC.IsOdd(vByte >> 5); FAllocValue = HC.View.HC.IsOdd(vByte >> 4); if (aFileVersion > 34) { FDeleteAllow = HC.View.HC.IsOdd(vByte >> 3); } else { FDeleteAllow = true; } vByte = (byte)aStream.ReadByte(); FStyleEx = (StyleExtra)vByte; string vS = ""; HC.View.HC.HCLoadTextFromStream(aStream, ref vS, aFileVersion); DeProp.SetPropertyString(vS, FPropertys); }
public override void ParseXml(XmlElement aNode) { base.ParseXml(aNode); FEditProtect = aNode.GetAttribute("editprotect") == "1"; FOutOfRang = aNode.GetAttribute("outofrang") == "1"; FCopyProtect = aNode.GetAttribute("copyprotect") == "1"; FAllocValue = aNode.GetAttribute("allocvalue") == "1"; if (aNode.HasAttribute("deleteallow")) { FDeleteAllow = aNode.GetAttribute("deleteallow") == "1"; } else { FDeleteAllow = true; } byte vByte = 0; bool vHasValue = byte.TryParse(aNode.GetAttribute("styleex"), out vByte); FStyleEx = (StyleExtra)vByte; string vProp = HC.View.HC.GetXmlRN(aNode.Attributes["property"].Value); DeProp.SetPropertyString(vProp, 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)); }
public override void LoadFromStream(Stream aStream, HCStyle aStyle, ushort aFileVersion) { base.LoadFromStream(aStream, aStyle, aFileVersion); if (aFileVersion < 33) { return; } byte vByte = (byte)aStream.ReadByte(); FEditProtect = (vByte >> 7) == 1; if (aFileVersion > 34) { FDeleteAllow = (vByte >> 6) == 1; } else { FDeleteAllow = true; } string vS = ""; HC.View.HC.HCLoadTextFromStream(aStream, ref vS, aFileVersion); DeProp.SetPropertyString(vS, FPropertys); }
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 LoadFromStream(Stream aStream, HCStyle aStyle, ushort aFileVersion) { base.LoadFromStream(aStream, aStyle, aFileVersion); string vS = ""; HC.View.HC.HCLoadTextFromStream(aStream, ref vS, aFileVersion); DeProp.SetPropertyString(vS, FPropertys); }
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 LoadFromStream(Stream aStream, HCStyle aStyle, ushort aFileVersion) { base.LoadFromStream(aStream, aStyle, aFileVersion); byte vByte = (byte)aStream.ReadByte(); FEditProtect = (vByte >> 7) == 1; string vS = ""; HC.View.HC.HCLoadTextFromStream(aStream, ref vS, aFileVersion); 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); }
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 ParseXml(XmlElement aNode) { base.ParseXml(aNode); FEditProtect = aNode.GetAttribute("editprotect") == "1"; if (aNode.HasAttribute("deleteallow")) { FDeleteAllow = aNode.GetAttribute("deleteallow") == "1"; } else { FDeleteAllow = true; } string vProp = HC.View.HC.GetXmlRN(aNode.Attributes["property"].Value); DeProp.SetPropertyString(vProp, 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)); }
public override void ParseXml(XmlElement aNode) { base.ParseXml(aNode); DeProp.SetPropertyString(aNode.Attributes["property"].Value, FPropertys); }
public override void ToXml(XmlElement aNode) { base.ToXml(aNode); aNode.SetAttribute("property", DeProp.GetPropertyString(FPropertys)); }
public override void SaveToStream(Stream aStream, int aStart, int aEnd) { base.SaveToStream(aStream, aStart, aEnd); HC.View.HC.HCSaveTextToStream(aStream, DeProp.GetPropertyString(FPropertys)); }