Пример #1
0
        //public MetaDataInputForm(int pagenumber, Dictionary<string, MediaBoxsInfo> allboxes)
        //{
        //    InitializeComponent();
        //    StringBuilder sb = new StringBuilder();
        //    foreach (MediaBoxsInfo box in allboxes.Values)
        //    {
        //        if (box.boxinfo.page == pagenumber)
        //        {
        //            sb.Append(box.getKeys());
        //        }
        //    }
        //    inputtext.Text = sb.ToString();
        //    inputtext.Dock = DockStyle.Fill;
        //    button1.Visible = false;
        //}

        public void setInfo(mediainformation info)
        {
            minfo = info;
            StringBuilder sb = new StringBuilder();

            foreach (string key in minfo.keys)
            {
                sb.Append(key + Environment.NewLine);
            }
            inputtext.Text = sb.ToString();
        }
Пример #2
0
        public static mediainformation getAllBoxInfo(List <BoxInfo> boxes)
        {
            mediainformation metadata = new mediainformation();
            List <string>    list     = new List <string>();

            foreach (BoxInfo box in boxes)
            {
                list.AddRange(box.mediainfo.keys);
            }
            metadata.keys = list;
            return(metadata);
        }
Пример #3
0
 public MetaDataInputForm(mediainformation info)
 {
     InitializeComponent();
     setInfo(info);
 }