public ItemTextNoted(ItemTextNoted source) : base(source)
 {
     if (source.Note != null)
     {
         Note = new ItemTextStyled(source.Note);
     }
 }
        public static void ReplaceValues(this ItemTextStyled item, ItemTextStyled replace)
        {
            item.IsBold   = replace.IsBold;
            item.IsItalic = replace.IsItalic;
            item.IsRed    = replace.IsRed;

            (item as ItemText).ReplaceValues(replace);
        }
        //protected override ItemText Deserialize(string exp) => Serializer.Deserialize<ItemTextNoted>(exp, RootName);

        //protected override string Serialize() => Serializer.Serialize(this, RootName);

        protected override void Build(ItemText source)
        {
            base.Build(source);

            if (source is ItemTextNoted s)
            {
                Note = s.Note;
            }
        }
Exemple #4
0
 public ItemTextStyled(ItemTextStyled source) : base(source)
 {
     Style.Header = source.Style.Header;
     Style.IsBold = source.Style.IsBold;
     Style.IsRed  = source.Style.IsRed;
 }
 public ItemTextStyled(ItemTextStyled source) : base(source)
 {
     IsBold   = source.IsBold;
     IsItalic = source.IsItalic;
     IsRed    = source.IsRed;
 }