private void AddComponentButton_Click(object sender, EventArgs e)
        {
            if (current_reactor != null)
            {
                // show dialog for adding component
                cf = new AddComponentForm();
                cf.ShowDialog();

                // create component based on that dialog and set its values
                ComponentIF tempcomponent = (ComponentIF)fif.createObject(cf.component_type);
                if (tempcomponent != null)
                {
                    // add properties then add to list
                    current_reactor.addComponent(tempcomponent);
                }
                else
                {
                    // notify user that reactor couldn't be created
                    MessageBox.Show("Could not create component " + rf.reactor_name + ".");
                }

                // update component list
                refreshComponentListBox();
            }
        }
 public void addComponent(ComponentIF cif)
 {
     cifl.Add(cif);
 }