private void button3_Click(object sender, System.EventArgs e) { BoxDecoList list = BoxDecoList.FromFile(m_File); foreach (GenericNode g in list.Structure) { foreach (GenericNode g2 in g.Elements) { g2.Elements.Sort(); } } list.Save(m_File); }
private void button1_Click(object sender, System.EventArgs e) { // Issue 10 - Update the code to Net Framework 3.5 - http://code.google.com/p/pandorasbox3/issues/detail?id=10 - Smjert m_IDs = new List <int>(); // Issue 10 - End m_Deco = BoxDecoList.FromFile(m_File); foreach (GenericNode g in m_Deco.Structure) { foreach (GenericNode g2 in g.Elements) { foreach (BoxDeco deco in g2.Elements) { m_IDs.Add(deco.ID); } } } }