public override Frame Clone()
        {
            TermsOfUseFrame frame = new TermsOfUseFrame(language, encoding);

            frame.text = text;
            return(frame);
        }
        public static TermsOfUseFrame GetPreferred(Tag tag, string language)
        {
            TermsOfUseFrame best = null;

            foreach (Frame f in tag.GetFrames(FrameType.USER))
            {
                TermsOfUseFrame cf = f as TermsOfUseFrame;
                if (cf == null)
                {
                    continue;
                }

                if (cf.Language == language)
                {
                    return(cf);
                }

                if (best == null)
                {
                    best = cf;
                }
            }

            return(best);
        }
        public static TermsOfUseFrame Get(Tag tag, string language, bool create)
        {
            foreach (Frame f in tag.GetFrames(FrameType.USER))
            {
                TermsOfUseFrame cf = f as TermsOfUseFrame;

                if (cf != null && (language == null || language == cf.Language))
                {
                    return(cf);
                }
            }

            if (!create)
            {
                return(null);
            }

            TermsOfUseFrame frame = new TermsOfUseFrame(language);

            tag.AddFrame(frame);
            return(frame);
        }
 public static TermsOfUseFrame Get (Tag tag, string language, bool create)
 {
    foreach (Frame f in tag.GetFrames (FrameType.USER))
    {
       TermsOfUseFrame cf = f as TermsOfUseFrame;
       
       if (cf != null && (language == null || language == cf.Language))
          return cf;
    }
    
    if (!create)
       return null;
    
    TermsOfUseFrame frame = new TermsOfUseFrame (language);
    tag.AddFrame (frame);
    return frame;
 }
		public override Frame Clone ()
		{
			TermsOfUseFrame frame = new TermsOfUseFrame (language, encoding);
			frame.text = text;
			return frame;
		}