/// <summary> /// Resets the Action Tree /// </summary> private void InitActionTree( ) { // build TreeView and the ActionMaps m_AT = new ActionTree( ); m_AT.Ctrl = treeView1; // the ActionTree owns the TreeView control m_AT.LoadTree( ); // Init // default JS to Joystick mapping - can be changed and reloaded from XML if (tc1.TabCount > 0) { cbJs1.SelectedIndex = 0; m_AT.ActionMaps.js1 = cbJs1.Text; } if (tc1.TabCount > 1) { cbJs2.SelectedIndex = 1; m_AT.ActionMaps.js2 = cbJs2.Text; } if (tc1.TabCount > 2) { cbJs3.SelectedIndex = 2; m_AT.ActionMaps.js3 = cbJs3.Text; } }