/// <summary>
        /// Attempt to write out Precedence Order XML file. If no components are defined, this is essentially useless.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnOrderComponents_Click(object sender, EventArgs e)
        {
            using (PhysicalScheduleForm phyFrm = new PhysicalScheduleForm())
            {
                List<BuildingComponent> comps = new List<BuildingComponent>();
                for (int i = 0; i < lbComponents.Items.Count; i++)
                {
                    comps.Add((BuildingComponent)lbComponents.Items[i]);
                }

                phyFrm.Components = comps;
                if (phyFrm.ShowDialog() == DialogResult.OK)
                    MessageBox.Show("Successfully saved Basic Schedule");
            }
        }
 private void btnCompOrder_Click(object sender, EventArgs e)
 {
     using (PhysicalScheduleForm phyFrm = new PhysicalScheduleForm())
     {
         phyFrm.Components = comps.Values.ToList();
         if (phyFrm.ShowDialog() == DialogResult.OK)
             MessageBox.Show("Successfully saved Basic Schedule");
     }
 }