//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(); }
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); }
public MetaDataInputForm(mediainformation info) { InitializeComponent(); setInfo(info); }