Beispiel #1
0
        public static TagModel CreateClone(TagModel other)
        {
            TagModel tagModel = DocNode.Create <TagModel>();

            tagModel.Init(other.FileNameFull, other.ToTag(), other.Bitrate.Value);
            return(tagModel);
        }
Beispiel #2
0
        public void Add(string fileName, Tag tag, int bitrate)
        {
            if (Contains(fileName))
            {
                throw new Exception("Can't add twice!");
            }

            TagModel model = DocNode.Create <TagModel>();

            model.Init(fileName, tag, bitrate);

            model.IsSelected.TransactionIdModeToUse = DocObj <bool> .TransactionIdMode.UseFixed;
            model.IsSelected.FixedTransactionId     = GetHashCode();
            Items.Add(model);
        }