private void InitLoadForm() { loadform = new loadForm(this); ColumnHeader columnheader; columnheader = new ColumnHeader(); columnheader.Text = "Title"; columnheader.Width = 350; loadform.listView1.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Text = "Year"; columnheader.Width = 60; loadform.listView1.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Text = "ROM"; columnheader.Width = 90; loadform.listView1.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Text = "Parent"; columnheader.Width = 60; loadform.listView1.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Text = "Direction"; columnheader.Width = 70; loadform.listView1.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Text = "Manufacturer"; columnheader.Width = 120; loadform.listView1.Columns.Add(columnheader); columnheader = new ColumnHeader(); columnheader.Text = "Board"; columnheader.Width = 120; loadform.listView1.Columns.Add(columnheader); XElement xe = XElement.Parse(mame.Properties.Resources.mame); IEnumerable <XElement> elements = from ele in xe.Elements("game") select ele; showInfoByElements(elements); }