Ejemplo n.º 1
0
 public static string GetName(MetaInfo tp)
 {
     if (tp is KeywordsMetaInfo)
     {
         return("keywords");
     }
     if (tp is SubtitlesMetaInfo)
     {
         return("subtitles");
     }
     throw new NotImplementedException();
 }
Ejemplo n.º 2
0
        public static Control GetControl(MetaInfo tp)
        {
            if (tp is KeywordsMetaInfo)
            {
                var r = new KeywordsMetaInfoControl();
                r.Init(tp as KeywordsMetaInfo);
                r.Dock = DockStyle.Fill;
                return(r);
            }

            if (tp is SubtitlesMetaInfo)
            {
                var r = new SubtitlesMetaInfoControl();
                r.Init(tp as SubtitlesMetaInfo);
                r.Dock = DockStyle.Fill;
                return(r);
            }

            throw new NotImplementedException();
        }