/// <summary> /// ctor - gets the owning class instance /// </summary> /// <param name="owner"></param> public FormReassign(JoystickList owner) { InitializeComponent( ); m_owner = owner; m_tb[0] = txJS1; m_tb[1] = txJS2; m_tb[2] = txJS3; m_tb[3] = txJS4; m_tb[4] = txJS5; m_tb[5] = txJS6; m_tb[6] = txJS7; m_tb[7] = txJS8; m_tb[8] = txJS9; m_tb[9] = txJS10; m_tb[10] = txJS11; m_tb[11] = txJS12; m_cb[0] = cbxStick1; m_cb[1] = cbxStick2; m_cb[2] = cbxStick3; m_cb[3] = cbxStick4; m_cb[4] = cbxStick5; m_cb[5] = cbxStick6; m_cb[6] = cbxStick7; m_cb[7] = cbxStick8; m_cb[8] = cbxStick9; m_cb[9] = cbxStick10; m_cb[10] = cbxStick11; m_cb[11] = cbxStick12; }
private List <CheckBox> m_invertCB = null; // Options owns and handles all Inversions // ctor public Options(JoystickList jsList) { m_tuningP = new DeviceTuningParameter( ); m_tuningY = new DeviceTuningParameter( ); m_tuningR = new DeviceTuningParameter( ); m_tuningVert = new DeviceTuningParameter( ); m_tuningLat = new DeviceTuningParameter( ); m_tuningLon = new DeviceTuningParameter( ); // create inverters ( for (int i = 0; i < ( int )OptionsInvert.Inversions.I_LAST; i++) { OptionsInvert inv = new OptionsInvert((OptionsInvert.Inversions)i); m_inverter.Add(inv); } }