Ejemplo n.º 1
0
        private string GetUfidText(string owner)
        {
            UniqueFileIdentifierFrame frame = UniqueFileIdentifierFrame.Get(this, owner, false);
            string result = frame == null?null:frame.Identifier.ToString();

            return(string.IsNullOrEmpty(result)?null:result);
        }
Ejemplo n.º 2
0
        private void SetUfidText(string owner, string text)
        {
            UniqueFileIdentifierFrame frame = UniqueFileIdentifierFrame.Get(this, owner, true);

            if (!string.IsNullOrEmpty(text))
            {
                ByteVector identifier = ByteVector.FromString(text, StringType.UTF8);
                frame.Identifier = identifier;
            }
            else
            {
                RemoveFrame(frame);
            }
        }