public NodeEventEditor(CharEvents _chev, Object[] obj)
 {
     InitializeComponent();
     chev = _chev;
     comboBox1.Items.AddRange(obj);
     comboBox2.Items.AddRange(obj);
 }
 public NodeEventEditor(CharEvents _chev, Object[] obj, NodeEvent ne)
 {
     InitializeComponent();
     chev = _chev;
     comboBox1.Items.AddRange(obj);
     comboBox2.Items.AddRange(obj);
     comboBox1.SelectedIndex =ne.parentNode.index;
     comboBox2.SelectedIndex = ne.associatedNode.index;
     textBox2.Text =ne.neededEvent;
     textBox1.Text = ne.description;
 }