/// <summary> /// Clones the specified object. /// </summary> private static FormattedParts Clone(FormattedParts orig) { FormattedParts newParts = FormattedParts.Create(orig.Offset, orig.Addr, orig.Bytes, orig.Flags, orig.Attr, orig.Label, orig.Opcode, orig.Operand, orig.Comment, orig.mPartFlags); newParts.IsLongComment = orig.IsLongComment; newParts.HasAddrLabelHighlight = orig.HasAddrLabelHighlight; newParts.ListIndex = orig.ListIndex; return(newParts); }
/// <summary> /// Retrieves the Nth element. /// </summary> private FormattedParts GetEntry(int index) { Debug.WriteLine("GEN " + index); if ((index % 10) != 0) { return(FormattedParts.Create("off" + index, "addr" + index, "12 34", "vncidmx", "", "yup:", "LDA", "$1234", "a & b")); } else { return(FormattedParts.Create("yup: This is a long comment line")); } }