public MenuControlDock(MenuControl first, MenuControl second, MenuControl third, MenuControl fourth, MenuControl fifth, MenuControl sixth, MenuControl seventh, MenuControl eighth, MenuControl nineth) { _myControls[0] = first; _myControls[1] = second; _myControls[2] = third; _myControls[3] = fourth; _myControls[4] = fifth; _myControls[5] = sixth; _myControls[6] = seventh; _myControls[7] = eighth; _myControls[8] = nineth; }
public StartMenu() { InitializeComponent(); File.WriteAllText(_scenarioPath, ""); _ep1 = new MenuControl(checkBoxEP1, textBoxEP1, radioButtonEP1, 0); _ep2 = new MenuControl(checkBoxEP2, textBoxEP2, radioButtonEP2, 1); _mp1 = new MenuControl(checkBoxMP1, textBoxMP1, radioButtonMP1, 2); _mp2 = new MenuControl(checkBoxMP2, textBoxMP2, radioButtonMP2, 3); _mp3 = new MenuControl(checkBoxMP3, textBoxMP3, radioButtonMP3, 4); _co = new MenuControl(checkBoxCO, textBoxCO, radioButtonCO, 5); _bu = new MenuControl(checkBoxBU, textBoxBU, radioButtonBU, 6); _sb = new MenuControl(checkBoxSB, textBoxSB, radioButtonSB, 7); _bb = new MenuControl(checkBoxBB, textBoxBB, radioButtonBB, 8); _myControls = new MenuControlDock(_ep1, _ep2, _mp1, _mp2, _mp3, _co, _bu, _sb, _bb); }