internal ComboScheduleCreatorWin(RebarContainer rebars)
 {
     InitializeComponent();
     m_rebars = rebars;
     this.cb_schedule_types.ItemsSource =
         Enum.GetValues(typeof(ComboScheduleType));
     this.cb_partitions.ItemsSource =
         m_rebars.GetPartitions();
     this.cb_host_marks.ItemsSource =
         m_rebars.GetHostMarks((string)this.cb_partitions.SelectedValue);
     this.cb_assembly_marks.ItemsSource =
         m_rebars.GetAssemblies((string)this.cb_partitions.SelectedValue,
                                (string)this.cb_host_marks.SelectedValue);
 }
 private void cb_partitions_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     this.cb_host_marks.ItemsSource =
         m_rebars.GetHostMarks((string)this.cb_partitions.SelectedValue);
     this.cb_host_marks.SelectedIndex = 0;
 }