public override void Assign(HCCustomItem source) { base.Assign(source); string vS = DeProp.GetPropertyString((source as DeEdit).Propertys); 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 ParseXml(XmlElement aNode) { base.ParseXml(aNode); string vProp = HC.View.HC.GetXmlRN(aNode.Attributes["property"].Value); DeProp.SetPropertyString(vProp, 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 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 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 ParseXml(XmlElement aNode) { base.ParseXml(aNode); DeProp.SetPropertyString(aNode.Attributes["property"].Value, FPropertys); }